Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TAutoWeakObjectPtr< T > Class Template Reference

#include <WeakObjectPtrTemplates.h>

+ Inheritance diagram for TAutoWeakObjectPtr< T >:
+ Collaboration diagram for TAutoWeakObjectPtr< T >:

Public Member Functions

FORCEINLINE TAutoWeakObjectPtr ()
 
FORCEINLINE TAutoWeakObjectPtr (const T *Target)
 
FORCEINLINE TAutoWeakObjectPtr (const TWeakObjectPtr< T > &Other)
 
FORCEINLINE operator T* () const
 
FORCEINLINE operator const T * () const
 
FORCEINLINE operator bool () const
 
- Public Member Functions inherited from TWeakObjectPtr< T >
FORCEINLINE Toperator* ()
 
FORCEINLINE Toperator-> ()
 
TGet (bool bEvenIfPendingKill=false)
 
FORCEINLINE operator bool ()
 
FORCEINLINE operator T* ()
 
FORCEINLINE bool operator== (const TWeakObjectPtr< T > &__that) const
 
 TWeakObjectPtr ()
 
 TWeakObjectPtr (int index, int serialnumber)
 
 TWeakObjectPtr ()=default
 
 TWeakObjectPtr (const TWeakObjectPtr &)=default
 
TWeakObjectPtroperator= (const TWeakObjectPtr &)=default
 
 ~TWeakObjectPtr ()=default
 
FORCEINLINE TWeakObjectPtr (TYPE_OF_NULLPTR)
 
template<typename U , decltype(ImplicitConv< T * >(std::declval< U >())) * = nullptr>
FORCEINLINE TWeakObjectPtr (U Object)
 
template<typename OtherT , typename = decltype(ImplicitConv<T*>((OtherT*)nullptr))>
FORCEINLINE TWeakObjectPtr (const TWeakObjectPtr< OtherT, TWeakObjectPtrBase > &Other)
 
FORCEINLINE void Reset ()
 
template<class U >
FORCEINLINE TEnableIf<!TLosesQualifiersFromTo< U, T >::Value, TWeakObjectPtr & >::Type operator= (U *Object)
 
template<typename OtherT , typename = decltype(ImplicitConv<T*>((OtherT*)nullptr))>
FORCEINLINE TWeakObjectPtroperator= (const TWeakObjectPtr< OtherT, TWeakObjectPtrBase > &Other)
 
FORCEINLINE TGet (bool bEvenIfPendingKill) const
 
FORCEINLINE TGet () const
 
FORCEINLINE TGetEvenIfUnreachable () const
 
FORCEINLINE Toperator* () const
 
FORCEINLINE Toperator-> () const
 
 operator bool () const =delete
 
FORCEINLINE bool IsValid (bool bEvenIfPendingKill, bool bThreadsafeTest=false) const
 
FORCEINLINE bool IsValid () const
 
FORCEINLINE bool IsStale (bool bIncludingIfPendingKill=true, bool bThreadsafeTest=false) const
 
FORCEINLINE bool IsExplicitlyNull () const
 
FORCEINLINE bool HasSameIndexAndSerialNumber (const TWeakObjectPtr &Other) const
 
FORCEINLINE void Serialize (FArchive &Ar)
 
FORCEINLINE uint32 GetWeakPtrTypeHash () const
 
template<typename RhsT , typename = decltype((T*)nullptr == (RhsT*)nullptr)>
FORCENOINLINE bool operator== (const TWeakObjectPtr< RhsT, TWeakObjectPtrBase > &Rhs) const
 
template<typename RhsT , typename = decltype((T*)nullptr == (RhsT*)nullptr)>
FORCENOINLINE bool operator== (const RhsT *Rhs) const
 
FORCENOINLINE bool operator== (TYPE_OF_NULLPTR) const
 
template<typename RhsT , typename = decltype((T*)nullptr != (RhsT*)nullptr)>
FORCENOINLINE bool operator!= (const TWeakObjectPtr< RhsT, TWeakObjectPtrBase > &Rhs) const
 
template<typename RhsT , typename = decltype((T*)nullptr != (RhsT*)nullptr)>
FORCENOINLINE bool operator!= (const RhsT *Rhs) const
 
FORCENOINLINE bool operator!= (TYPE_OF_NULLPTR) const
 

Additional Inherited Members

- Public Types inherited from TWeakObjectPtr< T >
using ElementType = T
 
- Public Attributes inherited from TWeakObjectPtr< T >
int ObjectIndex = 0
 
int ObjectSerialNumber = 0
 

Detailed Description

template<class T>
class TAutoWeakObjectPtr< T >

Automatic version of the weak object pointer

Definition at line 370 of file WeakObjectPtrTemplates.h.

Constructor & Destructor Documentation

◆ TAutoWeakObjectPtr() [1/3]

NULL constructor

Definition at line 375 of file WeakObjectPtrTemplates.h.

◆ TAutoWeakObjectPtr() [2/3]

Construct from a raw pointer

Definition at line 380 of file WeakObjectPtrTemplates.h.

◆ TAutoWeakObjectPtr() [3/3]

Construct from the base type

Definition at line 386 of file WeakObjectPtrTemplates.h.

Member Function Documentation

◆ operator bool()

template<class T >
FORCEINLINE TAutoWeakObjectPtr< T >::operator bool ( ) const
inlineexplicit

Definition at line 402 of file WeakObjectPtrTemplates.h.

◆ operator const T *()

template<class T >
FORCEINLINE TAutoWeakObjectPtr< T >::operator const T * ( ) const
inline

Definition at line 396 of file WeakObjectPtrTemplates.h.

◆ operator T*()

template<class T >
FORCEINLINE TAutoWeakObjectPtr< T >::operator T* ( ) const
inline

Definition at line 391 of file WeakObjectPtrTemplates.h.


The documentation for this class was generated from the following file: