CGraph
Protected Member Functions | Private Attributes | Friends | List of all members
GAspectManager Class Reference

#include <GAspectManager.h>

Inheritance diagram for GAspectManager:
Inheritance graph
[legend]
Collaboration diagram for GAspectManager:
Collaboration graph
[legend]

Protected Member Functions

 GAspectManager ()
 
 ~GAspectManager () override
 
CStatus reflect (const internal::GAspectType &type, const CStatus &curStatus=CStatus())
 
CStatus add (GAspectPtr aspect) final
 
CSize getSize () const final
 
CStatus clear () final
 
CStatus popLast ()
 
CVoidPtr setGParamManager (GParamManagerPtr pm) final
 
CVoidPtr setGEventManager (GEventManagerPtr em) final
 
- Protected Member Functions inherited from GAspectObject
 GAspectObject ()
 
 ~GAspectObject () override
 
template<typename T , c_enable_if_t< std::is_base_of< GAspectParam, T >::value, int > = 0>
T * getAParam ()
 
template<typename T , c_enable_if_t< std::is_base_of< GAspectParam, T >::value, int > = 0>
GAspectObjectsetAParam (T *param)
 
GAspectObjectsetBelong (GElement *belong)
 
const std::string & getName () const override
 
- Protected Member Functions inherited from GraphManager< GAspect >
virtual CStatus add (GAspect *object)
 
virtual CStatus remove (GAspect *object)
 
virtual CBool find (GAspect *object) const
 
virtual CStatus create (const std::string &key)
 
virtual GAspectget (const std::string &key)
 
virtual CStatus reset ()
 
CStatus run () override
 

Private Attributes

GAspectPtrArr aspect_arr_
 

Friends

class GElement
 
class CAllocator
 

Additional Inherited Members

- Public Member Functions inherited from GAspectObject
template<typename T , c_enable_if_t< std::is_base_of< GAspectParam, T >::value, int > >
CGRAPH_NAMESPACE_BEGIN GAspectObjectPtr setAParam (T *param)
 
- Public Member Functions inherited from CObject
 CObject ()=default
 
virtual CStatus init ()
 
virtual CStatus destroy ()
 
virtual ~CObject ()=default
 
- Public Member Functions inherited from CDescInfo
const std::string & getSession () const
 
const std::string & getDescription () const
 
virtual auto setName (const std::string &name) -> decltype(this)
 
virtual auto setDescription (const std::string &description) -> decltype(this)
 
virtual ~CDescInfo ()=default
 
- Protected Attributes inherited from CDescInfo
std::string name_
 
std::string session_
 
std::string description_
 

Detailed Description

继承GraphManager<T>的add/remove/find/create/get/reset/run等针对具体T类型对象的管理能力 继承GAspectObject的GetAParam/setAParam获取GAspectParam的能力,以及setBelong设置所属GElement的能力

Constructor & Destructor Documentation

◆ GAspectManager()

CGRAPH_NAMESPACE_BEGIN GAspectManager::GAspectManager ( )
explicitprotected

◆ ~GAspectManager()

GAspectManager::~GAspectManager ( )
overrideprotected
Here is the call graph for this function:

Member Function Documentation

◆ add()

CStatus GAspectManager::add ( GAspectPtr  aspect)
finalprotected

◆ clear()

CStatus GAspectManager::clear ( )
finalprotectedvirtual

清空所有object,必须实现的内容

Returns

Implements GraphManager< GAspect >.

◆ getSize()

CSize GAspectManager::getSize ( ) const
finalprotectedvirtual

获取大小信息

Returns

Reimplemented from GraphManager< GAspect >.

◆ popLast()

CStatus GAspectManager::popLast ( )
protected

弹出去最后一个

Returns
Here is the call graph for this function:

◆ reflect()

CStatus GAspectManager::reflect ( const internal::GAspectType type,
const CStatus curStatus = CStatus() 
)
protected

执行切面逻辑

Parameters
type
curStatus
Returns

仅针对Begin对应的内容,进行返回值判断 run()方法切面更容易被执行,故放在最前方判断

◆ setGEventManager()

CVoidPtr GAspectManager::setGEventManager ( GEventManagerPtr  em)
finalprotected

◆ setGParamManager()

CVoidPtr GAspectManager::setGParamManager ( GParamManagerPtr  pm)
finalprotected

Friends And Related Function Documentation

◆ CAllocator

friend class CAllocator
friend

◆ GElement

friend class GElement
friend

Member Data Documentation

◆ aspect_arr_

GAspectPtrArr GAspectManager::aspect_arr_
private

The documentation for this class was generated from the following files: