Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/InlineValue.h |
Include |
#include "Misc/InlineValue.h" |
A container type that houses an instance of BaseType in inline memory where it is <= MaxInlineSize, or in a separate heap allocation where it's > MaxInlineSize.
Can be viewed as a TUniquePtr with a small allocation optimization.
Name | Description | |
---|---|---|
|
TInlineValue() |
Default construction to an empty container |
|
TInlineValue ( |
Construction from any type relating to BaseType. |
|
TInlineValue ( |
Move construction/assignment |
|
TInlineValue ( |
Copy construction/assignment is disabled |
Name | Description | |
---|---|---|
|
~TInlineValue() |
Destructor |
Name | Description | ||
---|---|---|---|
|
Emplace ( |
Emplace a new type (deriving from BaseType) into this inline value |
|
|
const BaseTy... |
Get ( |
Get the wrapped object, or a user-specified default |
|
BaseType ... |
GetPtr ( |
Get a pointer the wrapped object, or a user-specified default |
|
const BaseTy... |
GetPtr ( |
Get a pointer the wrapped object, or a user-specified default |
|
BaseType & |
GetValue() |
Access the wrapped object's base type |
|
const BaseTy... |
GetValue() |
Access the wrapped object's base type |
|
IsValid() |
Check if this container is wrapping a valid object |
|
|
void * |
Reserve |
Reserve space for a structure derived from BaseType, of the size and alignment specified . |
|
Reset() |
Reset this container back to its empty state |
|
|
Reset ( |
Reset this container to wrap a new type |
Name | Description | ||
---|---|---|---|
|
BaseType & |
operator*() |
|
|
const BaseTy... |
operator*() |
|
|
TInlineValue... |
operator= ( |
|
|
TInlineValue... |
operator= ( |
|
|
operator= ( |
Move assignment from any type relating to BaseType. |
|
|
BaseType ... |
operator->() |
|
|
const BaseTy... |
operator->() |