Navigation
API > API/Runtime > API/Runtime/CoreOnline
TMap that holds a TVariant with helper functions for working with variant types.
| Name | TVariantMap |
| 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 TVariantMap :
public TMap< KeyType, TVariant< ValueTypes... > > ,
public TSharedFromThis< TVariantMap< KeyType, ValueTypes... > >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → TVariantMap
- TMap → TVariantMap
Derived Classes
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MapType | TMap< KeyType, VariantType > | Online/NestedVariant.h | |
| VariantType | TVariant< ValueTypes... > | Online/NestedVariant.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
VariantValueType & AddVariant
(
AddKeyType&& Key, |
Online/NestedVariant.h | ||
void AddVariantMap
(
const TMap< KeyType, ValueType >& Map |
Online/NestedVariant.h | ||
bool GetVariant
(
const GetKeyType& Key, |
Online/NestedVariant.h | ||
bool GetVariant
(
const GetKeyType& Key, |
Online/NestedVariant.h | ||
bool GetVariantMap
(
TMap< KeyType, ValueType >& OutValue |
Online/NestedVariant.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< TVariantMap< KeyType, ValueTypes... > > CreateVariant() |
Online/NestedVariant.h |