84 const unsigned char& numBlocks) {
96 for (_Chunks_::iterator chunkIter =
_chunks_.begin(); chunkIter !=
_chunks_.end();
98 chunkIter->_release_();
FixedAllocator(const std::size_t &blockSize, const unsigned char &numBlocks=UCHAR_MAX)
Constructor.
_Chunks_::iterator _deallocChunk_
Last Chunk used for a deallocation.
unsigned char _numBlocks_
The maximum number of blocks a chunk can allocate.
std::size_t _blockSize_
Size of a memory block allocated.
~FixedAllocator()
Destructor.
_Chunks_::iterator _allocChunk_
Last Chunk used for an allocation.
const size_t & objectSize()
Returns the size of block allocated by this FixedAllocator.
Headers of gum::FixedAllocator.
gum is the global namespace for all aGrUM entities
unsigned char * _pData_
Pointer to the managed memory itself.
void _release_()
Releases the allocated memory.