#include <hashmap.h>
Special case of general and entry allocator being different (usually for performance critical fixed/limited size maps).
Public Types | |
| using | EntryAllocator = BLOCK_ALLOCATOR |
Public Member Functions | |
| HashMapAllocator ()=default | |
| template<typename A > | |
| HashMapAllocator (A &&arg) | |
| void * | AllocBuckets (Int size, MAXON_SOURCE_LOCATION_DECLARATION) |
| void | FreeBuckets (void *buckets) |
| template<typename ENTRY > | |
| void * | AllocEntry (Int size) |
| void | FreeEntry (const void *entry) |
| template<typename ENTRY > | |
| Bool | DeleteAllEntries () |
| const EntryAllocator & | GetEntryAllocator () const |
| EntryAllocator & | GetEntryAllocator () |
Static Public Member Functions | |
| static constexpr Bool | SupportsEntryIterator () |
Static Public Attributes | |
| static constexpr Bool | HAS_ARRAY_ALLOCATOR |
Private Attributes | |
| GENERAL_ALLOCATOR | _bucketAllocator |
| BLOCK_ALLOCATOR | _entryAllocator |
| using EntryAllocator = BLOCK_ALLOCATOR |
|
default |
|
explicit |
| void* AllocBuckets | ( | Int | size, |
| MAXON_SOURCE_LOCATION_DECLARATION | |||
| ) |
| void FreeBuckets | ( | void * | buckets | ) |
| void* AllocEntry | ( | Int | size | ) |
| void FreeEntry | ( | const void * | entry | ) |
| Bool DeleteAllEntries | ( | ) |
|
staticconstexpr |
| const EntryAllocator& GetEntryAllocator | ( | ) | const |
| EntryAllocator& GetEntryAllocator | ( | ) |
|
private |
|
private |
|
staticconstexpr |