Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/WeakFieldPtr.h |
| Include | #include "UObject/WeakFieldPtr.h" |
Syntax
template<class T>
struct TWeakFieldPtr
Constructors
| Type | Name | Description | |
|---|---|---|---|
TWeakFieldPtr
(
const TWeakFieldPtr& |
|||
| Construct from a null pointer | |||
TWeakFieldPtr
(
const TWeakFieldPtr< OtherT >& Other |
Construct from another weak pointer of another type, intended for derived-to-base conversions | ||
TWeakFieldPtr
(
U* InField, |
Construct from an object pointer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| T * | Get () |
Dereference the weak pointer. This is an optimized version implying bEvenIfPendingKill=false. | |
| T * | Get
(
bool bEvenIfPendingKill |
Dereference the weak pointer | |
| T * | Deferences the weak pointer even if its marked RF_Unreachable. | ||
| bool | HasSameIndexAndSerialNumber
(
const TWeakFieldPtr& Other |
||
| bool | IsStale
(
bool bIncludingIfPendingKill, |
Slightly different than !IsValid(), returns true if this used to point to a FField, 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 FField. | |
| bool | IsValid
(
bool bEvenIfPendingKill, |
Test if this points to a live FField | |
| void | Reset () |
Reset the weak pointer back to the NULL state | |
| void |
Operators
| Type | Name | Description | |
|---|---|---|---|
| T & | operator* () |
Dereference the weak pointer | |
| TWeakFieldPtr & | operator=
(
const TWeakFieldPtr& |
||
| void | operator=
(
U* InField |
Copy from an object pointer | |
| void | operator=
(
const TWeakFieldPtr< OtherT >& Other |
Assign from another weak pointer, intended for derived-to-base conversions | |
| T * | operator-> () |
Dereference the weak pointer |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EDummy1 | These exists only to disambiguate the two constructors below. |
Typedefs
| Name | Description |
|---|---|
| ElementType |