TMulticastScriptDelegate

Script multi-cast delegate base class

Windows
MacOS
Linux

Inheritance Hierarchy

TMulticastScriptDelegate

TBaseDynamicMulticastDelegate

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/UObject/ScriptDelegates.h

Include

#include "UObject/ScriptDelegates.h"

Syntax

template<typename TWeakPtr>
class TMulticastScriptDelegate

Remarks

Script multi-cast delegate base class

Variables

Name Description

Protected variable

FInvocationList

 

InvocationList

Ordered list functions to invoke when the Broadcast function is called

Constructors

Name Description

Public function

TMulticastScriptDelegate()

Default constructor

Functions

Name Description

Public function

void

 

Add

(
    const TScriptDelegate< TWeakPtr >&...
)

Adds a function delegate to this multi-cast delegate's invocation list

Protected function

void

 

AddInternal

(
    const TScriptDelegate< TWeakPtr >&...
)

Adds a function delegate to this multi-cast delegate's invocation list

Public function

void

 

AddUnique

(
    const TScriptDelegate< TWeakPtr >&...
)

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

Protected function

void

 

AddUniqueInternal

(
    const TScriptDelegate< TWeakPtr >&...
)

Adds a function delegate to this multi-cast delegate's invocation list, if a delegate with that signature doesn't already exist

Public function

void

 

Clear()

Removes all functions from this delegate's invocation list

Protected function Const

void

 

CompactInvocationList()

Cleans up any delegates in our invocation list that have expired (performance is O(N))

Public function Const

bool

 

Contains

(
    const UObject* InObject,
    FName InFunctionName
)

Checks whether a function delegate is already a member of this multi-cast delegate's invocation list

Public function Const

bool

 

Contains

(
    const TScriptDelegate< TWeakPtr >&...
)

Checks whether a function delegate is already a member of this multi-cast delegate's invocation list

Public function Const

TArray< UObj...

 

GetAllObjects()

Returns all objects associated with this multicast-delegate.

Public function Const

TArray< UObj...

 

GetAllObjectsEvenIfUnreachable()

Returns all objects associated with this multicast-delegate, even if unreachable.

Public function Const

bool

 

IsBound()

Checks to see if any functions are bound to this multi-cast delegate

Public function Const

void

 

ProcessMulticastDelegate

(
    void* Parameters
)

Executes a multi-cast delegate by calling all functions on objects bound to the delegate.

Public function

void

 

Remove

(
    const TScriptDelegate< TWeakPtr >&...
)

Removes a function from this multi-cast delegate's invocation list (performance is O(N)).

Public function

void

 

Remove

(
    const UObject* InObject,
    FName InFunctionName
)

Removes a function from this multi-cast delegate's invocation list (performance is O(N)).

Public function

void

 

RemoveAll

(
    const UObject* Object
)

Removes all delegate bindings from this multicast delegate's invocation list that are bound to the specified object.

Protected function Const

void

 

RemoveInternal

(
    const TScriptDelegate< TWeakPtr >&...
)

Removes a function from this multi-cast delegate's invocation list (performance is O(N)).

Protected function Const

void

 

RemoveInternal

(
    const UObject* InObject,
    FName InFunctionName
)

Removes a function from this multi-cast delegate's invocation list (performance is O(N)).

Public function Const

FString

 

ToString()

Converts this delegate to a string representation

Typedefs

Name

Description

FInvocationList

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss