Script delegate base class. 更多...
#include <ScriptDelegates.h>
Public 成员函数 | |
| void | BindUFunction (UObject *InObject, const FName &InFunctionName) |
| Binds a UFunction to this delegate. 更多... | |
| void | Clear () |
| Unbinds this delegate (another name to provide a similar interface to TMulticastScriptDelegate) | |
| FName | GetFunctionName () const |
| Gets the name of the function to call on the bound object 更多... | |
| UObject * | GetUObject () |
| Gets the object bound to this delegate 更多... | |
| const UObject * | GetUObject () const |
| Gets the object bound to this delegate (const) 更多... | |
| UObject * | GetUObjectEvenIfUnreachable () |
| Gets the object bound to this delegate, even if the object is unreachable 更多... | |
| const UObject * | GetUObjectEvenIfUnreachable () const |
| Gets the object bound to this delegate (const), even if the object is unreachable 更多... | |
| bool | IsBound () const |
| Checks to see if the user object bound to this delegate is still valid 更多... | |
| bool | IsBoundToObject (void const *InUserObject) const |
| Checks to see if this delegate is bound to the given user object. 更多... | |
| bool | IsBoundToObjectEvenIfUnreachable (void const *InUserObject) const |
| Checks to see if this delegate is bound to the given user object, even if the object is unreachable. 更多... | |
| bool | IsCompactable () const |
| Checks to see if the user object bound to this delegate will ever be valid again 更多... | |
| FORCEINLINE bool | operator== (const TScriptDelegate &Other) const |
| Comparison operators | |
| template<class UObjectTemplate > | |
| void | ProcessDelegate (void *Parameters) const |
| Executes a delegate by calling the named function on the object bound to the delegate. 更多... | |
| template<class UObjectTemplate > | |
| FString | ToString () const |
| Converts this delegate to a string representation 更多... | |
| TScriptDelegate () | |
| Default constructor. | |
| void | Unbind () |
| Unbinds this delegate | |
Protected 属性 | |
| FName | FunctionName |
| Name of the function to call on the bound object | |
| TWeakPtr | Object |
| The object bound to this delegate, or nullptr if no object is bound | |
友元 | |
| FArchive & | operator<< (FArchive &Ar, TScriptDelegate &D) |
| Delegate serialization | |
| void | operator<< (FStructuredArchive::FSlot Slot, TScriptDelegate &D) |
| Delegate serialization | |
Script delegate base class.
|
inline |
Binds a UFunction to this delegate.
| InObject | The object to call the function on. |
| InFunctionName | The name of the function to call. |
|
inline |
Gets the name of the function to call on the bound object
|
inline |
Gets the object bound to this delegate
|
inline |
Gets the object bound to this delegate (const)
|
inline |
Gets the object bound to this delegate, even if the object is unreachable
|
inline |
Gets the object bound to this delegate (const), even if the object is unreachable
|
inline |
Checks to see if the user object bound to this delegate is still valid
|
inline |
Checks to see if this delegate is bound to the given user object.
|
inline |
Checks to see if this delegate is bound to the given user object, even if the object is unreachable.
|
inline |
Checks to see if the user object bound to this delegate will ever be valid again
|
inline |
Executes a delegate by calling the named function on the object bound to the delegate.
You should always first verify that the delegate is safe to execute by calling IsBound() before calling this function. In general, you should never call this function directly. Instead, call Execute() on a derived class.
| Parameters | Parameter structure |
|
inline |
Converts this delegate to a string representation