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

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

Inherited by Gecode::MiniModel::PosSet, and Gecode::MiniModel::StateNode.

List of all members.


Detailed Description

template<class T, int blocksize = 512>
class Gecode::Support::BlockClient< T, blocksize >

Client for block allocator of type T.

Provides memory management for objects of type T.

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


Static Public Member Functions

static void * operator new (size_t s, BlockAllocator< T, blocksize > &ba)
 Allocate memory from block allocator ba.
static void operator delete (void *, BlockAllocator< T, blocksize > &ba)
 Noop (memory freed only when block allocator deleted).
static void operator delete (void *)
 Noop (memory freed only when block allocator deleted).

Member Function Documentation

template<class T, int blocksize>
void * Gecode::Support::BlockClient< T, blocksize >::operator new ( size_t  s,
BlockAllocator< T, blocksize > &  ba 
) [inline, static]

Allocate memory from block allocator ba.

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

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

Noop (memory freed only when block allocator deleted).

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

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

Noop (memory freed only when block allocator deleted).

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


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