Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Delegates
Inheritance Hierarchy
- UserPolicy::FDelegateExtras
- TDelegateRegistration< InRetValType(ParamTypes...), UserPolicy >
- TDelegate< InRetValType(ParamTypes...), UserPolicy >
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl |
| Include | #include "Delegates/DelegateSignatureImpl.inl" |
Syntax
template<typename InRetValType, typename... ParamTypes, typename UserPolicy>
class TDelegateRegistration< InRetValType(ParamTypes...), UserPolicy > : public UserPolicy::FDelegateExtras
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BindLambda
(
FunctorType&& InFunctor, |
Static: Binds a C++ lambda delegate technically this works for any functor types, but lambdas are the primary use case | |
| void | BindRaw
(
UserClass* InUserObject, |
Binds a raw C++ pointer delegate. | |
| void | BindRaw
(
const UserClass* InUserObject, |
||
| void | BindSP
(
const TSharedRef< UserClass, Mode >& InUserObjectRef, |
Binds a shared pointer-based member function delegate. | |
| void | BindSP
(
const TSharedRef< UserClass, Mode >& InUserObjectRef, |
||
| void | BindSP
(
UserClass* InUserObject, |
Binds a shared pointer-based member function delegate. | |
| void | BindSP
(
const UserClass* InUserObject, |
||
| void | BindSPLambda
(
const TSharedRef< UserClass, Mode >& InUserObjectRef, |
Static: Binds a weak shared pointer C++ lambda delegate technically this works for any functor types, but lambdas are the primary use case | |
| void | BindSPLambda
(
const UserClass* InUserObject, |
||
| void | BindStatic
(
typename TBaseStaticDelegateInstance< FuncType, UserPolicy, std::decay_t< VarTypes >... >::FFuncPtr ..., |
Binds a raw C++ pointer global function delegate | |
| void | BindThreadSafeSP
(
const UserClass* InUserObject, |
||
| void | BindThreadSafeSP
(
UserClass* InUserObject, |
Binds a shared pointer-based (thread-safe) member function delegate. | |
| void | BindThreadSafeSP
(
const TSharedRef< UserClass, ESPMode::ThreadSafe >& InUserObjectRef, |
||
| void | BindThreadSafeSP
(
const TSharedRef< UserClass, ESPMode::ThreadSafe >& InUserObjectRef, |
Binds a shared pointer-based (thread-safe) member function delegate. | |
| void | BindUFunction
(
UObjectTemplate* InUserObject, |
Binds a UFunction-based member function delegate. | |
| void | BindUFunction
(
TObjectPtr< UObjectTemplate > InUserObject, |
||
| void | BindUObject
(
UserClass* InUserObject, |
Binds a UObject-based member function delegate. | |
| void | BindUObject
(
const UserClass* InUserObject, |
||
| void | BindUObject
(
TObjectPtr< UserClass > InUserObject, |
||
| void | BindUObject
(
TObjectPtr< UserClass > InUserObject, |
||
| void | BindWeakLambda
(
UserClass* InUserObject, |
Static: Binds a weak object C++ lambda delegate technically this works for any functor types, but lambdas are the primary use case | |
| RetValType | Execute
(
ParamTypes... Params |
Executing via a delegate registration reference is not allowed. | |
| bool | ExecuteIfBound
(
ParamTypes... Params |
||
TDelegateRegistration
(
const TDelegateRegistration& |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TDelegateRegistration & | |||
| TDelegateRegistration & | operator=
(
const TDelegateRegistration& |
Typedefs
| Name | Description |
|---|---|
| DelegateInstanceInterfaceType | |
| FuncType | |
| RetValType | Type definition for return value type. |
| Super | |
| TFuncType |