Pool for blockwise memory allocation. More...
#include <pool.hh>


Classes | |
| union | link |
Public Member Functions | |
| T * | alloc () |
| Returns a pointer to a available location. | |
| float | memory () const |
| Pool (unsigned sz) | |
| Constructor. | |
| ~Pool () | |
Private Member Functions | |
| void | operator= (Pool &) |
| Pool (Pool &) | |
Private Attributes | |
| void * | blk |
| const unsigned | blkSz |
| unsigned | free |
| Stores the number of free entries. | |
| T * | next |
Pool for blockwise memory allocation.
A chunk of memory is allocated and returned piecewise. If all space is used up, new space is allocated.
| concepts::Pool< T >::Pool | ( | Pool< T > & | ) | [private] |
| concepts::Pool< T >::Pool | ( | unsigned | sz | ) | [inline] |
| concepts::Pool< T >::~Pool | ( | ) |
| T * concepts::Pool< T >::alloc | ( | ) |
| float concepts::Pool< T >::memory | ( | ) | const |
| void concepts::Pool< T >::operator= | ( | Pool< T > & | ) | [private] |
void* concepts::Pool< T >::blk [private] |
const unsigned concepts::Pool< T >::blkSz [private] |
unsigned concepts::Pool< T >::free [private] |
T* concepts::Pool< T >::next [private] |