Ark Server API (ASA) - Wiki
|
#include <UE.h>
Public Types | |
using | ElementType = T |
Public Attributes | |
int | ObjectIndex = 0 |
int | ObjectSerialNumber = 0 |
Friends | |
struct | FFieldPath |
TWeakObjectPtr is the templated version of the generic FWeakObjectPtr
Definition at line 40 of file WeakObjectPtrTemplates.h.
|
inline |
|
inline |
|
default |
|
default |
|
default |
|
inline |
Construct from a null pointer
Definition at line 50 of file WeakObjectPtrTemplates.h.
|
inline |
Construct from an object pointer
Object | object to create a weak pointer to |
Definition at line 63 of file WeakObjectPtrTemplates.h.
|
inline |
Construct from another weak pointer of another type, intended for derived-to-base conversions
Other | weak pointer to copy from |
Definition at line 79 of file WeakObjectPtrTemplates.h.
|
inline |
Dereference the weak pointer. This is an optimized version implying bEvenIfPendingKill=false.
Definition at line 132 of file WeakObjectPtrTemplates.h.
|
inline |
Dereference the weak pointer
bEvenIfPendingKill | if this is true, pendingkill objects are considered valid |
Definition at line 124 of file WeakObjectPtrTemplates.h.
|
inline |
Deferences the weak pointer even if its marked RF_Unreachable. This is needed to resolve weak pointers during GC (such as ::AddReferenceObjects)
Definition at line 138 of file WeakObjectPtrTemplates.h.
|
inline |
Hash function.
Definition at line 228 of file WeakObjectPtrTemplates.h.
|
inline |
Returns true if two weak pointers were originally set to the same object, even if they are now stale
Other | weak pointer to compare to |
Definition at line 214 of file WeakObjectPtrTemplates.h.
|
inline |
Returns true if this pointer was explicitly assigned to null, was reset, or was never initialized. If this returns true, IsValid() and IsStale() will both return false.
Definition at line 205 of file WeakObjectPtrTemplates.h.
|
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.
bIncludingIfPendingKill | if this is true, pendingkill objects are considered stale |
bThreadsafeTest | set it to true when testing outside of Game Thread. Results in false if WeakObjPtr point to an existing object (no flags checked) |
Definition at line 196 of file WeakObjectPtrTemplates.h.
|
inline |
Test if this points to a live UObject. This is an optimized version implying bEvenIfPendingKill=false, bThreadsafeTest=false. This should be done only when needed as excess resolution of the underlying pointer can cause performance issues. Note that IsValid can not be used on another thread as it will incorrectly return false during the mark phase of the GC due to the Unreachable flag being set. (see bThreadsafeTest above)
Definition at line 185 of file WeakObjectPtrTemplates.h.
|
inline |
Test if this points to a live UObject. This should be done only when needed as excess resolution of the underlying pointer can cause performance issues.
bEvenIfPendingKill | if this is true, pendingkill objects are considered valid |
bThreadsafeTest | if true then function will just give you information whether referenced UObject is gone forever (return false) or if it is still there (return true, no object flags checked). This is required as without it IsValid can return false during the mark phase of the GC due to the presence of the Unreachable flag. |
Definition at line 173 of file WeakObjectPtrTemplates.h.
|
inline |
|
explicitdelete |
|
inline |
|
inline |
Definition at line 268 of file WeakObjectPtrTemplates.h.
|
inline |
Compare weak pointers for inequality
Other | weak pointer to compare to |
Definition at line 262 of file WeakObjectPtrTemplates.h.
|
inline |
Definition at line 274 of file WeakObjectPtrTemplates.h.
|
inline |
|
inline |
Dereference the weak pointer
Definition at line 146 of file WeakObjectPtrTemplates.h.
|
inline |
|
inline |
Dereference the weak pointer
Definition at line 154 of file WeakObjectPtrTemplates.h.
|
default |
|
inline |
Assign from another weak pointer, intended for derived-to-base conversions
Other | weak pointer to copy from |
Definition at line 112 of file WeakObjectPtrTemplates.h.
|
inline |
Copy from an object pointer
Object | object to create a weak pointer to |
Definition at line 97 of file WeakObjectPtrTemplates.h.
|
inline |
Definition at line 245 of file WeakObjectPtrTemplates.h.
|
inline |
Compare weak pointers for equality. If both pointers would return nullptr from Get() they count as equal even if they were not initialized to the same object.
Other | weak pointer to compare to |
Definition at line 239 of file WeakObjectPtrTemplates.h.
|
inline |
|
inline |
Definition at line 251 of file WeakObjectPtrTemplates.h.
|
inline |
Reset the weak pointer back to the null state
Definition at line 87 of file WeakObjectPtrTemplates.h.
|
inline |
Weak object pointer serialization, this forwards to FArchive::operator<<(struct FWeakObjectPtr&) or an override
Definition at line 222 of file WeakObjectPtrTemplates.h.
Definition at line 33 of file WeakObjectPtrTemplates.h.
int TWeakObjectPtr< T >::ObjectSerialNumber = 0 |