Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/WeakInterfacePtr.h |
Include |
#include "UObject/WeakInterfacePtr.h" |
template<class T>
struct TWeakInterfacePtr
An alternative to TWeakObjectPtr that makes it easier to work through an interface.
Name | Description | |
---|---|---|
|
TWeakInterfacePtr() |
Construct a new default weak pointer, pointing to null object. |
|
TWeakInterfacePtr ( |
Construct from an object pointer |
|
TWeakInterfacePtr ( |
Construct from an interface pointer |
|
TWeakInterfacePtr ( |
Please use the constructor that takes a pointer |
Name | Description | ||
---|---|---|---|
|
T * |
Get() |
Dereference the weak pointer into an interface pointer. |
|
UObject *... |
GetObject() |
Dereference the weak pointer into a UObject pointer. |
|
IsStale |
Test if this pointer is stale. |
|
|
IsValid() |
Test if this points to a live object. |
|
|
IsValid |
Test if this points to a live object. |
|
|
Reset() |
Reset the weak pointer back to the null state. |
|
|
TScriptInter... |
ToScriptInterface() |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
||
|
T & |
operator*() |
Dereference the weak pointer. |
|
TWeakInterfa... |
operator= ( |
Assign from an interface pointer. |
|
TWeakInterfa... |
operator= ( |
Assign from another weak pointer. |
|
TWeakInterfa... |
operator= ( |
Assign from a script interface. |
|
operator== ( |
||
|
T * |
operator->() |
Dereference the weak pointer. |
Name | Description | ||
---|---|---|---|
|
operator== ( |
Implicit equality with a UObject pointer has been deprecated - use GetObject() and test equality on its return value |
|
|
TWeakInterfacePtr ( |
Please use the constructor that takes a pointer |