Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/Variant.h |
Include |
#include "Misc/Variant.h" |
class FVariant
Implements an extensible union of multiple types.
Variant types can be used to store a range of different built-in types, as well as user defined types. The values are internally serialized into a byte array, which means that only FArchive serializable types are supported at this time.
Name | Description | |
---|---|---|
|
FVariant() |
Default constructor. |
|
FVariant ( |
|
|
FVariant ( |
|
|
FVariant ( |
Creates and initializes a new instance with the specified value. |
|
FVariant |
Creates and initializes a new instance from a byte array. |
|
FVariant |
|
|
FVariant ( |
Creates and initializes a new instance from a TCHAR string. |
Name | Description | |
---|---|---|
|
~FVariant() |
Name | Description | ||
---|---|---|---|
|
Empty() |
Empties the value. |
|
|
const TArray... |
GetBytes() |
Gets the stored value as a byte array. |
|
GetSize() |
Gets the stored value's size (in bytes). |
|
|
EVariantType... |
GetType() |
Gets the stored value's type. |
|
T |
GetValue() |
Gets the stored value. |
|
GetValue() |
Gets the stored value for byte arrays. |
|
|
IsEmpty() |
Checks whether the value is empty. |
Name | Description | ||
---|---|---|---|
|
operator T() |
Implicit conversion operator. |
|
|
operator!= ( |
Comparison operator for inequality. |
|
|
FVariant & |
operator= |
|
|
FVariant & |
operator= ( |
|
|
FVariant & |
operator= ( |
|
|
FVariant & |
operator= ( |
Assignment operator. |
|
FVariant & |
operator= |
Assignment operator for byte arrays. |
|
FVariant & |
operator= ( |
Assignment operator for TCHAR strings. |
|
operator== ( |
Comparison operator for equality. |