FDelegateBase

Base class for unicast delegates.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Delegates/DelegateBase.h

Include

#include "Delegates/DelegateBase.h"

Syntax

class FDelegateBase

Remarks

Base class for unicast delegates.

Constructors

Name Description

Public function

FDelegateBase()

Creates and initializes a new instance.

Public function

FDelegateBase

(
    FDelegateBase&& Other
)

Move constructor.

Destructors

Name Description

Public function

~FDelegateBase()

Functions

Name Description

Public function Const

uint64

 

GetBoundProgramCounterForTimerManager()

Returns the address of the method pointer which can be used to learn the address of the function that will be executed.

Protected function Const

IDelegateIns...

 

GetDelegateInstanceProtected()

Gets the delegate instance. Not intended for use by user code.

Public function Const

FDelegateHan...

 

GetHandle()

Gets a handle to the delegate.

Public function Const

const void &...

 

GetObjectForTimerManager()

Returns a pointer to an object bound to this delegate, intended for quick lookup in the timer manager,

Public function Const

UObject *...

 

GetUObject()

If this is a UFunction or UObject delegate, return the UObject.

Public function Const

bool

 

IsBound()

Checks to see if the user object bound to this delegate is still valid.

Public function Const

bool

 

IsBoundToObject

(
    void const* InUserObject
)

Checks to see if this delegate is bound to the given user object.

Public function Const

FName

 

TryGetBoundFunctionName()

Tries to return the name of a bound function.

Public function

void

 

Unbind()

Unbinds this delegate

Operators

Name Description

Public function

FDelegateBas...

 

operator=

(
    FDelegateBase&& Other
)

Move assignment.

Deprecated Functions

Name Description

Public function Const

IDelegateIns...

 

GetDelegateInstance()

GetDelegateInstance has been deprecated - calls to IDelegateInstance::GetUObject() and IDelegateInstance::GetHandle() should call the same functions on the delegate. Other calls should be reconsidered.

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