| 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() |
|
|
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 |
|
T * |
Get() |
Dereference the weak pointer. This is an optimized version implying bEvenIfPendingKill=false. |
|
T * |
GetEvenIfUnreachable() |
Deferences the weak pointer even if its marked RF_Unreachable. |
|
uint32 |
GetWeakPtrTypeHash() |
Hash function. |
|
bool |
HasSameIndexAndSerialNumber ( |
Returns true if two weak pointers were originally set to the same object, even if they are now stale |
|
bool |
IsExplicitlyNull() |
Returns true if this pointer was explicitly assigned to null, was reset, or was never initialized. |
|
bool |
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. |
|
bool |
IsValid() |
Test if this points to a live UObject. |
|
bool |
IsValid ( |
Test if this points to a live UObject. |
|
void |
Reset() |
Reset the weak pointer back to the null state |
|
void |
Serialize ( |
Weak object pointer serialization, this forwards to FArchive::operator<<(struct FWeakObjectPtr&) or an override |
Name | Description | ||
---|---|---|---|
|
operator bool() |
This is explicitly not added to avoid resolving weak pointers too often - use Get() once in a function. |
|
|
bool |
operator!= ( |
Compare weak pointers for inequality |
|
bool |
operator!= ( |
|
|
bool |
operator!= ( |
|
|
T & |
operator*() |
Dereference the weak pointer |
|
TEnableIf<&#... |
operator= ( |
Copy from an object pointer |
|
TWeakObjectP... |
operator= ( |
|
|
TWeakObjectP... |
operator= ( |
Assign from another weak pointer, intended for derived-to-base conversions |
|
bool |
operator== ( |
|
|
bool |
operator== ( |
Compare weak pointers for equality. |
|
bool |
operator== ( |
|
|
T * |
operator->() |
Dereference the weak pointer |
Name |
Description |
---|---|
ElementType |
Although templated, these parameters are not intended to be anything other than the default, and are only templates for module organization reasons. |