TMulticastDelegate< void(ParamTypes...), UserPolicy >

Windows
MacOS
Linux

Inheritance Hierarchy

FMulticastDelegateExtras

TMulticastDelegate< void(ParamTypes...), UserPolicy >

References

Module

Core

Header

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

Include

#include "Delegates/DelegateSignatureImpl.inl"

Syntax

template<typename... ParamTypes, typename UserPolicy>
class TMulticastDelegate< void(ParamTypes...), UserPolicy > : public FMulticastDelegateExtras

Functions

Name Description

Public function

FDelegateHan...

 

Add

(
    const FDelegate& InNewDelegate
)

Adds a delegate instance to this multicast delegate's invocation list.

Public function

FDelegateHan...

 

Add

(
    FDelegate&& InNewDelegate
)

Adds a delegate instance to this multicast delegate's invocation list.

Public function

FDelegateHan...

 

AddLambda

(
    FunctorType&& InFunctor,
    VarTypes... Vars
)

Adds a C++ lambda delegate technically this works for any functor types, but lambdas are the primary use case

Public function

FDelegateHan...

 

AddRaw

(
    const UserClass* InUserObject,
    typename TMemFunPtrType< true, User...,
    VarTypes... Vars
)

Public function

FDelegateHan...

 

AddRaw

(
    UserClass* InUserObject,
    typename TMemFunPtrType< false, Use...,
    VarTypes... Vars
)

Adds a raw C++ pointer delegate.

Public function

FDelegateHan...

 

AddSP

(
    const UserClass* InUserObject,
    typename TMemFunPtrType< true, User...,
    VarTypes... Vars
)

Public function

FDelegateHan...

 

AddSP

(
    UserClass* InUserObject,
    typename TMemFunPtrType< false, Use...,
    VarTypes... Vars
)

Adds a shared pointer-based (fast, not thread-safe) member function delegate.

Public function

FDelegateHan...

 

AddSP

(
    const TSharedRef< UserClass, ESPMod...,
    typename TMemFunPtrType< true, User...,
    VarTypes... Vars
)

Public function

FDelegateHan...

 

AddSP

(
    const TSharedRef< UserClass, ESPMod...,
    typename TMemFunPtrType< false, Use...,
    VarTypes... Vars
)

Adds a shared pointer-based (fast, not thread-safe) member function delegate.

Public function

FDelegateHan...

 

AddStatic

(
    typename TBaseStaticDelegateInstanc...,
    VarTypes... Vars
)

Adds a raw C++ pointer global function delegate

Public function

FDelegateHan...

 

AddThreadSafeSP

(
    const TSharedRef< UserClass, ESPMod...,
    typename TMemFunPtrType< false, Use...,
    VarTypes... Vars
)

Adds a shared pointer-based (slower, conditionally thread-safe) member function delegate.

Public function

FDelegateHan...

 

AddThreadSafeSP

(
    const TSharedRef< UserClass, ESPMod...,
    typename TMemFunPtrType< true, User...,
    VarTypes... Vars
)

Public function

FDelegateHan...

 

AddThreadSafeSP

(
    UserClass* InUserObject,
    typename TMemFunPtrType< false, Use...,
    VarTypes... Vars
)

Adds a shared pointer-based (slower, conditionally thread-safe) member function delegate.

Public function

FDelegateHan...

 

AddThreadSafeSP

(
    const UserClass* InUserObject,
    typename TMemFunPtrType< true, User...,
    VarTypes... Vars
)

Public function

FDelegateHan...

 

AddUFunction

(
    UObjectTemplate* InUserObject,
    const FName& InFunctionName,
    VarTypes... Vars
)

Adds a UFunction-based member function delegate.

Public function

FDelegateHan...

 

AddUObject

(
    UserClass* InUserObject,
    typename TMemFunPtrType< false, Use...,
    VarTypes... Vars
)

Adds a UObject-based member function delegate.

Public function

FDelegateHan...

 

AddUObject

(
    const UserClass* InUserObject,
    typename TMemFunPtrType< true, User...,
    VarTypes... Vars
)

Public function

FDelegateHan...

 

AddWeakLambda

(
    UserClass* InUserObject,
    FunctorType&& InFunctor,
    VarTypes... Vars
)

Adds a weak object C++ lambda delegate technically this works for any functor types, but lambdas are the primary use case

Public function Const

void

 

Broadcast

(
    ParamTypes... Params
)

Broadcasts this delegate to all bound objects, except to those that may have expired.

Public function

bool

 

Remove

(
    FDelegateHandle Handle
)

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

Public function

 

TMulticastDelegate()

Hidden default constructor.

Public function

 

TMulticastDelegate

(
    const TMulticastDelegate& Other
)

Hidden copy constructor (for proper deep copies).

Operators

Name Description

Public function

TMulticastDe...

 

operator=

(
    const TMulticastDelegate& Other
)

Hidden assignment operator (for proper deep copies).

Typedefs

Name

Description

DelegateInstanceInterfaceType

FDelegate

Type definition for unicast delegate classes whose delegate instances are compatible with this delegate.

InvocationListType

Super

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