TArrayAsMap

Provides a [TMap](API\Runtime\Core\Containers\TMap) like API but backed by a dense array. The keys provided must implement GetUniqueIdx.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ISpatialAcceleration.h

Include

#include "Chaos/ISpatialAcceleration.h"

Syntax

template<typename TKey, typename TValue>
class TArrayAsMap

Remarks

Provides a TMap like API but backed by a dense array. The keys provided must implement GetUniqueIdx.

Functions

Name Description

Public function

TValue &

 

Add

(
    const TKey& Key
)

Public function

void

 

Add

(
    const TKey& Key,
    const TValue& Value
)

Public function

void

 

Empty()

Public function

TValue *

 

Find

(
    const TKey& Key
)

Public function

TValue &

 

FindChecked

(
    const TKey& Key
)

Public function

TValue &

 

FindOrAdd

(
    const TKey& Key
)

Public function

void

 

Remove

(
    const TKey& Key
)

Public function

void

 

RemoveChecked

(
    const TKey& Key
)

Public function

void

 

Reset()

Public function

void

 

Serialize

(
    FChaosArchive& Ar
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss