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

通过标准函数对象回调的槽函数类 More...

#include <SEventSlot.h>

Inheritance diagram for StdFunctionSlot:
TObjRefImpl< IEvtSlot >

Public Member Functions

 StdFunctionSlot (const StdFunCallback &fun)
 构造函数
 
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 102 of file SEventSlot.h.

Constructor & Destructor Documentation

◆ StdFunctionSlot()

StdFunctionSlot::StdFunctionSlot ( const StdFunCallback & fun)
inline

构造函数

Parameters
fun标准函数对象

Definition at line 108 of file SEventSlot.h.

Member Function Documentation

◆ Clone()

IEvtSlot * StdFunctionSlot::Clone ( )
inline

克隆槽函数对象

Returns
克隆的槽函数对象指针

Definition at line 127 of file SEventSlot.h.

◆ Equal()

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

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

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

Definition at line 137 of file SEventSlot.h.

◆ GetSlotType()

UINT StdFunctionSlot::GetSlotType ( )
inline

获取槽函数类型

Returns
槽函数类型

Definition at line 151 of file SEventSlot.h.

◆ Run()

BOOL StdFunctionSlot::Run ( IEvtArgs * pArg)
inline

运行槽函数

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

Definition at line 118 of file SEventSlot.h.


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