Generated on Wed Nov 1 15:05:25 2006 for Gecode by doxygen 1.4.5

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

#include <block-allocator.hh>

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.

Requires

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]
 

Initialize.

Definition at line 90 of file block-allocator.hh.

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

Free all allocated blocks.

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


Member Function Documentation

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

Return memory of size required by T.

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

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

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: