Choose your operating system:
Windows
macOS
Linux
| TWeakObjectPtrBase
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/UObject/WeakObjectPtrTemplates.h |
Include |
#include "UObject/WeakObjectPtrTemplates.h" |
template<class T, class TWeakObjectPtrBase>
struct TWeakObjectPtr : private TWeakObjectPtrBase
TWeakObjectPtr is the templated version of the generic FWeakObjectPtr
Name | Description | |
---|---|---|
|
TWeakObjectPtr() |
Although templated, these parameters are not intended to be anything other than the default, and are only templates for module organization reasons. |
|
TWeakObjectPtr ( |
|
|
TWeakObjectPtr |
Construct from a null pointer |
|
TWeakObjectPtr ( |
Construct from an object pointer |
|
TWeakObjectPtr ( |
Construct from another weak pointer of another type, intended for derived-to-base conversions |
Name | Description | |
---|---|---|
|
~TWeakObjectPtr() |
Name | Description | ||
---|---|---|---|
|
T * |
Get() |
Dereference the weak pointer. This is an optimized version implying bEvenIfPendingKill=false. |
|
T * |
Get ( |
Dereference the weak pointer |
|
T * |
GetEvenIfUnreachable() |
Deferences the weak pointer even if its marked RF_Unreachable. |
|
HasSameIndexAndSerialNumber ( |
Returns true if two weak pointers were originally set to the same object, even if they are now stale |
|
|
IsExplicitlyNull() |
Returns true if this pointer was explicitly assigned to null, was reset, or was never initialized. |
|
|
IsStale |
Slightly different than !IsValid(), returns true if this used to point to a UObject, but doesn't any more and has not been assigned or reset in the mean time. |
|
|
IsValid() |
Test if this points to a live UObject. |
|
|
IsValid |
Test if this points to a live UObject |
|
|
Reset() |
Reset the weak pointer back to the null state |
Name | Description | ||
---|---|---|---|
|
T & |
operator*() |
Dereference the weak pointer |
|
TWeakObjectP... |
operator= ( |
|
|
TEnableIf<&#... |
operator= ( |
Copy from an object pointer |
|
TWeakObjectP... |
operator= ( |
Assign from another weak pointer, intended for derived-to-base conversions |
|
T * |
operator->() |
Dereference the weak pointer |