Navigation
API > API/Runtime > API/Runtime/Chaos
Provides a TMap like API but backed by a dense array. The keys provided must implement GetUniqueIdx.
| Name | TArrayAsMap |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ISpatialAcceleration.h |
| Include Path | #include "Chaos/ISpatialAcceleration.h" |
Syntax
template<typename TKey, typename TValue>
class TArrayAsMap
Structs
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | TValue | Chaos/ISpatialAcceleration.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Entries | TArray< FEntry > | Chaos/ISpatialAcceleration.h | ||
| KeysToSerializeOut | TArray< TKey > | The indices are generated at runtime, so there's no way to serialize them directly Because of that we serialize the actual key which we can find, and then at runtime we use its transient index | Chaos/ISpatialAcceleration.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const TKey& Key, |
Chaos/ISpatialAcceleration.h | ||
TValue & Add
(
const TKey& Key |
Chaos/ISpatialAcceleration.h | ||
void AddFrom
(
const TArrayAsMap< TKey, TValue >& Source, |
Chaos/ISpatialAcceleration.h | ||
int32 Capacity() |
Chaos/ISpatialAcceleration.h | ||
void Empty() |
Chaos/ISpatialAcceleration.h | ||
const TValue * Find
(
const TKey& Key |
Chaos/ISpatialAcceleration.h | ||
TValue * Find
(
const TKey& Key |
Chaos/ISpatialAcceleration.h | ||
TValue & FindChecked
(
const TKey& Key |
Chaos/ISpatialAcceleration.h | ||
const TValue & FindChecked
(
const TKey& Key |
Chaos/ISpatialAcceleration.h | ||
TValue & FindOrAdd
(
const TKey& Key |
Chaos/ISpatialAcceleration.h | ||
SIZE_T GetAllocatedSize() |
Chaos/ISpatialAcceleration.h | ||
int32 Num() |
Chaos/ISpatialAcceleration.h | ||
void Remove
(
const TKey& Key |
Chaos/ISpatialAcceleration.h | ||
void RemoveChecked
(
const TKey& Key |
Chaos/ISpatialAcceleration.h | ||
void Reserve
(
int32 Size |
Chaos/ISpatialAcceleration.h | ||
void Reset() |
Chaos/ISpatialAcceleration.h | ||
void Serialize
(
FChaosArchive& Ar |
Chaos/ISpatialAcceleration.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint32 GetTypeSize() |
Chaos/ISpatialAcceleration.h |