YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
#include <yevt.hpp>
Public 类型 | |
typedef GHEvent< _tRet(_tParams...)> | HandlerType |
typedef HandlerType::EventArgsType | EventArgsType |
typedef HandlerType::FuncType | FuncType |
typedef multimap < EventPriority, HandlerType, std::greater< EventPriority > > | ContainerType |
容器类型。 | |
typedef ContainerType::size_type | SizeType |
Public 成员函数 | |
yconstfn | GEvent ()=default |
无参数构造:默认实现。 | |
yconstfn | GEvent (const GEvent &)=default |
复制构造:默认实现。 | |
yconstfn | GEvent (GEvent &&)=default |
转移构造:默认实现。 | |
GEvent & | operator= (const GEvent &)=default |
复制赋值:默认实现。 | |
GEvent & | operator= (GEvent &&)=default |
转移赋值:默认实现。 | |
template<typename _type > | |
GEvent & | operator= (_type &&_arg) |
赋值:覆盖事件响应:使用单一构造参数指定的指定事件处理器。 | |
GEvent & | operator+= (const HandlerType &h) |
添加事件响应:使用 const 事件处理器和优先级。 | |
GEvent & | operator+= (HandlerType &&h) |
添加事件响应:使用事件处理器。 | |
template<typename _type > | |
GEvent & | operator+= (_type &&_arg) |
添加事件响应:目标为单一构造参数指定的指定事件处理器。 | |
GEvent & | operator-= (const HandlerType &h) |
移除事件响应:指定 const 事件处理器。 | |
GEvent & | operator-= (HandlerType &&h) |
移除事件响应:指定非 const 事件处理器。 | |
template<typename _type > | |
GEvent & | operator-= (_type &&_arg) |
移除事件响应:目标为单一构造参数指定的指定事件处理器。 | |
GEvent & | Add (const HandlerType &h, EventPriority prior=DefaultEventPriority) |
添加事件响应:使用 const 事件处理器和优先级。 | |
GEvent & | Add (HandlerType &&h, EventPriority prior=DefaultEventPriority) |
添加事件响应:使用非 const 事件处理器和优先级。 | |
template<typename _type > | |
GEvent & | Add (_type &&_arg, EventPriority prior=DefaultEventPriority) |
添加事件响应:使用单一构造参数指定的事件处理器和优先级。 | |
template<class _tObj , class _type > | |
GEvent & | Add (_tObj &obj, void(_type::*pm)(EventArgsType), EventPriority prior=DefaultEventPriority) |
添加事件响应:使用对象引用、成员函数指针和优先级。 | |
template<class _tObj , class _type > | |
GEvent & | Remove (_tObj &obj, void(_type::*pm)(EventArgsType)) |
移除事件响应:目标为指定对象引用和成员函数指针。 | |
bool | Contains (const HandlerType &h) const |
判断是否包含指定事件响应。 | |
template<typename _type > | |
bool | Contains (_type &&_arg) const |
判断是否包含单一构造参数指定的事件响应。 | |
SizeType | operator() (_tParams...args) const |
调用事件处理器。 | |
SizeType | GetSize () const ynothrow |
取列表中的响应数。 | |
void | Clear () |
清除:移除所有事件响应。 | |
void | Swap (GEvent &e) ynothrow |
Public 属性 | |
ContainerType | List |
响应列表。 | |
Private 成员函数 | |
template<typename _tHandler > | |
GEvent (_tHandler &&h) | |
private 构造:添加事件处理器。 | |
typedef multimap<EventPriority, HandlerType, std::greater<EventPriority> > YSLib::GEvent< _tRet(_tParams...)>::ContainerType |
typedef HandlerType::EventArgsType YSLib::GEvent< _tRet(_tParams...)>::EventArgsType |
typedef HandlerType::FuncType YSLib::GEvent< _tRet(_tParams...)>::FuncType |
typedef GHEvent<_tRet(_tParams...)> YSLib::GEvent< _tRet(_tParams...)>::HandlerType |
typedef ContainerType::size_type YSLib::GEvent< _tRet(_tParams...)>::SizeType |
|
default |
无参数构造:默认实现。
|
default |
复制构造:默认实现。
|
default |
转移构造:默认实现。
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
复制赋值:默认实现。
|
default |
转移赋值:默认实现。
|
inline |
|
inline |
|
inline |
ContainerType YSLib::GEvent< _tRet(_tParams...)>::List |