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

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

Public Member Functions

 IndexStack ()
 Constructor, create new IndexStack. More...
 
 ~IndexStack ()
 Destructor, deleting all stacks. More...
 
void checkAndSetMax (T index)
 set index as maxIndex if index is bigger than maxIndex More...
 
void setMaxIndex (T index)
 set index as maxIndex More...
 
int getMaxIndex () const
 return maxIndex which is also the More...
 
int size () const
 return maxIndex which is also the More...
 
getIndex ()
 restore index from stack or create new index More...
 
void freeIndex (T index)
 store index on stack More...
 
void test ()
 test stack functionality More...
 
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

◆ IndexStack()

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

Constructor, create new IndexStack.

◆ ~IndexStack()

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

Destructor, deleting all stacks.

Member Function Documentation

◆ backupIndexSet()

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

◆ checkAndSetMax()

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

set index as maxIndex if index is bigger than maxIndex

◆ freeIndex()

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

store index on stack

◆ getIndex()

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

restore index from stack or create new index

◆ getMaxIndex()

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

return maxIndex which is also the

◆ restoreIndexSet()

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

◆ setMaxIndex()

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

set index as maxIndex

◆ size()

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

return maxIndex which is also the

◆ test()

template<class T , int length>
void Dune::IndexStack< T, length >::test
inline

test stack functionality


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