engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
TLazyObjectPtr< T > 模板结构体 参考

TLazyObjectPtr is templatized version of the generic FLazyObjectPtr 更多...

#include <LazyObjectPtr.h>

+ 类 TLazyObjectPtr< T > 继承关系图:

Public 成员函数

FORCEINLINE T * Get () const
 Dereference the lazy pointer. 更多...
 
FORCEINLINE const FUniqueObjectGuid & GetUniqueID () const
 Gets the unique object identifier associated with this lazy pointer. 更多...
 
FORCEINLINE bool IsNull () const
 Test if this can never point to a live UObject 更多...
 
FORCEINLINE bool IsPending () const
 Test if this does not point to a live UObject, but may in the future 更多...
 
FORCEINLINE bool IsStale () const
 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. 更多...
 
FORCEINLINE bool IsValid () const
 Test if this points to a live UObject
 
FORCEINLINE operator bool () const
 Dereference lazy pointer to see if it points somewhere valid
 
FORCEINLINE T & operator* () const
 Dereference the lazy pointer
 
FORCEINLINE T * operator-> () const
 Dereference the lazy pointer
 
FORCEINLINE 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! 更多...
 
template<typename U , typename = decltype(ImplicitConv<T*>((U*)nullptr))>
FORCEINLINE TLazyObjectPtr< T > & operator= (const TLazyObjectPtr< U > &Other)
 Assign from another lazy pointer with implicit upcasting allowed
 
FORCEINLINE void operator= (T *Object)
 Copy from an object pointer
 
FORCEINLINE void Reset ()
 Reset the lazy pointer back to the null state
 
template<typename U , typename = decltype(ImplicitConv<T*>((U*)nullptr))>
FORCEINLINE TLazyObjectPtr (const TLazyObjectPtr< U > &Other)
 Construct from another lazy pointer with implicit upcasting allowed
 
FORCEINLINE TLazyObjectPtr (T *Object)
 Construct from an object pointer
 

友元

FORCEINLINE friend uint32 GetTypeHash (const TLazyObjectPtr< T > &LazyObjectPtr)
 Hash function.
 

详细描述

template<class T = UObject>
struct TLazyObjectPtr< T >

TLazyObjectPtr is templatized version of the generic FLazyObjectPtr

成员函数说明

◆ Get()

template<class T = UObject>
FORCEINLINE T * TLazyObjectPtr< T >::Get ( ) const
inline

Dereference the lazy pointer.

返回
nullptr if this object is gone or the lazy pointer was null, otherwise a valid UObject pointer

◆ GetUniqueID()

template<class T = UObject>
FORCEINLINE const FUniqueObjectGuid & TLazyObjectPtr< T >::GetUniqueID ( ) const
inline

Gets the unique object identifier associated with this lazy pointer.

Valid even if pointer is not currently valid

返回
Unique ID for this object, or an invalid FUniqueObjectID if this pointer isn't set to anything

◆ IsNull()

template<class T = UObject>
FORCEINLINE bool TLazyObjectPtr< T >::IsNull ( ) const
inline

Test if this can never point to a live UObject

返回
true if this is explicitly pointing to no object

◆ IsPending()

template<class T = UObject>
FORCEINLINE bool TLazyObjectPtr< T >::IsPending ( ) const
inline

Test if this does not point to a live UObject, but may in the future

返回
true if this does not point to a real object, but could possibly

◆ IsStale()

template<class T = UObject>
FORCEINLINE bool TLazyObjectPtr< T >::IsStale ( ) const
inline

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.

返回
true if this used to point at a real object but no longer does.

◆ operator=()

template<class T = UObject>
FORCEINLINE void TLazyObjectPtr< T >::operator= ( const FUniqueObjectGuid &  InObjectID)
inline

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!

参数
ObjectIDObject identifier to create a lazy pointer to

该结构体的文档由以下文件生成: