Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/UObject
Inheritance Hierarchy
- TDelegateAccessHandlerBase
- TMulticastScriptDelegate
- TBaseDynamicMulticastDelegate
- UControlRig::FOnControlSelectedBP_MCSignature
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/UObject/ScriptDelegates.h |
| Include | #include "UObject/ScriptDelegates.h" |
Syntax
template<typename InThreadSafetyMode>
class TMulticastScriptDelegate : public TDelegateAccessHandlerBase< UE::Core::Private::TScriptDelegateTraits< InThreadSafetyMode >::ThreadSafetyMode >
Remarks
Script multi-cast delegate base class
Variables
| Type | Name | Description | |
|---|---|---|---|
| InvocationListType | InvocationList | Ordered list functions to invoke when the Broadcast function is called |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TMulticastScriptDelegate
(
const TMulticastScriptDelegate& Other |
|||
TMulticastScriptDelegate
(
TMulticastScriptDelegate&& Other |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add
(
const TScriptDelegate< OtherThreadSafetyMode >& InDelegate |
||
| void | Add
(
const TScriptDelegate< ThreadSafetyMode >& InDelegate |
Adds a function delegate to this multi-cast delegate's invocation list | |
| void | AddInternal
(
UnicastDelegateType&& InDelegate |
Adds a function delegate to this multi-cast delegate's invocation list | |
| void | AddUnique
(
const TScriptDelegate< OtherThreadSafetyMode >& InDelegate |
||
| void | AddUnique
(
const TScriptDelegate< ThreadSafetyMode >& 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 | AddUniqueInternal
(
UnicastDelegateType&& InDelegate |
Adds a function delegate to this multi-cast delegate's invocation list, if a delegate with that signature doesn't already exist | |
| void | Clear () |
Removes all functions from this delegate's invocation list | |
| void | Cleans up any delegates in our invocation list that have expired (performance is O(N)) | ||
| bool | Contains
(
const TScriptDelegate< ThreadSafetyMode >& InDelegate |
Checks whether a function delegate is already a member of this multi-cast delegate's invocation list | |
| bool | Checks whether a function delegate is already a member of this multi-cast delegate's invocation list | ||
| bool | Contains
(
const TScriptDelegate< OtherThreadSafetyMode >& InDelegate |
||
| TArray< typename UnicastDelegateType::WeakPtrType * > | |||
| TArray< UObject * > | Returns all objects associated with this multicast-delegate. | ||
| TArray< UObject * > | Returns all objects associated with this multicast-delegate, even if unreachable. | ||
| SIZE_T | Returns the amount of memory allocated by this delegate's invocation list, not including sizeof(*this). | ||
| bool | IsBound () |
Checks to see if any functions are bound to this multi-cast delegate | |
| void | ProcessMulticastDelegate
(
void* Parameters |
Executes a multi-cast delegate by calling all functions on objects bound to the delegate. | |
| void | Remove
(
const TScriptDelegate< ThreadSafetyMode >& InDelegate |
Removes a function from this multi-cast delegate's invocation list (performance is O(N)). | |
| void | Remove
(
const TScriptDelegate< OtherThreadSafetyMode >& InDelegate |
||
| void | 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 | RemoveInternal
(
const UnicastDelegateType& InDelegate |
Removes a function from this multi-cast delegate's invocation list (performance is O(N)). | |
| void | RemoveInternal
(
const UObject* InObject, |
Removes a function from this multi-cast delegate's invocation list (performance is O(N)). | |
| FString | ToString () |
Converts this delegate to a string representation |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TMulticastScriptDelegate & | operator=
(
const TMulticastScriptDelegate& Other |
||
| TMulticastScriptDelegate & | operator=
(
TMulticastScriptDelegate&& Other |
Typedefs
| Name | Description |
|---|---|
| InvocationListType | |
| Super | |
| ThreadSafetyMode | |
| UnicastDelegateType |