Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/TSpatialHashGridBase
This hashmap is designed to be fast at just what we need to do to build all at once in exactly the order it is done in Initialize and then query. Based off of Core/HashTable.h
| Name | FHashMap |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/HierarchicalSpatialHash.h |
| Include Path | #include "Chaos/HierarchicalSpatialHash.h" |
Syntax
class FHashMap
Structs
| Name | Remarks |
|---|---|
| FElement |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConcurrentElementAddIdx | std::atomic< int32 > | Chaos/HierarchicalSpatialHash.h | ||
| Elements | TArray< FElement > | Chaos/HierarchicalSpatialHash.h | ||
| Hash | TArray< std::atomic< int32 > > | Chaos/HierarchicalSpatialHash.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 ConcurrentAddElement
(
const TVec3< int32 >& CellIdx, |
Chaos/HierarchicalSpatialHash.h | ||
void ConcurrentAddElementRange
(
const TVec3< int32 >& MinCellIdx, |
Chaos/HierarchicalSpatialHash.h | ||
int32 First
(
const FHashIndex& Key |
Chaos/HierarchicalSpatialHash.h | ||
const FHashIndex & GetKey
(
int32 Index |
Chaos/HierarchicalSpatialHash.h | ||
const FPayloadAndBounds & GetValue
(
int32 Index |
Chaos/HierarchicalSpatialHash.h | ||
bool KeyMatches
(
int32 Index, |
Chaos/HierarchicalSpatialHash.h | ||
int32 Next
(
int32 Index |
Chaos/HierarchicalSpatialHash.h | ||
void PreallocateElementsForConcurrentAdd
(
int32 MaxNumElements, |
Chaos/HierarchicalSpatialHash.h | ||
void Reset() |
Chaos/HierarchicalSpatialHash.h | ||
void ShrinkElementsAfterConcurrentAdd() |
Chaos/HierarchicalSpatialHash.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool IsValid
(
int32 Index |
Chaos/HierarchicalSpatialHash.h |