STAMINA/STORM 0.1
Infinite state-space truncator which generates a probability within a window
|
Public Member Functions | |
StateMemoryPool (uint8_t blockSize=13) | |
~StateMemoryPool () | |
T * | allocate (uint32_t number=1) |
void | freeAll () |
stamina::util::StateMemoryPool< T >::StateMemoryPool | ( | uint8_t | blockSize = 13 | ) |
Constructor. Creates the first block of the pool
blockSize | Exponent on 2 of |
stamina::util::StateMemoryPool< T >::~StateMemoryPool |
Destructor. Frees all of the memory allocated by the memory pool
T * stamina::util::StateMemoryPool< T >::allocate | ( | uint32_t | number = 1 | ) |
Allocates a T value and returns a pointer to it
void stamina::util::StateMemoryPool< T >::freeAll |
Clears all memory