engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass > 模板结构体 参考

Sparse version of TBaseDynamicDelegate 更多...

#include <SparseDelegate.h>

+ 类 TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass > 继承关系图:

Public 成员函数

template<class UserClass >
void __Internal_AddDynamic (UserClass *InUserObject, typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr InMethodPtr, FName InFunctionName)
 Binds a UObject instance and a UObject method address to this multi-cast delegate. 更多...
 
template<class UserClass >
void __Internal_AddUniqueDynamic (UserClass *InUserObject, typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr InMethodPtr, FName InFunctionName)
 Binds a UObject instance and a UObject method address to this multi-cast delegate, but only if it hasn't been bound before. 更多...
 
template<class UserClass >
bool __Internal_IsAlreadyBound (UserClass *InUserObject, typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr InMethodPtr, FName InFunctionName) const
 Tests if a UObject instance and a UObject method address pair are already bound to this multi-cast delegate. 更多...
 
template<class UserClass >
void __Internal_RemoveDynamic (UserClass *InUserObject, typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr InMethodPtr, FName InFunctionName)
 Unbinds a UObject instance and a UObject method address from this multi-cast delegate. 更多...
 
void Add (FScriptDelegate InDelegate)
 Adds a function delegate to this multi-cast delegate's invocation list 更多...
 
void AddUnique (FScriptDelegate InDelegate)
 Adds a function delegate to this multi-cast delegate's invocation list if a delegate with the same signature doesn't already exist in the invocation list 更多...
 
template<typename... ParamTypes>
void Broadcast (ParamTypes... Params)
 Broadcasts this delegate to all bound objects, except to those that may have expired.
 
void Clear ()
 Removes all functions from this delegate's invocation list
 
bool Contains (const FScriptDelegate &InDelegate) const
 Checks whether a function delegate is already a member of this multi-cast delegate's invocation list 更多...
 
bool Contains (const UObject *InObject, FName InFunctionName) const
 Checks whether a function delegate is already a member of this multi-cast delegate's invocation list 更多...
 
MulticastDelegate * Get () const
 Returns the multicast delegate if any delegates are bound to the sparse delegate
 
TSharedPtr< MulticastDelegate > GetShared () const
 Returns the multicast delegate if any delegates are bound to the sparse delegate
 
void Remove (const FScriptDelegate &InDelegate)
 Removes a function from this multi-cast delegate's invocation list (performance is O(N)). 更多...
 
void Remove (const UObject *InObject, FName InFunctionName)
 Removes a function from this multi-cast delegate's invocation list (performance is O(N)). 更多...
 
void RemoveAll (const UObject *Object)
 Removes all delegate bindings from this multicast delegate's invocation list that are bound to the specified object. 更多...
 
- Public 成员函数 继承自 FSparseDelegate
void __Internal_AddUnique (const UObject *DelegateOwner, FName DelegateName, FScriptDelegate InDelegate)
 Adds a function delegate to this multi-cast delegate's invocation list if a delegate with the same signature doesn't already exist in the invocation list 更多...
 
void __Internal_Clear (const UObject *DelegateOwner, FName DelegateName)
 Removes all functions from this delegate's invocation list 更多...
 
void __Internal_Remove (const UObject *DelegateOwner, FName DelegateName, const FScriptDelegate &InDelegate)
 Removes a function from this multi-cast delegate's invocation list (performance is O(N)). 更多...
 
bool IsBound () const
 Checks to see if any functions are bound to this multi-cast delegate 更多...
 

详细描述

template<typename MulticastDelegate, typename OwningClass, typename DelegateInfoClass>
struct TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >

Sparse version of TBaseDynamicDelegate

成员函数说明

◆ __Internal_AddDynamic()

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
template<class UserClass >
void TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::__Internal_AddDynamic ( UserClass *  InUserObject,
typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr  InMethodPtr,
FName  InFunctionName 
)
inline

Binds a UObject instance and a UObject method address to this multi-cast delegate.

参数
InUserObjectUObject instance
InMethodPtrMember function address pointer
InFunctionNameName of member function, without class name

NOTE: Do not call this function directly. Instead, call AddDynamic() which is a macro proxy function that automatically sets the function name string for the caller.

◆ __Internal_AddUniqueDynamic()

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
template<class UserClass >
void TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::__Internal_AddUniqueDynamic ( UserClass *  InUserObject,
typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr  InMethodPtr,
FName  InFunctionName 
)
inline

Binds a UObject instance and a UObject method address to this multi-cast delegate, but only if it hasn't been bound before.

参数
InUserObjectUObject instance
InMethodPtrMember function address pointer
InFunctionNameName of member function, without class name

NOTE: Do not call this function directly. Instead, call AddUniqueDynamic() which is a macro proxy function that automatically sets the function name string for the caller.

◆ __Internal_IsAlreadyBound()

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
template<class UserClass >
bool TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::__Internal_IsAlreadyBound ( UserClass *  InUserObject,
typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr  InMethodPtr,
FName  InFunctionName 
) const
inline

Tests if a UObject instance and a UObject method address pair are already bound to this multi-cast delegate.

参数
InUserObjectUObject instance
InMethodPtrMember function address pointer
InFunctionNameName of member function, without class name
返回
True if the instance/method is already bound.

NOTE: Do not call this function directly. Instead, call IsAlreadyBound() which is a macro proxy function that automatically sets the function name string for the caller.

◆ __Internal_RemoveDynamic()

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
template<class UserClass >
void TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::__Internal_RemoveDynamic ( UserClass *  InUserObject,
typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr  InMethodPtr,
FName  InFunctionName 
)
inline

Unbinds a UObject instance and a UObject method address from this multi-cast delegate.

参数
InUserObjectUObject instance
InMethodPtrMember function address pointer
InFunctionNameName of member function, without class name

NOTE: Do not call this function directly. Instead, call RemoveDynamic() which is a macro proxy function that automatically sets the function name string for the caller.

◆ Add()

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
void TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::Add ( FScriptDelegate  InDelegate)
inline

Adds a function delegate to this multi-cast delegate's invocation list

参数
InDelegateDelegate to add

◆ AddUnique()

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
void TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::AddUnique ( FScriptDelegate  InDelegate)
inline

Adds a function delegate to this multi-cast delegate's invocation list if a delegate with the same signature doesn't already exist in the invocation list

参数
InDelegateDelegate to add

◆ Contains() [1/2]

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
bool TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::Contains ( const FScriptDelegate &  InDelegate) const
inline

Checks whether a function delegate is already a member of this multi-cast delegate's invocation list

参数
InDelegateDelegate to check
返回
True if the delegate is already in the list.

◆ Contains() [2/2]

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
bool TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::Contains ( const UObject *  InObject,
FName  InFunctionName 
) const
inline

Checks whether a function delegate is already a member of this multi-cast delegate's invocation list

参数
InObjectObject of the delegate to check
InFunctionNameFunction name of the delegate to check
返回
True if the delegate is already in the list.

◆ Remove() [1/2]

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
void TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::Remove ( const FScriptDelegate &  InDelegate)
inline

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

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

参数
InDelegateDelegate to remove

◆ Remove() [2/2]

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
void TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::Remove ( const UObject *  InObject,
FName  InFunctionName 
)
inline

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

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

参数
InObjectObject of the delegate to remove
InFunctionNameFunction name of the delegate to remove

◆ RemoveAll()

template<typename MulticastDelegate , typename OwningClass , typename DelegateInfoClass >
void TSparseDynamicDelegate< MulticastDelegate, OwningClass, DelegateInfoClass >::RemoveAll ( const UObject *  Object)
inline

Removes all delegate bindings from this multicast delegate's invocation list that are bound to the specified object.

This method also compacts the invocation list.

参数
InObjectThe object to remove bindings for.

该结构体的文档由以下文件生成: