Generated on Mon May 5 05:54:18 2008 for Gecode by doxygen 1.5.5

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

List of all members.


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.

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>
Gecode::Support::BlockAllocator< T >::BlockAllocator ( void   )  [inline]

Initialize.

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

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

Free all allocated blocks.

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


Member Function Documentation

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

Return memory of size required by T.

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

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

Return size of memory required by allocator.

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


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