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
|
Initialize.
Definition at line 90 of file block-allocator.hh. |
|
Free all allocated blocks.
Definition at line 99 of file block-allocator.hh. |
Member Function Documentation
|
Return memory of size required by T.
Definition at line 108 of file block-allocator.hh. |
|
Return size of memory required by allocator.
Definition at line 127 of file block-allocator.hh. |
The documentation for this class was generated from the following file:
- gecode/support/block-allocator.hh (Revision: 3188)