Generated on Mon Aug 25 11:35:54 2008 for Gecode by doxygen 1.5.6

Gecode::Support::BlockAllocator< T, blocksize > Class Template Reference
[Support algorithms and datastructures]

List of all members.


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]

Initialize.

Definition at line 98 of file block-allocator.icc.

template<class T, int blocksize>
Gecode::Support::BlockAllocator< T, blocksize >::~BlockAllocator ( void   )  [inline]

Free all allocated blocks.

Definition at line 107 of file block-allocator.icc.


Member Function Documentation

template<class T, int blocksize>
T * Gecode::Support::BlockAllocator< T, blocksize >::operator() ( void   )  [inline]

Return memory of size required by T.

Definition at line 116 of file block-allocator.icc.

template<class T, int blocksize>
size_t Gecode::Support::BlockAllocator< T, blocksize >::size ( void   )  const [inline]

Return size of memory required by allocator.

Definition at line 135 of file block-allocator.icc.


The documentation for this class was generated from the following file: