|
| 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. 更多...
|
| |
| 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
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.
- 参数
-
| InUserObject | UObject instance |
| InMethodPtr | Member function address pointer |
| InFunctionName | Name 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.
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.
- 参数
-
| InUserObject | UObject instance |
| InMethodPtr | Member function address pointer |
| InFunctionName | Name 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.
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.
- 参数
-
| InUserObject | UObject instance |
| InMethodPtr | Member function address pointer |
| InFunctionName | Name 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.
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.
- 参数
-
| InUserObject | UObject instance |
| InMethodPtr | Member function address pointer |
| InFunctionName | Name 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.