Dune::IndexStack< T, length > Class Template Reference

#include <indexstack.hh>

List of all members.


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

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

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

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].