Ark Server API (ASA) - Wiki
|
#include <ScriptDelegates.h>
Public Types | |
typedef TArray< TScriptDelegate< TWeakPtr > > | FInvocationList |
Public Member Functions | |
TMulticastScriptDelegate () | |
bool | IsBound () const |
bool | Contains (const TScriptDelegate< TWeakPtr > &InDelegate) const |
bool | Contains (const UObject *InObject, FName InFunctionName) const |
void | Add (const TScriptDelegate< TWeakPtr > &InDelegate) |
void | AddUnique (const TScriptDelegate< TWeakPtr > &InDelegate) |
void | Remove (const TScriptDelegate< TWeakPtr > &InDelegate) |
void | Remove (const UObject *InObject, FName InFunctionName) |
void | RemoveAll (const UObject *Object) |
void | Clear () |
template<typename UObjectTemplate > | |
FString | ToString () const |
template<class UObjectTemplate > | |
void | ProcessMulticastDelegate (void *Parameters) const |
TArray< UObject * > | GetAllObjects () const |
TArray< UObject * > | GetAllObjectsEvenIfUnreachable () const |
SIZE_T | GetAllocatedSize () const |
Protected Member Functions | |
void | AddInternal (const TScriptDelegate< TWeakPtr > &InDelegate) |
void | AddUniqueInternal (const TScriptDelegate< TWeakPtr > &InDelegate) |
void | RemoveInternal (const TScriptDelegate< TWeakPtr > &InDelegate) const |
void | RemoveInternal (const UObject *InObject, FName InFunctionName) const |
void | CompactInvocationList () const |
UE_DELEGATES_MT_ACCESS_DETECTOR (AccessDetector) | |
Protected Attributes | |
FInvocationList | InvocationList |
Script multi-cast delegate base class
Definition at line 321 of file ScriptDelegates.h.
typedef TArray< TScriptDelegate<TWeakPtr> > TMulticastScriptDelegate< TWeakPtr >::FInvocationList |
Definition at line 702 of file ScriptDelegates.h.
|
inline |
Default constructor
Definition at line 328 of file ScriptDelegates.h.
|
inline |
Adds a function delegate to this multi-cast delegate's invocation list
InDelegate | Delegate to add |
Definition at line 378 of file ScriptDelegates.h.
|
inlineprotected |
Adds a function delegate to this multi-cast delegate's invocation list
InDelegate | Delegate to add |
Definition at line 638 of file ScriptDelegates.h.
|
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
InDelegate | Delegate to add |
Definition at line 395 of file ScriptDelegates.h.
|
inlineprotected |
Adds a function delegate to this multi-cast delegate's invocation list, if a delegate with that signature doesn't already exist
InDelegate | Delegate to add |
Definition at line 657 of file ScriptDelegates.h.
|
inline |
Removes all functions from this delegate's invocation list
Definition at line 467 of file ScriptDelegates.h.
|
inlineprotected |
Cleans up any delegates in our invocation list that have expired (performance is O(N))
Definition at line 694 of file ScriptDelegates.h.
|
inline |
Checks whether a function delegate is already a member of this multi-cast delegate's invocation list
InDelegate | Delegate to check |
Definition at line 350 of file ScriptDelegates.h.
|
inline |
Checks whether a function delegate is already a member of this multi-cast delegate's invocation list
InObject | Object of the delegate to check |
InFunctionName | Function name of the delegate to check |
Definition at line 364 of file ScriptDelegates.h.
|
inline |
Returns all objects associated with this multicast-delegate. For advanced uses only – you should never need call this function in normal circumstances.
Definition at line 586 of file ScriptDelegates.h.
|
inline |
Returns all objects associated with this multicast-delegate, even if unreachable. For advanced uses only – you should never need call this function in normal circumstances.
Definition at line 607 of file ScriptDelegates.h.
|
inline |
Returns the amount of memory allocated by this delegate's invocation list, not including sizeof(*this).
Definition at line 626 of file ScriptDelegates.h.
|
inline |
Checks to see if any functions are bound to this multi-cast delegate
Definition at line 337 of file ScriptDelegates.h.
|
inline |
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 |
Definition at line 554 of file ScriptDelegates.h.
|
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!
InDelegate | Delegate to remove |
Definition at line 412 of file ScriptDelegates.h.
|
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!
InObject | Object of the delegate to remove |
InFunctionName | Function name of the delegate to remove |
Definition at line 430 of file ScriptDelegates.h.
|
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.
InObject | The object to remove bindings for. |
Definition at line 449 of file ScriptDelegates.h.
|
inlineprotected |
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!
InDelegate | Delegate to remove |
Definition at line 669 of file ScriptDelegates.h.
|
inlineprotected |
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!
InObject | Object of the delegate to remove |
InFunctionName | Function name of the delegate to remove |
Definition at line 681 of file ScriptDelegates.h.
|
inline |
Converts this delegate to a string representation
Definition at line 480 of file ScriptDelegates.h.
|
protected |
Definition at line 717 of file ScriptDelegates.h.
Definition at line 712 of file ScriptDelegates.h.
Definition at line 713 of file ScriptDelegates.h.
Definition at line 714 of file ScriptDelegates.h.
|
friend |
Multi-cast delegate serialization
Definition at line 504 of file ScriptDelegates.h.
|
friend |
Definition at line 525 of file ScriptDelegates.h.
|
friend |
Definition at line 717 of file ScriptDelegates.h.
|
mutableprotected |
Ordered list functions to invoke when the Broadcast function is called
Definition at line 707 of file ScriptDelegates.h.