#include <GEventManager.h>
|
| template<typename TEvent , typename TEParam = GEventDefaultParam, c_enable_if_t< std::is_base_of< GEvent, TEvent >::value, int > = 0, c_enable_if_t< std::is_base_of< GEventParam, TEParam >::value, int > = 0> |
| CStatus | createWithParam (const std::string &key, TEParam *param=nullptr) |
| |
| CStatus | trigger (const std::string &key, GEventType type, GEventAsyncStrategy strategy) |
| |
| std::shared_future< CVoid > | asyncTrigger (const std::string &key, GEventAsyncStrategy strategy) |
| |
| template<typename TEvent , typename TEParam , c_enable_if_t< std::is_base_of< GEvent, TEvent >::value, int > , c_enable_if_t< std::is_base_of< GEventParam, TEParam >::value, int > > |
| CGRAPH_NAMESPACE_BEGIN CStatus | createWithParam (const std::string &key, TEParam *param) |
| |
| | CObject ()=default |
| |
| virtual | ~CObject ()=default |
| |
| 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 |
| |
◆ GEventManager()
| GEventManager::GEventManager |
( |
| ) |
|
|
explicitprotecteddefault |
◆ ~GEventManager()
| GEventManager::~GEventManager |
( |
| ) |
|
|
overrideprotected |
◆ asyncTrigger()
异步事件触发
- Parameters
-
- Returns
◆ clear()
◆ createWithParam() [1/2]
template<typename TEvent , typename TEParam , c_enable_if_t< std::is_base_of< GEvent, TEvent >::value, int > , c_enable_if_t< std::is_base_of< GEventParam, TEParam >::value, int > >
◆ createWithParam() [2/2]
template<typename TEvent , typename TEParam = GEventDefaultParam, c_enable_if_t< std::is_base_of< GEvent, TEvent >::value, int > = 0, c_enable_if_t< std::is_base_of< GEventParam, TEParam >::value, int > = 0>
| CStatus GEventManager::createWithParam |
( |
const std::string & |
key, |
|
|
TEParam * |
param = nullptr |
|
) |
| |
创建一个特定类型的事件,并且通过参数赋值
- Template Parameters
-
- Parameters
-
- Returns
◆ destroy()
◆ init()
◆ reset()
◆ setThreadPool()
◆ trigger()
触发事件
- Parameters
-
| key | |
| type | |
| strategy,仅当异步的时候生效 | |
- Returns
◆ CAllocator
◆ GPipeline
◆ events_map_
| std::unordered_map<std::string, GEventPtr> GEventManager::events_map_ |
|
private |
The documentation for this class was generated from the following files: