|
| void | Add (const TScriptDelegate< TWeakPtr > &InDelegate) |
| | Adds a function delegate to this multi-cast delegate's invocation list 更多...
|
| |
| void | AddUnique (const TScriptDelegate< TWeakPtr > &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 | Clear () |
| | Removes all functions from this delegate's invocation list
|
| |
| bool | Contains (const TScriptDelegate< TWeakPtr > &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 更多...
|
| |
| TArray< UObject * > | GetAllObjects () const |
| | Returns all objects associated with this multicast-delegate. 更多...
|
| |
| TArray< UObject * > | GetAllObjectsEvenIfUnreachable () const |
| | Returns all objects associated with this multicast-delegate, even if unreachable. 更多...
|
| |
| bool | IsBound () const |
| | Checks to see if any functions are bound to this multi-cast delegate 更多...
|
| |
| template<class UObjectTemplate > |
| void | ProcessMulticastDelegate (void *Parameters) const |
| | Executes a multi-cast delegate by calling all functions on objects bound to the delegate. 更多...
|
| |
| void | Remove (const TScriptDelegate< TWeakPtr > &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. 更多...
|
| |
|
| TMulticastScriptDelegate () |
| | Default constructor
|
| |
| template<typename UObjectTemplate > |
| FString | ToString () const |
| | Converts this delegate to a string representation 更多...
|
| |
|
| void | AddInternal (const TScriptDelegate< TWeakPtr > &InDelegate) |
| | Adds a function delegate to this multi-cast delegate's invocation list 更多...
|
| |
| void | AddUniqueInternal (const TScriptDelegate< TWeakPtr > &InDelegate) |
| | Adds a function delegate to this multi-cast delegate's invocation list, if a delegate with that signature doesn't already exist 更多...
|
| |
|
void | CompactInvocationList () const |
| | Cleans up any delegates in our invocation list that have expired (performance is O(N))
|
| |
| void | RemoveInternal (const TScriptDelegate< TWeakPtr > &InDelegate) const |
| | Removes a function from this multi-cast delegate's invocation list (performance is O(N)). 更多...
|
| |
| void | RemoveInternal (const UObject *InObject, FName InFunctionName) const |
| | Removes a function from this multi-cast delegate's invocation list (performance is O(N)). 更多...
|
| |
template<typename
TWeakPtr = FWeakObjectPtr>
class TMulticastScriptDelegate< TWeakPtr >
Script multi-cast delegate base class
template<typename
TWeakPtr = FWeakObjectPtr>
template<class UObjectTemplate >
Executes a multi-cast delegate by calling all functions on objects bound to the delegate.
Always safe to call, even if when no objects are bound, or if objects have expired. In general, you should never call this function directly. Instead, call Broadcast() on a derived class.
- 参数
-
| Params | Parameter structure |