Ark Server API (ASA) - Wiki
|
#include <SharedPointer.h>
Public Member Functions | |
TSharedRef< ObjectType, Mode > | AsShared () |
TSharedRef< ObjectType const, Mode > | AsShared () const |
TWeakPtr< ObjectType, Mode > | AsWeak () |
TWeakPtr< ObjectType const, Mode > | AsWeak () const |
template<class SharedPtrType , class OtherType > | |
FORCEINLINE void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const |
template<class SharedRefType , class OtherType > | |
FORCEINLINE void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const |
FORCEINLINE bool | DoesSharedInstanceExist () const |
Protected Member Functions | |
TSharedFromThis () | |
TSharedFromThis (TSharedFromThis const &) | |
FORCEINLINE TSharedFromThis & | operator= (TSharedFromThis const &) |
~TSharedFromThis () | |
Static Protected Member Functions | |
template<class OtherType > | |
static FORCEINLINE TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
template<class OtherType > | |
static FORCEINLINE TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
Private Attributes | |
TWeakPtr< ObjectType, Mode > | WeakThis |
Derive your class from TSharedFromThis to enable access to a TSharedRef directly from an object instance that's already been allocated. Use the optional Mode template argument for thread-safety.
Definition at line 1551 of file SharedPointer.h.
|
inlineprotected |
Hidden stub constructor
Definition at line 1728 of file SharedPointer.h.
|
inlineprotected |
Hidden stub copy constructor
Definition at line 1731 of file SharedPointer.h.
|
inlineprotected |
Hidden destructor
Definition at line 1740 of file SharedPointer.h.
|
inline |
Provides access to a shared reference to this object. Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. Also note that it is illegal to call this in the object's destructor.
Definition at line 1562 of file SharedPointer.h.
|
inline |
Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. Also note that it is illegal to call this in the object's destructor.
Definition at line 1589 of file SharedPointer.h.
|
inline |
Provides a weak reference to this object. Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. Also note that it is illegal to call this in the object's destructor.
Definition at line 1616 of file SharedPointer.h.
|
inline |
Definition at line 1634 of file SharedPointer.h.
|
inline |
Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). If this returns false, it means that your instance has either:
Definition at line 1720 of file SharedPointer.h.
|
inlineprotected |
Hidden stub assignment operator
Definition at line 1734 of file SharedPointer.h.
|
inlinestaticprotected |
Provides access to a shared reference to an object, given the object's 'this' pointer. Uses the 'this' pointer to derive the object's actual type, then casts and returns an appropriately typed shared reference. Intentionally declared 'protected', as should only be called when the 'this' pointer can be passed.
Definition at line 1678 of file SharedPointer.h.
|
inlinestaticprotected |
Provides access to a shared reference to an object, given the object's 'this' pointer. Uses the 'this' pointer to derive the object's actual type, then casts and returns an appropriately typed shared reference. Intentionally declared 'protected', as should only be called when the 'this' pointer can be passed.
Definition at line 1664 of file SharedPointer.h.
|
inline |
INTERNAL USE ONLY – Do not call this method. Freshens the internal weak pointer object using the supplied object pointer along with the authoritative shared reference to the object. Note that until this function is called, calls to AsShared() will result in an empty pointer.
Definition at line 1691 of file SharedPointer.h.
|
inline |
INTERNAL USE ONLY – Do not call this method. Freshens the internal weak pointer object using the supplied object pointer along with the authoritative shared reference to the object. Note that until this function is called, calls to AsShared() will result in an empty pointer.
Definition at line 1705 of file SharedPointer.h.
|
mutableprivate |
Weak reference to ourselves. If we're destroyed then this weak pointer reference will be destructed with ourselves. Note this is declared mutable only so that UpdateWeakReferenceInternal() can update it.
Definition at line 1746 of file SharedPointer.h.