Ark Server API (ASA) - Wiki
|
#include <UniquePtr.h>
Public Types | |
using | ElementType = T |
Private Types | |
using | PtrType = T* |
Private Member Functions | |
DECLARE_INLINE_TYPE_LAYOUT_EXPLICIT_BASES (TUniquePtr, NonVirtual, Deleter) | |
LAYOUT_FIELD (PtrType, Ptr) | |
Private Member Functions inherited from TDefaultDelete< T > | |
DECLARE_INLINE_TYPE_LAYOUT (TDefaultDelete, NonVirtual) | |
TDefaultDelete ()=default | |
TDefaultDelete (const TDefaultDelete &)=default | |
TDefaultDelete & | operator= (const TDefaultDelete &)=default |
~TDefaultDelete ()=default | |
template<typename U , typename = decltype(ImplicitConv<T*>((U*)nullptr))> | |
TDefaultDelete (const TDefaultDelete< U > &) | |
template<typename U , typename = decltype(ImplicitConv<T*>((U*)nullptr))> | |
TDefaultDelete & | operator= (const TDefaultDelete< U > &) |
void | operator() (T *Ptr) const |
Friends | |
template<typename OtherT , typename OtherDeleter > | |
class | TUniquePtr |
Definition at line 104 of file UniquePtr.h.
using TUniquePtr< T, Deleter >::ElementType = T |
Definition at line 112 of file UniquePtr.h.
|
private |
Definition at line 378 of file UniquePtr.h.
|
delete |
|
inline |
Default constructor - initializes the TUniquePtr to null.
Definition at line 121 of file UniquePtr.h.
|
inlineexplicit |
Pointer constructor - takes ownership of the pointed-to object
InPtr | The pointed-to object to take ownership of. |
Definition at line 136 of file UniquePtr.h.
|
inlineexplicit |
Pointer constructor - takes ownership of the pointed-to object
InPtr | The pointed-to object to take ownership of. |
Definition at line 151 of file UniquePtr.h.
|
inlineexplicit |
Pointer constructor - takes ownership of the pointed-to object
InPtr | The pointed-to object to take ownership of. |
Definition at line 166 of file UniquePtr.h.
|
inline |
nullptr constructor - initializes the TUniquePtr to null.
Definition at line 175 of file UniquePtr.h.
|
inline |
Move constructor
Definition at line 184 of file UniquePtr.h.
|
inline |
Constructor from rvalues of other (usually derived) types
Definition at line 200 of file UniquePtr.h.
|
inline |
Destructor
Definition at line 264 of file UniquePtr.h.
|
private |
|
inline |
Returns a pointer to the owned object without relinquishing ownership.
Definition at line 324 of file UniquePtr.h.
|
inline |
Returns a reference to the deleter subobject.
Definition at line 362 of file UniquePtr.h.
|
inline |
Returns a reference to the deleter subobject.
Definition at line 372 of file UniquePtr.h.
|
inline |
Tests if the TUniquePtr currently owns an object.
Definition at line 274 of file UniquePtr.h.
|
private |
|
inlineexplicit |
operator bool
Definition at line 284 of file UniquePtr.h.
|
inline |
Logical not operator
Definition at line 294 of file UniquePtr.h.
|
inline |
Inequality comparison operator
Lhs | The first TUniquePtr to compare. |
Rhs | The second TUniquePtr to compare. |
Definition at line 418 of file UniquePtr.h.
|
inline |
Inequality comparison operator against nullptr.
Rhs | The TUniquePtr to compare. |
Definition at line 430 of file UniquePtr.h.
|
inline |
Dereference operator
Definition at line 314 of file UniquePtr.h.
|
inline |
Indirection operator
Definition at line 304 of file UniquePtr.h.
|
delete |
|
inline |
Move assignment operator
Definition at line 210 of file UniquePtr.h.
|
inline |
Assignment operator for rvalues of other (usually derived) types
Definition at line 235 of file UniquePtr.h.
|
inline |
Nullptr assignment operator
Definition at line 251 of file UniquePtr.h.
|
inline |
Equality comparison operator
Lhs | The first TUniquePtr to compare. |
Rhs | The second TUniquePtr to compare. |
Definition at line 391 of file UniquePtr.h.
|
inline |
Equality comparison operator against nullptr.
Lhs | The TUniquePtr to compare. |
Definition at line 403 of file UniquePtr.h.
|
inline |
Relinquishes control of the owned object to the caller and nulls the TUniquePtr.
Definition at line 334 of file UniquePtr.h.
|
inline |
Gives the TUniquePtr a new object to own, destroying any previously-owned object.
InPtr | A pointer to the object to take ownership of. |
Definition at line 346 of file UniquePtr.h.
|
friend |
Definition at line 109 of file UniquePtr.h.