Manage memory organized into block lists (allocator) More...
#include <block-allocator.hpp>
Public Member Functions | |
BlockAllocator (A &a) | |
Initialize. More... | |
~BlockAllocator (void) | |
Free all allocated blocks. More... | |
A & | allocator (void) |
Return allocator used. More... | |
T * | operator() (void) |
Return memory of size required by T. More... | |
size_t | size (void) const |
Return size of memory required by allocator. More... | |
Manage memory organized into block lists (allocator)
The allocation policy is to free all memory allocated when the block allocator is deleted.
Definition at line 49 of file block-allocator.hpp.
|
inline |
Initialize.
Definition at line 102 of file block-allocator.hpp.
|
inline |
Free all allocated blocks.
Definition at line 111 of file block-allocator.hpp.
|
inline |
Return allocator used.
Definition at line 120 of file block-allocator.hpp.
|
inline |
Return memory of size required by T.
Definition at line 126 of file block-allocator.hpp.
|
inline |
Return size of memory required by allocator.
Definition at line 145 of file block-allocator.hpp.