#include <SparseDelegate.h>
|
| TSharedPtr< MulticastDelegate > | GetShared () const |
| |
| bool | Contains (const FScriptDelegate &InDelegate) const |
| |
| bool | Contains (const UObject *InObject, FName InFunctionName) const |
| |
| void | Add (FScriptDelegate InDelegate) |
| |
| void | AddUnique (FScriptDelegate InDelegate) |
| |
| void | Remove (const FScriptDelegate &InDelegate) |
| |
| void | Remove (const UObject *InObject, FName InFunctionName) |
| |
| void | RemoveAll (const UObject *Object) |
| |
| void | Clear () |
| |
| template<typename... ParamTypes> |
| void | Broadcast (ParamTypes... Params) |
| |
| template<class UserClass > |
| bool | __Internal_IsAlreadyBound (UserClass *InUserObject, typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr InMethodPtr, FName InFunctionName) const |
| |
| template<class UserClass > |
| void | __Internal_AddDynamic (UserClass *InUserObject, typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr InMethodPtr, FName InFunctionName) |
| |
| template<class UserClass > |
| void | __Internal_AddUniqueDynamic (UserClass *InUserObject, typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr InMethodPtr, FName InFunctionName) |
| |
| template<class UserClass > |
| void | __Internal_RemoveDynamic (UserClass *InUserObject, typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr InMethodPtr, FName InFunctionName) |
| |
| | FSparseDelegate () |
| |
| bool | IsBound () const |
| |
| void | __Internal_AddUnique (const UObject *DelegateOwner, FName DelegateName, FScriptDelegate InDelegate) |
| |
| void | __Internal_Remove (const UObject *DelegateOwner, FName DelegateName, const FScriptDelegate &InDelegate) |
| |
| void | __Internal_Clear (const UObject *DelegateOwner, FName DelegateName) |
| |
◆ FDelegate
◆ __Internal_AddDynamic()
template<class UserClass >
Binds a UObject instance and a UObject method address to this multi-cast delegate.
- Parameters
-
| 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.
◆ __Internal_AddUniqueDynamic()
template<class UserClass >
Binds a UObject instance and a UObject method address to this multi-cast delegate, but only if it hasn't been bound before.
- Parameters
-
| 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.
◆ __Internal_IsAlreadyBound()
template<class UserClass >
Tests if a UObject instance and a UObject method address pair are already bound to this multi-cast delegate.
- Parameters
-
| InUserObject | UObject instance |
| InMethodPtr | Member function address pointer |
| InFunctionName | Name of member function, without class name |
- Returns
- 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<class UserClass >
Unbinds a UObject instance and a UObject method address from this multi-cast delegate.
- Parameters
-
| 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.
◆ Add()
Adds a function delegate to this multi-cast delegate's invocation list
- Parameters
-
| InDelegate | Delegate to add |
◆ AddUnique()
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
- Parameters
-
| InDelegate | Delegate to add |
◆ Broadcast()
template<typename... ParamTypes>
Broadcasts this delegate to all bound objects, except to those that may have expired.
◆ Clear()
Removes all functions from this delegate's invocation list
◆ Contains() [1/2]
Checks whether a function delegate is already a member of this multi-cast delegate's invocation list
- Parameters
-
| InDelegate | Delegate to check |
- Returns
- True if the delegate is already in the list.
◆ Contains() [2/2]
Checks whether a function delegate is already a member of this multi-cast delegate's invocation list
- Parameters
-
| InObject | Object of the delegate to check |
| InFunctionName | Function name of the delegate to check |
- Returns
- True if the delegate is already in the list.
◆ GetDelegateName()
◆ GetShared()
Returns the multicast delegate if any delegates are bound to the sparse delegate
◆ Remove() [1/2]
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!
- Parameters
-
| InDelegate | Delegate to remove |
◆ Remove() [2/2]
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!
- Parameters
-
| InObject | Object of the delegate to remove |
| InFunctionName | Function name of the delegate to remove |
◆ RemoveAll()
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.
- Parameters
-
| InObject | The object to remove bindings for. |
The documentation for this struct was generated from the following file: