engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 静态 Protected 成员函数 | 所有成员列表
TMulticastDelegateBase< UserPolicy > 模板类 参考

Abstract base class for multicast delegates. 更多...

#include <MulticastDelegateBase.h>

Public 成员函数

void Clear ()
 Removes all functions from this delegate's invocation list.
 
bool IsBound () const
 Checks to see if any functions are bound to this multi-cast delegate. 更多...
 
bool IsBoundToObject (void const *InUserObject) const
 Checks to see if any functions are bound to the given user object. 更多...
 
int32 RemoveAll (const void *InUserObject)
 Removes all functions from this multi-cast delegate's invocation list that are bound to the specified UserObject. 更多...
 

Protected 成员函数

FDelegateHandle AddDelegateInstance (TDelegateBase< UserPolicy > &&NewDelegateBaseRef)
 Adds the given delegate instance to the invocation list. 更多...
 
void CompactInvocationList (bool CheckThreshold=false)
 Removes any expired or deleted functions from the invocation list. 更多...
 
InvocationListType & GetInvocationList ()
 Gets a read-only reference to the invocation list. 更多...
 
int32 GetInvocationListLockCount () const
 Returns the lock counter for the invocation list.
 
void LockInvocationList () const
 Increments the lock counter for the invocation list.
 
bool RemoveDelegateInstance (FDelegateHandle Handle)
 Removes a function from this multi-cast delegate's invocation list (performance is O(N)). 更多...
 
 TMulticastDelegateBase ()
 Hidden default constructor.
 
void UnlockInvocationList () const
 Decrements the lock counter for the invocation list.
 

静态 Protected 成员函数

template<typename DelegateType >
static FORCEINLINE auto * GetDelegateInstanceProtectedHelper (const DelegateType &Base)
 Helper function for derived classes of TMulticastDelegateBase to get at the delegate instance.
 

详细描述

template<typename UserPolicy>
class TMulticastDelegateBase< UserPolicy >

Abstract base class for multicast delegates.

成员函数说明

◆ AddDelegateInstance()

template<typename UserPolicy >
FDelegateHandle TMulticastDelegateBase< UserPolicy >::AddDelegateInstance ( TDelegateBase< UserPolicy > &&  NewDelegateBaseRef)
inlineprotected

Adds the given delegate instance to the invocation list.

参数
NewDelegateBaseRefThe delegate instance to add.

◆ CompactInvocationList()

template<typename UserPolicy >
void TMulticastDelegateBase< UserPolicy >::CompactInvocationList ( bool  CheckThreshold = false)
inlineprotected

Removes any expired or deleted functions from the invocation list.

参见
RequestCompaction

◆ GetInvocationList()

template<typename UserPolicy >
InvocationListType & TMulticastDelegateBase< UserPolicy >::GetInvocationList ( )
inlineprotected

Gets a read-only reference to the invocation list.

返回
The invocation list.

◆ IsBound()

template<typename UserPolicy >
bool TMulticastDelegateBase< UserPolicy >::IsBound ( ) const
inline

Checks to see if any functions are bound to this multi-cast delegate.

返回
true if any functions are bound, false otherwise.

◆ IsBoundToObject()

template<typename UserPolicy >
bool TMulticastDelegateBase< UserPolicy >::IsBoundToObject ( void const *  InUserObject) const
inline

Checks to see if any functions are bound to the given user object.

返回
True if any functions are bound to InUserObject, false otherwise.

◆ RemoveAll()

template<typename UserPolicy >
int32 TMulticastDelegateBase< UserPolicy >::RemoveAll ( const void *  InUserObject)
inline

Removes all functions from this multi-cast delegate's invocation list that are bound to the specified UserObject.

Note that the order of the delegates may not be preserved!

参数
InUserObjectThe object to remove all delegates for.
返回
The number of delegates successfully removed.

◆ RemoveDelegateInstance()

template<typename UserPolicy >
bool TMulticastDelegateBase< UserPolicy >::RemoveDelegateInstance ( FDelegateHandle  Handle)
inlineprotected

Removes a function from this multi-cast delegate's invocation list (performance is O(N)).

参数
HandleThe handle of the delegate instance to remove.
返回
true if the delegate was successfully removed.

该类的文档由以下文件生成: