Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
Inheritance Hierarchy
- Deleter
- TUniquePtr
- FBodyInstance::FBodyInstanceDelegatesPtr
- FMaterialResourceProxyReader
- FStoreClient::FTraceData
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/UniquePtr.h |
| Include | #include "Templates/UniquePtr.h" |
Syntax
template<typename T, typename Deleter>
class TUniquePtr : private Deleter
Specializations
Constructors
| Type | Name | Description | |
|---|---|---|---|
TUniquePtr () |
Default constructor - initializes the TUniquePtr to null. | ||
TUniquePtr
(
const TUniquePtr& |
Non-copyable. | ||
TUniquePtr
(
U* InPtr |
Pointer constructor - takes ownership of the pointed-to object | ||
TUniquePtr
(
TYPE_OF_NULLPTR |
Nullptr constructor - initializes the TUniquePtr to null. | ||
TUniquePtr
(
TUniquePtr&& Other |
Move constructor | ||
TUniquePtr
(
TUniquePtr< OtherT, OtherDeleter >&& Other |
Constructor from rvalues of other (usually derived) types | ||
TUniquePtr
(
U* InPtr, |
Pointer constructor - takes ownership of the pointed-to object | ||
TUniquePtr
(
U* InPtr, |
Pointer constructor - takes ownership of the pointed-to object |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~TUniquePtr () |
Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| T * | Get () |
Returns a pointer to the owned object without relinquishing ownership. | |
| const Deleter & | GetDeleter () |
Returns a reference to the deleter subobject. | |
| Deleter & | GetDeleter () |
Returns a reference to the deleter subobject. | |
| const FTypeLayoutDesc & | |||
| 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
(
T* InPtr |
Gives the TUniquePtr a new object to own, destroying any previously-owned object. | |
| FTypeLayoutDesc & |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Operator bool | |||
| bool | operator!=
(
const TUniquePtr< RhsT >& Rhs |
Inequality comparison operator | |
| bool | operator!=
(
TYPE_OF_NULLPTR |
Inequality comparison operator against nullptr. | |
| T & | operator* () |
Dereference operator | |
| TUniquePtr & | operator=
(
const TUniquePtr& |
||
| TUniquePtr & | operator=
(
TUniquePtr&& Other |
Move assignment operator | |
| TUniquePtr & | operator=
(
TUniquePtr< OtherT, OtherDeleter >&& Other |
Assignment operator for rvalues of other (usually derived) types | |
| TUniquePtr & | operator=
(
TYPE_OF_NULLPTR |
Nullptr assignment operator | |
| bool | operator==
(
const TUniquePtr< RhsT >& Rhs |
Equality comparison operator | |
| bool | operator==
(
TYPE_OF_NULLPTR |
Equality comparison operator against nullptr. | |
| T * | operator-> () |
Indirection operator |
Classes
| Type | Name | Description | |
|---|---|---|---|
| InternalLinkType |
Typedefs
| Name | Description |
|---|---|
| DerivedType | |
| ElementType | |
| PtrType |
Constants
| Name | Description |
|---|---|
| CounterBase | |
| InterfaceType |