TBaseDynamicMulticastDelegate

Dynamic multi-cast delegate template class (UObject-based, serializable).

Windows
MacOS
Linux

Inheritance Hierarchy

TMulticastScriptDelegate

TBaseDynamicMulticastDelegate

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl

Include

#include "Delegates/DelegateSignatureImpl.inl"

Syntax

template<typename TWeakPtr, typename RetValType, typename... ParamTypes>
class TBaseDynamicMulticastDelegate : public TMulticastScriptDelegate< TWeakPtr >

Remarks

Dynamic multi-cast delegate template class (UObject-based, serializable). You'll use the various DECLARE_DYNAMIC_MULTICAST_DELEGATE macros to create the actual delegate type, templated to the function signature the delegate is compatible with. Then, you can create an instance of that class when you want to assign functions to the delegate.

Constructors

Name Description

Public function

TBaseDynamicMulticastDelegate()

Default constructor

Public function

TBaseDynamicMulticastDelegate

(
    const TMulticastScriptDelegate< TWe...
)

Construction from an FMulticastScriptDelegate must be explicit.

Functions

Name Description

Public function

void

 

__Internal_AddDynamic

(
    UserClass* InUserObject,
    typename FDelegate::template TMetho...,
    FName InFunctionName
)

Binds a UObject instance and a UObject method address to this multi-cast delegate.

Public function

void

 

__Internal_AddUniqueDynamic

(
    UserClass* InUserObject,
    typename FDelegate::template TMetho...,
    FName InFunctionName
)

Binds a UObject instance and a UObject method address to this multi-cast delegate, but only if it hasn't been bound before.

Public function Const

bool

 

__Internal_IsAlreadyBound

(
    UserClass* InUserObject,
    typename FDelegate::template TMetho...,
    FName InFunctionName
)

Tests if a UObject instance and a UObject method address pair are already bound to this multi-cast delegate.

Public function

void

 

__Internal_RemoveDynamic

(
    UserClass* InUserObject,
    typename FDelegate::template TMetho...,
    FName InFunctionName
)

Unbinds a UObject instance and a UObject method address from this multi-cast delegate.

Typedefs

Name

Description

FDelegate

The actual single-cast delegate class for this multi-cast delegate

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