Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/HashTable.h |
| Include | #include "Containers/HashTable.h" |
Syntax
class FHashTable
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32 * | Hash | ||
| uint32 | HashMask | ||
| uint32 | HashSize | ||
| uint32 | IndexSize | ||
| uint32 * | NextIndex |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FHashTable
(
const FHashTable& Other |
|||
FHashTable
(
uint32 InHashSize, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FHashTable () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add
(
uint32 Key, |
||
| void | Add_Concurrent
(
uint32 Key, |
Safe for many threads to add concurrently. | |
| float | Average # of compares per search. | ||
| void | Clear () |
||
| void | Clear
(
uint32 InHashSize, |
||
| uint32 | First
(
uint32 Key |
Functions used to search. | |
| void | Free () |
||
| bool | IsValid
(
uint32 Index |
||
| uint32 | Next
(
uint32 Index |
Next in hash chain. | |
| void | Remove
(
uint32 Key, |
||
| void | Resize
(
uint32 NewIndexSize |
Constants
| Name | Description |
|---|---|
| EmptyHash | Avoids allocating hash until first add. |