ElementPool< T, INDEX > Class Template Reference Data Structures

#include <bursttriemap.h>

公共成员函数

  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

构造函数 & 析构函数文档编制

◆  ElementPool() [1/2]

ElementPool ( )

◆  ElementPool() [2/2]

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

成员函数文档编制

◆  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