Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/UniquePtr.h |
Include |
#include "Templates/UniquePtr.h" |
template<typename T, typename Deleter>
class TUniquePtr : private Deleter
Name | Description | |
---|---|---|
|
TUniquePtr() |
Default constructor - initializes the TUniquePtr to null. |
|
TUniquePtr ( |
Non-copyable. |
|
TUniquePtr ( |
Pointer constructor - takes ownership of the pointed-to object |
|
TUniquePtr ( |
Nullptr constructor - initializes the TUniquePtr to null. |
|
TUniquePtr ( |
Move constructor |
|
TUniquePtr ( |
Constructor from rvalues of other (usually derived) types |
|
TUniquePtr ( |
Pointer constructor - takes ownership of the pointed-to object |
|
TUniquePtr ( |
Pointer constructor - takes ownership of the pointed-to object |
Name | Description | |
---|---|---|
|
~TUniquePtr() |
Destructor |
Name | Description | ||
---|---|---|---|
|
T * |
Get() |
Returns a pointer to the owned object without relinquishing ownership. |
|
const Delete... |
GetDeleter() |
Returns a reference to the deleter subobject. |
|
Deleter & |
GetDeleter() |
Returns a reference to the deleter subobject. |
|
const FTypeL... |
GetTypeLayout() |
|
|
bool |
IsValid() |
Tests if the TUniquePtr currently owns an object. |
|
T * |
Release() |
Relinquishes control of the owned object to the caller and nulls the TUniquePtr. |
|
void |
Reset ( |
Gives the TUniquePtr a new object to own, destroying any previously-owned object. |
|
FTypeLayoutD... |
StaticGetTypeLayout() |
Name | Description | ||
---|---|---|---|
|
operator bool() |
Operator bool |
|
|
bool |
operator!() |
Logical not operator |
|
bool |
operator!= ( |
Inequality comparison operator |
|
bool |
operator!= ( |
Inequality comparison operator against nullptr. |
|
T & |
operator*() |
Dereference operator |
|
operator= ( |
||
|
operator= ( |
Move assignment operator |
|
|
operator= ( |
Assignment operator for rvalues of other (usually derived) types |
|
|
operator= ( |
Nullptr assignment operator |
|
|
bool |
operator== ( |
Equality comparison operator |
|
bool |
operator== ( |
Equality comparison operator against nullptr. |
|
T * |
operator->() |
Indirection operator |
Name |
Description |
|
---|---|---|
|
InternalLinkType |
Name |
Description |
---|---|
DerivedType |
|
ElementType |
|
PtrType |
Name |
Description |
---|---|
CounterBase |
|
InterfaceType |