dune-grid  2.3beta2
Classes | Public Member Functions | List of all members
Dune::IndexStack< T, length > Class Template Reference

#include <dune/grid/albertagrid/indexstack.hh>

Classes

class  MyFiniteStack

Public Member Functions

 IndexStack ()
 Constructor, create new IndexStack.
 ~IndexStack ()
 Destructor, deleting all stacks.
void checkAndSetMax (T index)
 set index as maxIndex if index is bigger than maxIndex
void setMaxIndex (T index)
 set index as maxIndex
int getMaxIndex () const
 return maxIndex which is also the
int size () const
 return maxIndex which is also the
getIndex ()
 restore index from stack or create new index
void freeIndex (T index)
 store index on stack
void test ()
 test stack funtcionality
void backupIndexSet (std::ostream &os)
void restoreIndexSet (std::istream &is)

Detailed Description

template<class T, int length>
class Dune::IndexStack< T, length >

IndexStack providing indices via getIndex and freeIndex indices that are freed, are put on a stack and get

Constructor & Destructor Documentation

template<class T , int length>
Dune::IndexStack< T, length >::IndexStack ( )
inline

Constructor, create new IndexStack.

template<class T , int length>
Dune::IndexStack< T, length >::~IndexStack ( )
inline

Destructor, deleting all stacks.

Member Function Documentation

template<class T , int length>
void Dune::IndexStack< T, length >::backupIndexSet ( std::ostream &  os)
inline
template<class T, int length>
void Dune::IndexStack< T, length >::checkAndSetMax ( index)
inline

set index as maxIndex if index is bigger than maxIndex

template<class T , int length>
void Dune::IndexStack< T, length >::freeIndex ( index)
inline

store index on stack

template<class T , int length>
T Dune::IndexStack< T, length >::getIndex ( )
inline

restore index from stack or create new index

Referenced by Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::InitEntityNumber::operator()().

template<class T, int length>
int Dune::IndexStack< T, length >::getMaxIndex ( ) const
inline

return maxIndex which is also the

Referenced by Dune::IndexStack< T, length >::size().

template<class T , int length>
void Dune::IndexStack< T, length >::restoreIndexSet ( std::istream &  is)
inline
template<class T, int length>
void Dune::IndexStack< T, length >::setMaxIndex ( index)
inline
template<class T, int length>
int Dune::IndexStack< T, length >::size ( ) const
inline
template<class T , int length>
void Dune::IndexStack< T, length >::test ( )
inline

test stack funtcionality


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