Gecode::Support::BlockAllocator< T > Class Template Reference
[Support algorithms and datastructures]
#include <block-allocator.hh>
Detailed Description
template<class T>
class Gecode::Support::BlockAllocator< T >
Manage memory organized into block lists (allocator).
The allocation policy is to free all memory allocated when the block allocator is deleted.
Requires
#include "gecode/support/block-allocator.hh"
Definition at line 39 of file block-allocator.hh.
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>
Gecode::Support::BlockAllocator< T >::BlockAllocator | ( | void | ) | [inline] |
template<class T>
Gecode::Support::BlockAllocator< T >::~BlockAllocator | ( | void | ) | [inline] |
Member Function Documentation
template<class T>
T * Gecode::Support::BlockAllocator< T >::operator() | ( | void | ) | [inline] |
template<class T>
size_t Gecode::Support::BlockAllocator< T >::size | ( | void | ) | const [inline] |
The documentation for this class was generated from the following file:
- gecode/support/block-allocator.hh (Revision: 3188)