通过自由函数指针回调的槽函数类
More...
#include <SEventSlot.h>
|
| | FreeFunctionSlot (FunCallback func, void *ctx) |
| | 构造函数
|
| |
| BOOL | Run (IEvtArgs *pArg) OVERRIDE |
| | 运行槽函数
|
| |
| IEvtSlot * | Clone () SCONST OVERRIDE |
| | 克隆槽函数对象
|
| |
| BOOL | Equal (const IEvtSlot *sour) SCONST OVERRIDE |
| | 比较两个槽函数对象是否相等
|
| |
| UINT | GetSlotType () SCONST OVERRIDE |
| | 获取槽函数类型
|
| |
| | 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.
|
| |
通过自由函数指针回调的槽函数类
Definition at line 35 of file SEventSlot.h.
◆ FreeFunctionSlot()
| FreeFunctionSlot::FreeFunctionSlot |
( |
FunCallback | func, |
|
|
void * | ctx ) |
|
inline |
◆ Clone()
| IEvtSlot * FreeFunctionSlot::Clone |
( |
| ) |
|
|
inline |
◆ Equal()
| BOOL FreeFunctionSlot::Equal |
( |
const IEvtSlot * | sour | ) |
|
|
inline |
比较两个槽函数对象是否相等
- Parameters
-
- Returns
- 相等返回TRUE,不相等返回FALSE
Definition at line 72 of file SEventSlot.h.
◆ GetSlotType()
| UINT FreeFunctionSlot::GetSlotType |
( |
| ) |
|
|
inline |
◆ Run()
| BOOL FreeFunctionSlot::Run |
( |
IEvtArgs * | pArg | ) |
|
|
inline |
运行槽函数
- Parameters
-
- Returns
- 成功返回TRUE,失败返回FALSE
Definition at line 53 of file SEventSlot.h.
The documentation for this class was generated from the following file: