TLazyObjectPtr is templatized version of the generic FLazyObjectPtr
更多...
#include <LazyObjectPtr.h>
|
| 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>
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>
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>
Test if this can never point to a live UObject
- 返回
- true if this is explicitly pointing to no object
◆ IsPending()
template<class T = UObject>
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>
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>
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!
- 参数
-
| ObjectID | Object identifier to create a lazy pointer to |
该结构体的文档由以下文件生成: