TScriptMap

Untyped map type for accessing [TMap](API\Runtime\Core\Containers\TMap) data, like [FScriptArray](API\Runtime\Core\Containers\FScriptArray) for [TArray](API\Runtime\Core\Containers\TArray).

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

TScriptMap

FScriptMap

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Map.h

Include

#include "Containers/Map.h"

Syntax

template<typename AllocatorType, typename InDerivedType>
class TScriptMap

Remarks

Untyped map type for accessing TMap data, like FScriptArray for TArray. Must have the same memory representation as a TMap.

Constructors

Name Description

Public function

TScriptMap()

Public function

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.

Functions

Name Description

Public function

void

 

Add

(
    const void* Key,
    const void* Value,
    const FScriptMapLayout& Layout,
    TFunctionRef< uint32...,
    TFunctionRef< bool*...,
    TFunctionRef< void*)> Key...,
    TFunctionRef< void*)> Val...,
    TFunctionRef< void*)> Val...,
    TFunctionRef< void*)> Des...,
    TFunctionRef< void*)> Des...
)

Adds the (key, value) pair to the map

Public function

int32

 

AddUninitialized

(
    const FScriptMapLayout& Layout
)

Adds an uninitialized object to the map.

Public function

void

 

Empty

(
    int32 Slack,
    const FScriptMapLayout& Layout
)

Public function

void *

 

FindOrAdd

(
    const void* Key,
    const FScriptMapLayout& Layout,
    TFunctionRef< uint32...,
    TFunctionRef< bool*...,
    TFunctionRef< void*, void...
)

Constructs a new key-value pair if key didn't exist

Public function

int32

 

FindPairIndex

(
    const void* Key,
    const FScriptMapLayout& MapLayout,
    TFunctionRef< uint32...,
    TFunctionRef< bool*...
)

Finds the associated key, value from hash of Key, rather than linearly searching

Public function

uint8 *

 

FindValue

(
    const void* Key,
    const FScriptMapLayout& MapLayout,
    TFunctionRef< uint32...,
    TFunctionRef< bool*...
)

Finds the associated value from hash of Key, rather than linearly searching

Public function Const

const void &...

 

GetData

(
    int32 Index,
    const FScriptMapLayout& Layout
)

Public function

void *

 

GetData

(
    int32 Index,
    const FScriptMapLayout& Layout
)

Public function Const

int32

 

GetMaxIndex()

Public function Static

FScriptMapLa...

 

GetScriptLayout

(
    int32 KeySize,
    int32 KeyAlignment,
    int32 ValueSize,
    int32 ValueAlignment
)

Public function Const

bool

 

IsEmpty()

Public function Const

bool

 

IsValidIndex

(
    int32 Index
)

Public function

void

 

MoveAssign

(
    DerivedType& Other,
    const FScriptMapLayout& Layout
)

Public function Const

int32

 

Num()

Public function

void

 

Rehash

(
    const FScriptMapLayout& Layout,
    TFunctionRef< uint32...
)

Public function

void

 

RemoveAt

(
    int32 Index,
    const FScriptMapLayout& Layout
)

Operators

Name Description

Public function

void

 

operator=

(
    const TScriptMap&
)

Typedefs

Name

Description

DerivedType