List of all members
blaze::MemoryPool< Type, Blocksize >::Block Struct Reference

Memory block within the memory bool. More...

Public Member Functions

Memory management functions
void init ()
 Initialization of a memory block. More...
 
void free ()
 Release of the entire memory block. More...
 

Public Attributes

Member variables
FreeObjectrawMemory_
 Allocated memory pool of the block.
 

Detailed Description

template<typename Type, size_t Blocksize>
struct blaze::MemoryPool< Type, Blocksize >::Block

Memory block within the memory bool.

One memory block holds the memory for exactly Blocksize objects of type Type.

Member Function Documentation

template<typename Type , size_t Blocksize>
void blaze::MemoryPool< Type, Blocksize >::Block::free ( )
inline

Release of the entire memory block.

Returns
void
template<typename Type , size_t Blocksize>
void blaze::MemoryPool< Type, Blocksize >::Block::init ( )
inline

Initialization of a memory block.

Returns
void

The init function allocates a single memory block for Blocksize objects of type Type. This memory is already prepared for the inclusion in the free list of the memory pool.


The documentation for this struct was generated from the following file: