通过标准函数对象回调的槽函数类
More...
#include <SEventSlot.h>
|
| StdFunctionSlot (const StdFunCallback &fun) |
| 构造函数
|
|
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 102 of file SEventSlot.h.
◆ StdFunctionSlot()
StdFunctionSlot::StdFunctionSlot |
( |
const StdFunCallback & | fun | ) |
|
|
inline |
◆ Clone()
IEvtSlot * StdFunctionSlot::Clone |
( |
| ) |
|
|
inline |
◆ Equal()
BOOL StdFunctionSlot::Equal |
( |
const IEvtSlot * | sour | ) |
|
|
inline |
比较两个槽函数对象是否相等
- Parameters
-
- Returns
- 相等返回TRUE,不相等返回FALSE
Definition at line 137 of file SEventSlot.h.
◆ GetSlotType()
UINT StdFunctionSlot::GetSlotType |
( |
| ) |
|
|
inline |
◆ Run()
BOOL StdFunctionSlot::Run |
( |
IEvtArgs * | pArg | ) |
|
|
inline |
运行槽函数
- Parameters
-
- Returns
- 成功返回TRUE,失败返回FALSE
Definition at line 118 of file SEventSlot.h.
The documentation for this class was generated from the following file: