CGraph
Public Member Functions | Protected Attributes | List of all members
CDescInfo Class Reference

#include <CDescInfo.h>

Inheritance diagram for CDescInfo:
Inheritance graph
[legend]

Public Member Functions

virtual const std::string & getName () const
 
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

std::string name_
 
std::string session_
 
std::string description_
 

Detailed Description

广泛用于GAspect/GAspectManager/GDaemon/GDaemonManager/GEvent/GEventManager/GPipeline/GElement及其派生类 这些类及其派生类基本覆盖CGraph的绝大部分场景,因此CDescInfo可以看作是CGraph各个类的描述信息基座 具体:提供名称(name_)、描述(description_)、ID(session_)的set/get接口 比如: GElement又可派生出GAdapter/GGroup/GNode GAdapter又可派生出GCoordinator/GFence/GFunction/GSingleton GGroup又可派生出GCluster/GCondition/GMultiCondition/GMutable/GRegion/GSome

Constructor & Destructor Documentation

◆ ~CDescInfo()

virtual CDescInfo::~CDescInfo ( )
virtualdefault

Member Function Documentation

◆ getDescription()

const std::string& CDescInfo::getDescription ( ) const
inline

获取描述信息

Returns

◆ getName()

virtual const std::string& CDescInfo::getName ( ) const
inlinevirtual

获取名称信息

Returns

Reimplemented in GAspectObject, and GSingleton< T >.

◆ getSession()

const std::string& CDescInfo::getSession ( ) const
inline

获取唯一id信息

Returns

◆ setDescription()

virtual auto CDescInfo::setDescription ( const std::string &  description) -> decltype(this)
inlinevirtual

设置描述信息

Parameters
description
Returns

◆ setName()

virtual auto CDescInfo::setName ( const std::string &  name) -> decltype(this)
inlinevirtual

设置名称信息

Parameters
name
Returns
@notice 部分windows编译器不支持函数继承改变返回值类型,故做此区分

Reimplemented in GElement.

Member Data Documentation

◆ description_

std::string CDescInfo::description_
protected

◆ name_

std::string CDescInfo::name_
protected

◆ session_

std::string CDescInfo::session_
protected

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