Navigation
API > API/Runtime > API/Runtime/Core
Base class for unicast delegates.
| Name | TDelegateBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Delegates/DelegateBase.h |
| Include Path | #include "Delegates/DelegateBase.h" |
Syntax
template<typename ThreadSafetyMode>
class TDelegateBase :
public TDelegateAccessHandlerBase< ThreadSafetyMode > ,
private FDelegateAllocation
Inheritance Hierarchy
- FDelegateAllocation → TDelegateBase
- TDelegateAccessHandlerBase → TDelegateBase
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TDelegateBase
(
TDelegateBase&& Other |
Delegates/DelegateBase.h | ||
| Delegates/DelegateBase.h | |||
TDelegateBase
(
TDelegateBase< OtherThreadSafetyMode >&& Other |
Support for moving from delegates with different thread-safety mode | Delegates/DelegateBase.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TDelegateBase() |
Delegates/DelegateBase.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | TDelegateAccessHandlerBase< ThreadSafetyMode > | Delegates/DelegateBase.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DelegateAllocator | FDelegateAllocatorType::ForElementType< FAlignedInlineDelegateType > | Delegates/DelegateBase.h | ||
| DelegateSize | int32 | Delegates/DelegateBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SIZE_T GetAllocatedSize() |
Returns the amount of memory allocated by this delegate, not including sizeof(*this). | Delegates/DelegateBase.h | |
uint64 GetBoundProgramCounterForTimerManager () |
Returns the address of the method pointer which can be used to learn the address of the function that will be executed. | Delegates/DelegateBase.h | |
FDelegateHandle GetHandle() |
Gets a handle to the delegate. | Delegates/DelegateBase.h | |
const void * GetObjectForTimerManager() |
Returns a pointer to an object bound to this delegate, intended for quick lookup in the timer manager, | Delegates/DelegateBase.h | |
UObject * GetUObject() |
If this is a UFunction or UObject delegate, return the UObject. | Delegates/DelegateBase.h | |
bool IsBound() |
Checks to see if the user object bound to this delegate is still valid. | Delegates/DelegateBase.h | |
bool IsBoundToObject
(
FDelegateUserObjectConst InUserObject |
Checks to see if this delegate is bound to the given user object. | Delegates/DelegateBase.h | |
bool IsCompactable() |
Checks to see if this delegate can ever become valid again - if not, it can be removed from broadcast lists or otherwise repurposed. | Delegates/DelegateBase.h | |
| Tries to return the name of a bound function. | Delegates/DelegateBase.h | ||
void Unbind() |
Unbinds this delegate | Delegates/DelegateBase.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const IDelegateInstance * GetDelegateInstanceProtected () |
Delegates/DelegateBase.h | ||
| Gets the delegate instance. Not intended for use by user code. | Delegates/DelegateBase.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TDelegateBase & operator=
(
TDelegateBase&& Other |
Delegates/DelegateBase.h |