Navigation
API > API/Runtime > API/Runtime/Core
Untyped map type for accessing TMap data, like FScriptArray for TArray. Must have the same memory representation as a TMap.
| Name | TScriptMap |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Map.h |
| Include Path | #include "Containers/Map.h" |
Syntax
template<typename AllocatorType, typename InDerivedType>
class TScriptMap
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Containers/Map.h | |||
TScriptMap () |
Containers/Map.h | ||
TScriptMap
(
const TScriptMap& |
These should really be private, because they shouldn't be called, but there's a bunch of code that needs to be fixed first. | Containers/Map.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DerivedType | std::conditional_t< std::is_void_v< InDerivedType >, TScriptMap, InDerivedType > | Containers/Map.h | |
| IntrusiveUnsetOptionalStateType | TScriptMap | Containers/Map.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bHasIntrusiveUnsetOptionalState | bool | Start - intrusive TOptional |
Containers/Map.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Pairs | TScriptSet< AllocatorType > | Containers/Map.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const void* Key, |
Adds the (key, value) pair to the map | Containers/Map.h | |
int32 AddUninitialized
(
const FScriptMapLayout& Layout |
Adds an uninitialized object to the map. | Containers/Map.h | |
void CommitAllUninitialized
(
const FScriptMapLayout& Layout, |
Containers/Map.h | ||
void CommitLastUninitialized
(
const FScriptMapLayout& Layout, |
Containers/Map.h | ||
void Empty
(
int32 Slack, |
Containers/Map.h | ||
void * FindOrAdd
(
const void* Key, |
Constructs a new key-value pair if key didn't exist | Containers/Map.h | |
int32 FindPairIndex
(
const void* Key, |
Finds the associated key, value from hash of Key, rather than linearly searching | Containers/Map.h | |
uint8 * FindValue
(
const void* Key, |
Finds the associated value from hash of Key, rather than linearly searching | Containers/Map.h | |
const void * GetData
(
int32 Index, |
Containers/Map.h | ||
void * GetData
(
int32 Index, |
Containers/Map.h | ||
int32 GetMaxIndex() |
Containers/Map.h | ||
bool IsEmpty() |
Containers/Map.h | ||
bool IsValidIndex
(
int32 Index |
End - intrusive TOptional |
Containers/Map.h | |
int32 Max() |
Containers/Map.h | ||
void MoveAssign
(
DerivedType& Other, |
Containers/Map.h | ||
int32 Num() |
Containers/Map.h | ||
int32 NumUnchecked() |
Containers/Map.h | ||
void Rehash
(
const FScriptMapLayout& Layout, |
Containers/Map.h | ||
void RemoveAt
(
int32 Index, |
Containers/Map.h | ||
void RemoveAtUninitialized
(
const FScriptMapLayout& Layout, |
Containers/Map.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void CheckConstraints() |
This function isn't intended to be called, just to be compiled to validate the correctness of the type. | Containers/Map.h | |
static FScriptMapLayout GetScriptLayout
(
int32 KeySize, |
Containers/Map.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void operator=
(
const TScriptMap& |
Containers/Map.h | ||
bool operator==
(
FIntrusiveUnsetOptionalState Tag |
Containers/Map.h |