Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
Inheritance Hierarchy
- TPersistentObjectPtr
- FLazyObjectPtr
- TLazyObjectPtr
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/LazyObjectPtr.h |
Include | #include "UObject/LazyObjectPtr.h" |
Syntax
template<class T>
struct TLazyObjectPtr : private FLazyObjectPtr
Remarks
TLazyObjectPtr is the templatized version of the generic FLazyObjectPtr. NOTE: This will be deprecated in a future engine version and new features should use TSoftObjectPtr instead.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
TLazyObjectPtr
(
TLazyObjectPtr< T >&& |
||
![]() |
TLazyObjectPtr
(
const TLazyObjectPtr< T >& |
||
![]() |
TLazyObjectPtr
(
const TLazyObjectPtr< U >& Other |
Construct from another lazy pointer with implicit upcasting allowed | |
![]() |
TLazyObjectPtr
(
T* Object |
Construct from an object pointer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
T * | Get () |
Dereference the lazy pointer. |
![]() ![]() |
uint32 | Hash function. | |
![]() ![]() |
const FUniqueObjectGuid & | GetUniqueID () |
Gets the unique object identifier associated with this lazy pointer. |
![]() ![]() |
bool | IsNull () |
Test if this can never point to a live UObject |
![]() ![]() |
bool | IsPending () |
Test if this does not point to a live UObject, but may in the future |
![]() ![]() |
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 |
![]() |
void | Reset () |
Reset the lazy pointer back to the null state |
![]() |
void | SerializePtr
(
FArchive& Ar |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Dereference lazy pointer to see if it points somewhere valid | ||
![]() ![]() |
bool | operator!=
(
TYPE_OF_NULLPTR |
Compare for inequality with null |
![]() ![]() |
bool | operator!=
(
const TLazyObjectPtr< U >& Rhs |
|
![]() ![]() |
bool | operator!=
(
const U* Rhs |
Compare for inequality with a raw pointer |
![]() ![]() |
T & | operator* () |
Dereference the lazy pointer |
![]() |
void | operator=
(
const FUniqueObjectGuid& InObjectID |
Copy from a unique object identifier WARNING: this doesn't check the type of the object is correct, because the object corresponding to this ID may not even be loaded! |
![]() |
TLazyObjectPtr< T > & | operator=
(
TLazyObjectPtr< T >&& |
|
![]() |
TLazyObjectPtr< T > & | operator=
(
const TLazyObjectPtr< T >& |
|
![]() |
TLazyObjectPtr< T > & | operator=
(
const TLazyObjectPtr< U >& Other |
Assign from another lazy pointer with implicit upcasting allowed |
![]() |
void | operator=
(
T* Object |
Copy from an object pointer |
![]() ![]() |
bool | operator==
(
TYPE_OF_NULLPTR |
Compare to null |
![]() ![]() |
bool | operator==
(
const TLazyObjectPtr< U >& Rhs |
Compare with another TLazyObjectPtr of related type |
![]() ![]() |
bool | operator==
(
const U* Rhs |
Compare for equality with a raw pointer |
![]() ![]() |
T * | operator-> () |
Dereference the lazy pointer |
Typedefs
Name | Description |
---|---|
ElementType |