Department of Scientific Computing   
Institute for Numerical Simulation   
University of Bonn   
Documentation
Download
Programming References
Bug Reports / Suggestions
FAQ
Authors
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

AdaptiveLevels Struct Reference

AdaptiveLevels handles the indices {(l,t)} associated to a one-dimensional line out of the multivariate index set handled by AdaptiveGrid. For the indices of each level l we use a binary tree structure (STL: map<int,long,intlt>) with an int-value for the translation index t (the key) and a long-value for the index (the value) which points to the entry in the data vector of AdaptiveData. It is this value which is needed for the access to the actual numerical data! AdaptiveLevels is essentially an array (l=Level0...LMAX) of such binary trees.
We used binary trees here, since we need a fast in order iteration over all entries of one level (read/write of numerical data for the copies from/to AdaptiveB) and a fast insert/removal of indices. More...

#include <AdaptiveLevels.hpp>

List of all members.

Public Types

typedef map<int,long,intlt> AdaptiveL
 data structure for indices of just one level.


Public Methods

 AdaptiveLevels ()
 default constructor.

void Init ()
 Init for BlockAllocator, called in BlockAllocator<AdaptiveLevels>::NewItem.

void Clear ()
 Clear for BlockAllocator, called in the DeleteItem of BlockAllocator<AdaptiveLevels>.

void Delete ()
 Delete for BlockAllocator, called in the destructor BlockAllocator<AdaptiveLevels>.

size_t size ()
 return number of elements of all levels.

AdaptiveLoperator[] (const unsigned int t)
 access to the index for the numerical vectors via the translation index.


Public Attributes

AdaptiveLa [LMAX+1]
 level.


The documentation for this struct was generated from the following files:
Generated at Mon Aug 19 10:02:32 2002 for AWFD by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001