Navigation
API > API/Runtime > API/Runtime/CoreOnline
Classes for working with nested TVariants that also have TArray and TMap references holding TVariants of the same types. This is just one possible nesting structure. Other custom structures can be built for various use cases (no arrays, arrays with fixed types, etc). First declare types to allow for nesting.
Nested TVariantArray that can hold all provided types plus nested array and map references.
| Name | TNestedVariantArray |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreOnline/Public/Online/NestedVariant.h |
| Include Path | #include "Online/NestedVariant.h" |
Syntax
template<typename KeyType, typename... ValueTypes>
class TNestedVariantArray : public TVariantArray< ValueTypes..., TNestedVariantArrayRef< KeyType, ValueTypes... >, TNestedVariantMapRef< KeyType, ValueTypes... > >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → TVariantArray → TNestedVariantArray
- TArray → TVariantArray → TNestedVariantArray
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ToDebugString
(
FString& OutString |
Online/NestedVariant.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TNestedVariantArrayRef< KeyType, ValueTypes... > CreateVariant() |
Online/NestedVariant.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const TNestedVariantArray& Other |
Online/NestedVariant.h | ||
bool operator==
(
const TNestedVariantArray& Other |
Online/NestedVariant.h |