ArrayBurstTriePool< NODE, BUCKET > Class Template Reference

#include <bursttriemap.h>

Public Types

using Index = Int
 

Public Member Functions

 ArrayBurstTriePool ()
 
 ArrayBurstTriePool (ArrayBurstTriePool &&src)
 
MAXON_WARN_UNUSED void * AllocNode (Index &index)
 
MAXON_WARN_UNUSED void * AllocBucket (Index &index)
 
void FreeNode (Index i)
 
void FreeBucket (Index i)
 
NODE * GetNode (Index i)
 
const NODE * GetNode (Index i) const
 
BUCKET * GetBucket (Index i)
 
const BUCKET * GetBucket (Index i) const
 

Static Public Member Functions

static Bool IsNode (Index i)
 

Private Attributes

ElementPool< NODE, Index_nodePool
 
ElementPool< BUCKET, Index_bucketPool
 

Member Typedef Documentation

◆ Index

using Index = Int

Constructor & Destructor Documentation

◆ ArrayBurstTriePool() [1/2]

◆ ArrayBurstTriePool() [2/2]

ArrayBurstTriePool ( ArrayBurstTriePool< NODE, BUCKET > &&  src)

Member Function Documentation

◆ AllocNode()

MAXON_WARN_UNUSED void* AllocNode ( Index index)

◆ AllocBucket()

MAXON_WARN_UNUSED void* AllocBucket ( Index index)

◆ FreeNode()

void FreeNode ( Index  i)

◆ FreeBucket()

void FreeBucket ( Index  i)

◆ IsNode()

static Bool IsNode ( Index  i)
static

◆ GetNode() [1/2]

NODE* GetNode ( Index  i)

◆ GetNode() [2/2]

const NODE* GetNode ( Index  i) const

◆ GetBucket() [1/2]

BUCKET* GetBucket ( Index  i)

◆ GetBucket() [2/2]

const BUCKET* GetBucket ( Index  i) const

Member Data Documentation

◆ _nodePool

ElementPool<NODE, Index> _nodePool
private

◆ _bucketPool

ElementPool<BUCKET, Index> _bucketPool
private