Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CommonPoolOfBlocks< value_type, elementsPerBlock, noOfBlocks > Class Template Reference

A CommonPoolOfBlocks manages blocks which can contain several elements of a specified value_type. More...

#include <sparingStack.h>

List of all members.

Public Methods

 CommonPoolOfBlocks ()
 The default constructor.

 ~CommonPoolOfBlocks ()
 The destructor.

Blockrequest ()
 Returns a pointer to a free block.

void release (Block *block)
 Adds a block which is no longer used to the free-list.

void increaseReserveMemory (int newMemory)
 Informs that more reserve memory is available.


Detailed Description

template<typename value_type, int elementsPerBlock, int noOfBlocks>
class CommonPoolOfBlocks< value_type, elementsPerBlock, noOfBlocks >

A CommonPoolOfBlocks manages blocks which can contain several elements of a specified value_type.

It can be used by several SparingStacks.

Definition at line 21 of file sparingStack.h.


Constructor & Destructor Documentation

template<typename value_type, int elementsPerBlock, int noOfBlocks>
CommonPoolOfBlocks< value_type, elementsPerBlock, noOfBlocks >::~CommonPoolOfBlocks   [inline]
 

The destructor.

Blocks which have been created additionally are deleted.

Definition at line 104 of file sparingStack.h.


Member Function Documentation

template<typename value_type, int elementsPerBlock, int noOfBlocks>
void CommonPoolOfBlocks< value_type, elementsPerBlock, noOfBlocks >::increaseReserveMemory int    newMemory [inline]
 

Informs that more reserve memory is available.

Parameters:
newMemory  the space in bytes which can be used by the request method if more blocks are required.

Definition at line 164 of file sparingStack.h.

Referenced by Buckets< nodesPerBucket >::reduceNodes().


The documentation for this class was generated from the following file:
Generated on Thu Aug 14 15:13:27 2003 for External Memory Minimum Spanning Trees by doxygen1.2.17