Generated on Mon May 10 06:47:03 2010 for Gecode by doxygen 1.6.3

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

Manage memory organized into block lists (allocator). More...

#include <block-allocator.hpp>

List of all members.

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.

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.hpp.


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.hpp.

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.hpp.


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.hpp.

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.hpp.


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