TSparseDynamicDelegate

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/SparseDelegate.h

Include

#include "UObject/SparseDelegate.h"

Syntax

template<typename MulticastDelegate, typename OwningClass, const char * DelegateName, typename DelegateOffsetClass>
struct TSparseDynamicDelegate : public FSparseDelegate

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.

Public function

void

 

Add

(
    FScriptDelegate InDelegate
)

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

Public function

void

 

AddUnique

(
    FScriptDelegate 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

Public function

void

 

Broadcast

(
    ParamTypes... Params
)

Public function

void

 

Clear()

Removes all functions from this delegate's invocation list

Public function Const

bool

 

Contains

(
    const FScriptDelegate& InDelegate
)

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

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

MulticastDel...

 

Get()

Returns the multicast delegate if any delegates are bound to the sparse delegate

Protected function Const

FName

 

GetDelegateName()

Public function

void

 

Remove

(
    const FScriptDelegate& InDelegate
)

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.

Typedefs

Name

Description

FDelegate

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback