STAMINA/STORM 0.1
Infinite state-space truncator which generates a probability within a window
Public Member Functions | List of all members
stamina::util::StateMemoryPool< T > Class Template Reference

Public Member Functions

 StateMemoryPool (uint8_t blockSize=13)
 
 ~StateMemoryPool ()
 
T * allocate (uint32_t number=1)
 
void freeAll ()
 

Constructor & Destructor Documentation

◆ StateMemoryPool()

template<typename T >
stamina::util::StateMemoryPool< T >::StateMemoryPool ( uint8_t  blockSize = 13)

Constructor. Creates the first block of the pool

Parameters
blockSizeExponent on 2 of

◆ ~StateMemoryPool()

template<typename T >
stamina::util::StateMemoryPool< T >::~StateMemoryPool

Destructor. Frees all of the memory allocated by the memory pool

Member Function Documentation

◆ allocate()

template<typename T >
T * stamina::util::StateMemoryPool< T >::allocate ( uint32_t  number = 1)

Allocates a T value and returns a pointer to it

◆ freeAll()

template<typename T >
void stamina::util::StateMemoryPool< T >::freeAll

Clears all memory


The documentation for this class was generated from the following files: