Class Specialization
Single Pool Allocator
Allocator that pools memory blocks of specific size.
Single Pool Allocator
Allocator< SinglePool<SIZE, ParentAllocator> >
Include Headers
Size of memory blocks that are pooled.
An unsigned integer with SIZE >= sizeof(void *).
An allocator that is by the pool allocator used to allocate memory.
Note: The single pool allocator only supports clear if this function is also implemented for ParentAllocator.
A pool allocator allocates several memory blocks at once. Freed blocks are not immediately deallocated but recycled in subsequential allocations. This way, the number of calls to the heap manager is reduced, and that speeds up memory management.
The single pool allocator only pools memory blocks of size SIZE. Blocks of other sizes are allocated and deallocated using an allocator of type ParentAllocator.
Using the single pool allocator for blocksizes larger than some KB is not advised.
Specialization of
allocateAllocates memory from heap. (Allocator)
clearDeallocates all memory blocks. (Allocator)
deallocateDeallocates memory. (Allocator)
Example Programs
See Also
SeqAn - Sequence Analysis Library -

Page built @2013/07/11 09:12:20