Skip to content

Commit

Permalink
[perf] set manager override to final
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Jan 13, 2024
1 parent ac2a2c0 commit 7542a71
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 29 deletions.
10 changes: 5 additions & 5 deletions src/GraphCtrl/GraphAspect/GAspectManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ class GAspectManager : public GAspectObject,
CStatus reflect(const GAspectType& type,
const CStatus& curStatus = CStatus());

CStatus add(GAspectPtr aspect) override;
CStatus add(GAspectPtr aspect) final;

GAspectManager* setName(const std::string& name) override;
GAspectManager* setName(const std::string& name) final;

CSize getSize() const override;
CSize getSize() const final;

CStatus clear() final;

Expand All @@ -45,9 +45,9 @@ class GAspectManager : public GAspectObject,
*/
CStatus popLast();

CVoidPtr setGParamManager(GParamManagerPtr pm) override;
CVoidPtr setGParamManager(GParamManagerPtr pm) final;

CVoidPtr setGEventManager(GEventManagerPtr em) override;
CVoidPtr setGEventManager(GEventManagerPtr em) final;

CGRAPH_NO_ALLOWED_COPY(GAspectManager)

Expand Down
10 changes: 5 additions & 5 deletions src/GraphCtrl/GraphDaemon/GDaemonManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ class GDaemonManager : public GDaemonObject,

GDaemonManager* setInterval(CMSec interval) override;

CStatus init() override;
CStatus init() final;

CStatus destroy() override;
CStatus destroy() final;

CStatus add(GDaemonPtr daemon) override;
CStatus add(GDaemonPtr daemon) final;

CStatus remove(GDaemonPtr daemon) override;
CStatus remove(GDaemonPtr daemon) final;

CStatus clear() final;

CSize getSize() const override;
CSize getSize() const final;

friend class GPipeline;
friend class UAllocator;
Expand Down
12 changes: 6 additions & 6 deletions src/GraphCtrl/GraphElement/GElementManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@ class GElementManager : public GElementObject,
~GElementManager() override;
CGRAPH_NO_ALLOWED_COPY(GElementManager);

CStatus init() override;
CStatus run() override;
CStatus destroy() override;
CStatus init() final;
CStatus run() final;
CStatus destroy() final;

/**
* 添加一个元素信息
* @param element
* @return
*/
CStatus add(GElementPtr element) override;
CStatus add(GElementPtr element) final;

/**
* 删除传入元素
* @param element
*/
CStatus remove(GElementPtr element) override;
CStatus remove(GElementPtr element) final;

/**
* 查找传入元素
* @param element
* @return
*/
CBool find(GElementPtr element) const override;
CBool find(GElementPtr element) const final;

/**
* 清空信息
Expand Down
8 changes: 4 additions & 4 deletions src/GraphCtrl/GraphEvent/GEventManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ class GEventManager : public GEventObject,
CStatus trigger(const std::string &key, GEventType type, GEventAsyncStrategy strategy);

protected:
CStatus init() override;
CStatus init() final;

CStatus destroy() override;
CStatus destroy() final;

CStatus clear() final;

GEventObjectPtr setThreadPool(UThreadPoolPtr ptr) override;
GEventObjectPtr setThreadPool(UThreadPoolPtr ptr) final;

explicit GEventManager() = default;

~GEventManager() override;

CStatus reset() override;
CStatus reset() final;

CGRAPH_NO_ALLOWED_COPY(GEventManager)

Expand Down
4 changes: 2 additions & 2 deletions src/GraphCtrl/GraphParam/GParamManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class GParamManager : public GParamObject,
protected:
explicit GParamManager();
~GParamManager() override;
CStatus init() override;
CStatus destroy() override;
CStatus init() final;
CStatus destroy() final;

CStatus clear() final;

Expand Down
14 changes: 7 additions & 7 deletions src/GraphCtrl/GraphPipeline/GPipelineManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ CGRAPH_NAMESPACE_BEGIN
class GPipelineManager : public GPipelineObject,
public GraphManager<GPipeline> {
public:
CStatus init() override;
CStatus init() final;

CStatus run() override;
CStatus run() final;

CStatus destroy() override;
CStatus destroy() final;

CStatus add(GPipelinePtr ptr) override;
CStatus add(GPipelinePtr ptr) final;

CStatus clear() final;

CBool find(GPipelinePtr ptr) const override;
CBool find(GPipelinePtr ptr) const final;

CStatus remove(GPipelinePtr ptr) override;
CStatus remove(GPipelinePtr ptr) final;

CSize getSize() const override;
CSize getSize() const final;

~GPipelineManager() override;

Expand Down

0 comments on commit 7542a71

Please sign in to comment.