FScriptMap

Syntax

class FScriptMap

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

FScriptMap()

Public function

FScriptMap

(
    const FScriptMap &
)

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 < bool(const void*...,
    TFunctionRef < void(void*)> Key...,
    TFunctionRef < void(void*)> Val...,
    TFunctionRef < void(void*)> Val...,
    TFunctionRef < void(void*)> Des...,
    TFunctionRef < void(void*)> Des...
)

Adds the (key, value) pair to the map, returning true if the element was added, or false if the element was already present and has been overwritten

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

int32

 

FindPairIndex

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

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 < bool(const void*...
)

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

Public function

void *

 

GetData

(
    int32 Index,
    const FScriptMapLayout & Layout
)

Public function Const

const 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

 

IsValidIndex

(
    int32 Index
)

Public function Const

int32

 

Num()

Public function

void

 

Rehash

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

Public function

void

 

RemoveAt

(
    int32 Index,
    const FScriptMapLayout & Layout
)

Operators

Name Description

Public function

void

 

operator=

(
    const FScriptMap &
)

References

Module

Core

Header

Runtime/Core/Public/Containers/Map.h