Navigation
Unreal Engine C++ API Reference > 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& |
||
![]() |
TWeakFieldPtr
(
TYPE_OF_NULLPTR |
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
(
bool bEvenIfPendingKill |
Dereference the weak pointer |
![]() ![]() |
T * | Get () |
Dereference the weak pointer. This is an optimized version implying bEvenIfPendingKill=false. |
![]() ![]() |
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 | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const TWeakFieldPtr< TOther >& Other |
Compare weak pointers for inequality |
![]() ![]() |
bool | operator!=
(
const TOther* Other |
Compare weak pointers for inequality |
![]() ![]() |
T & | operator* () |
Dereference the weak pointer |
![]() |
TWeakFieldPtr & | operator=
(
const TWeakFieldPtr& |
|
![]() |
TEnableIfTLosesQualifiersFromTo< U, T >::Value >::Type | operator=
(
const U* InField |
Copy from an object pointer |
![]() |
void | operator=
(
const TWeakFieldPtr< OtherT >& Other |
Assign from another weak pointer, intended for derived-to-base conversions |
![]() ![]() |
bool | operator==
(
const TWeakFieldPtr< TOther >& Other |
Compare weak pointers for equality |
![]() ![]() |
bool | operator==
(
const TOther* Other |
Compare weak pointers for equality |
![]() ![]() |
T * | operator-> () |
Dereference the weak pointer |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EDummy1 | These exists only to disambiguate the two constructors below. |
Typedefs
Name | Description |
---|---|
ElementType |