ElementPool< T, INDEX > Class Template Reference

#include <bursttriemap.h>

Public Member Functions

 ElementPool ()
 
 ElementPool (ElementPool &&src)
 
MAXON_WARN_UNUSED void * Alloc (INDEX &index)
 
Result< void > Free (INDEX idx)
 
T * GetElement (INDEX i)
 
const T * GetElement (INDEX i) const
 

Private Attributes

BlockArray< AlignedStorage< SIZEOF(T), alignof(T)>, 5, BLOCKARRAYFLAGS::NOINSERTERASE_elements
 
BaseArray< INDEX > _freeElements
 

Constructor & Destructor Documentation

◆ ElementPool() [1/2]

◆ ElementPool() [2/2]

ElementPool ( ElementPool< T, INDEX > &&  src)

Member Function Documentation

◆ Alloc()

MAXON_WARN_UNUSED void* Alloc ( INDEX &  index)

◆ Free()

Result<void> Free ( INDEX  idx)

◆ GetElement() [1/2]

T* GetElement ( INDEX  i)

◆ GetElement() [2/2]

const T* GetElement ( INDEX  i) const

Member Data Documentation

◆ _elements

BlockArray<AlignedStorage<SIZEOF(T), alignof(T)>, 5, BLOCKARRAYFLAGS::NOINSERTERASE> _elements
private

◆ _freeElements

BaseArray<INDEX> _freeElements
private