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