soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
FreeFunctionSlot Class Reference

通过自由函数指针回调的槽函数类 More...

#include <SEventSlot.h>

Inheritance diagram for FreeFunctionSlot:
TObjRefImpl< IEvtSlot >

Public Member Functions

 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
 获取槽函数类型
 
- 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.
 

Detailed Description

通过自由函数指针回调的槽函数类

Definition at line 35 of file SEventSlot.h.

Constructor & Destructor Documentation

◆ FreeFunctionSlot()

FreeFunctionSlot::FreeFunctionSlot ( FunCallback func,
void * ctx )
inline

构造函数

Parameters
func自由函数指针
ctx上下文指针

Definition at line 42 of file SEventSlot.h.

Member Function Documentation

◆ Clone()

IEvtSlot * FreeFunctionSlot::Clone ( )
inline

克隆槽函数对象

Returns
克隆的槽函数对象指针

Definition at line 62 of file SEventSlot.h.

◆ Equal()

BOOL FreeFunctionSlot::Equal ( const IEvtSlot * sour)
inline

比较两个槽函数对象是否相等

Parameters
sour源槽函数对象指针
Returns
相等返回TRUE,不相等返回FALSE

Definition at line 72 of file SEventSlot.h.

◆ GetSlotType()

UINT FreeFunctionSlot::GetSlotType ( )
inline

获取槽函数类型

Returns
槽函数类型

Definition at line 85 of file SEventSlot.h.

◆ Run()

BOOL FreeFunctionSlot::Run ( IEvtArgs * pArg)
inline

运行槽函数

Parameters
pArg事件参数对象
Returns
成功返回TRUE,失败返回FALSE

Definition at line 53 of file SEventSlot.h.


The documentation for this class was generated from the following file: