TWeakFieldPtr

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/WeakFieldPtr.h

Include

#include "UObject/WeakFieldPtr.h"

Syntax

template<class T>
struct TWeakFieldPtr

Constructors

Name Description

Public function

TWeakFieldPtr()

Public function

TWeakFieldPtr

(
    const TWeakFieldPtr&
)

Public function

TWeakFieldPtr

(
    TYPE_OF_NULLPTR
)

Construct from a null pointer

Public function

TWeakFieldPtr

(
    const TWeakFieldPtr< OtherT >& Oth...
)

Construct from another weak pointer of another type, intended for derived-to-base conversions

Public function

TWeakFieldPtr

(
    U* InField,
    EDummy1
)

Construct from an object pointer

Destructors

Name Description

Public function

~TWeakFieldPtr()

Functions

Name Description

Public function Const

T *

 

Get()

Dereference the weak pointer. This is an optimized version implying bEvenIfPendingKill=false.

Public function Const

T *

 

Get

(
    bool bEvenIfPendingKill
)

Dereference the weak pointer

Public function Const

T *

 

GetEvenIfUnreachable()

Deferences the weak pointer even if its marked RF_Unreachable.

Public function Const

bool

 

HasSameIndexAndSerialNumber

(
    const TWeakFieldPtr& Other
)

Public function Const

bool

 

IsStale

(
    bool bIncludingIfPendingKill,
    bool bThreadsafeTest
)

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.

Public function Const

bool

 

IsValid

(
    bool bEvenIfPendingKill,
    bool bThreadsafeTest
)

Test if this points to a live FField

Public function Const

bool

 

IsValid()

Test if this points to a live FField.

Public function

void

 

Reset()

Reset the weak pointer back to the NULL state

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const TOther* Other
)

Compare weak pointers for inequality

Public function Const

bool

 

operator!=

(
    const TWeakFieldPtr< TOther >& Oth...
)

Compare weak pointers for inequality

Public function Const

T &

 

operator*()

Dereference the weak pointer

Public function

TWeakFieldPt...

 

operator=

(
    const TWeakFieldPtr&
)

Public function

TEnableIf<&#...

 

operator=

(
    const U* InField
)

Copy from an object pointer

Public function

void

 

operator=

(
    const TWeakFieldPtr< OtherT >& Oth...
)

Assign from another weak pointer, intended for derived-to-base conversions

Public function Const

bool

 

operator==

(
    const TWeakFieldPtr< TOther >& Oth...
)

Compare weak pointers for equality

Public function Const

bool

 

operator==

(
    const TOther* Other
)

Compare weak pointers for equality

Public function Const

T *

 

operator->()

Dereference the weak pointer

Enums

Name

Description

Private enum

EDummy1

These exists only to disambiguate the two constructors below.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss