通过类成员函数回调的槽函数类模板 More...
#include <SEventSlot.h>
Public Types | |
| typedef BOOL(T::* | MemberFunctionType) (A *) |
| 成员函数槽类型 | |
Public Member Functions | |
| MemberFunctionSlot (MemberFunctionType func, T *obj) | |
| 构造函数 | |
| BOOL | Run (IEvtArgs *pArg) OVERRIDE |
| 运行槽函数 | |
| IEvtSlot * | Clone () SCONST OVERRIDE |
| 克隆槽函数对象 | |
| BOOL | Equal (const IEvtSlot *sour) SCONST OVERRIDE |
| 比较两个槽函数对象是否相等 | |
| UINT | GetSlotType () SCONST OVERRIDE |
| 获取槽函数类型 | |
Public Member Functions inherited from TObjRefImpl< IEvtSlot > | |
| TObjRefImpl () | |
| Constructor that initializes the reference count to 1. | |
| virtual | ~TObjRefImpl () |
| Virtual destructor. | |
| long | AddRef () override |
| Increments the reference count. | |
| long | Release () override |
| Decrements the reference count and deletes the object if the count reaches zero. | |
| void | OnFinalRelease () override |
| Deletes the object. | |
Additional Inherited Members | |
Protected Attributes inherited from TObjRefImpl< IEvtSlot > | |
| LONG | m_cRef |
| Reference count. | |
通过类成员函数回调的槽函数类模板
| T | 类型 |
| A | 事件参数类型 |
Definition at line 168 of file SEventSlot.h.
| typedef BOOL(T::* MemberFunctionSlot< T, A >::MemberFunctionType) (A *) |
成员函数槽类型
Definition at line 173 of file SEventSlot.h.
|
inline |
|
inline |
|
inline |
比较两个槽函数对象是否相等
| sour | 源槽函数对象指针 |
Definition at line 210 of file SEventSlot.h.
|
inline |
|
inline |