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.
更多...
|
|
template<typename T , typename... ArgsType> |
| FORCEINLINE void | Emplace (ArgsType &&... Args) |
| | Emplace a new type (deriving from BaseType) into this inline value
|
| |
| FORCEINLINE const BaseType & | Get (const BaseType &Default) const |
| | Get the wrapped object, or a user-specified default 更多...
|
| |
| FORCEINLINE BaseType * | GetPtr (BaseType *Default=nullptr) const |
| | Get a pointer the wrapped object, or a user-specified default 更多...
|
| |
| FORCEINLINE BaseType & | GetValue () const |
| | Access the wrapped object's base type 更多...
|
| |
|
FORCEINLINE bool | IsValid () const |
| | Check if this container is wrapping a valid object
|
| |
|
template<typename T > |
| TEnableIf< TPointerIsConvertibleFromTo< typenameTDecay< T >::Type, BaseType >::Value, TInlineValue & >::Type | operator= (T &&In) |
| | Move assignment from any type relating to BaseType.
|
| |
| void * | Reserve (uint32 InSize, uint32 InAlignment) |
| | Reserve space for a structure derived from BaseType, of the size and alignment specified . 更多...
|
| |
|
void | Reset () |
| | Reset this container back to its empty state
|
| |
|
void | Reset (TInlineValue &&In) |
| | Reset this container to wrap a new type
|
| |
|
| TInlineValue () |
| | Default construction to an empty container
|
| |
|
| TInlineValue (const TInlineValue &In)=delete |
| | Copy construction/assignment is disabled
|
| |
|
template<typename T , typename = typename TEnableIf<TPointerIsConvertibleFromTo<typename TDecay<T>::Type, BaseType>::Value>::Type> |
| | TInlineValue (T &&In) |
| | Construction from any type relating to BaseType.
|
| |
|
| TInlineValue (TInlineValue &&In) |
| | Move construction/assignment
|
| |
|
| ~TInlineValue () |
| | Destructor
|
| |
template<typename BaseType, uint8 DesiredMaxInlineSize = 64, uint8 DefaultAlignment = 8>
class TInlineValue< BaseType, DesiredMaxInlineSize, DefaultAlignment >
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.