Gecode::Support::BlockAllocator< T, blocksize > Class Template Reference
[Support algorithms and datastructures]
Detailed Description
template<class T, int blocksize = 512>
class Gecode::Support::BlockAllocator< T, blocksize >
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.icc.
Public Member Functions | |
BlockAllocator (void) | |
Initialize. | |
~BlockAllocator (void) | |
Free all allocated blocks. | |
T * | operator() (void) |
Return memory of size required by T. | |
size_t | size (void) const |
Return size of memory required by allocator. |
Constructor & Destructor Documentation
template<class T, int blocksize>
Gecode::Support::BlockAllocator< T, blocksize >::BlockAllocator | ( | void | ) | [inline] |
template<class T, int blocksize>
Gecode::Support::BlockAllocator< T, blocksize >::~BlockAllocator | ( | void | ) | [inline] |
Member Function Documentation
template<class T, int blocksize>
T * Gecode::Support::BlockAllocator< T, blocksize >::operator() | ( | void | ) | [inline] |
template<class T, int blocksize>
size_t Gecode::Support::BlockAllocator< T, blocksize >::size | ( | void | ) | const [inline] |
The documentation for this class was generated from the following file:
- gecode/support/block-allocator.icc (Revision: 7337)