HashMapAllocator< Entry, GENERAL_ALLOCATOR, BLOCK_ALLOCATOR > Class Template Reference

#include <hashmap.h>

Detailed Description

template<typename Entry, typename GENERAL_ALLOCATOR, typename BLOCK_ALLOCATOR>
class maxon::HashMapAllocator< Entry, GENERAL_ALLOCATOR, BLOCK_ALLOCATOR >

Special case of general and entry allocator being different (usually for performance critical fixed/limited size maps).

Public Member Functions

void * AllocBuckets (Int size, MAXON_SOURCE_LOCATION_DECLARATION)
 
void FreeBuckets (void *buckets)
 
Entry * AllocEntry (Int size=SIZEOF(Entry))
 
void FreeEntry (const Entry *entry)
 
Bool DeleteAllEntries ()
 

Private Attributes

GENERAL_ALLOCATOR _bucketAllocator
 
BLOCK_ALLOCATOR _entryAllocator
 

Member Function Documentation

◆ AllocBuckets()

void* AllocBuckets ( Int  size,
MAXON_SOURCE_LOCATION_DECLARATION   
)

◆ FreeBuckets()

void FreeBuckets ( void *  buckets)

◆ AllocEntry()

Entry* AllocEntry ( Int  size = SIZEOF(Entry))

◆ FreeEntry()

void FreeEntry ( const Entry *  entry)

◆ DeleteAllEntries()

Bool DeleteAllEntries ( )

Member Data Documentation

◆ _bucketAllocator

GENERAL_ALLOCATOR _bucketAllocator
private

◆ _entryAllocator

BLOCK_ALLOCATOR _entryAllocator
private