dune-grid
2.1.1
|
#include <dune/grid/common/indexstack.hh>
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 | |
T | 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) |
IndexStack providing indices via getIndex and freeIndex indices that are freed, are put on a stack and get
Dune::IndexStack< T, length >::IndexStack | ( | ) | [inline] |
Constructor, create new IndexStack.
Dune::IndexStack< T, length >::~IndexStack | ( | ) | [inline] |
Destructor, deleting all stacks.
void Dune::IndexStack< T, length >::backupIndexSet | ( | std::ostream & | os | ) | [inline] |
void Dune::IndexStack< T, length >::checkAndSetMax | ( | T | index | ) | [inline] |
set index as maxIndex if index is bigger than maxIndex
void Dune::IndexStack< T, length >::freeIndex | ( | T | index | ) | [inline] |
store index on stack
T Dune::IndexStack< T, length >::getIndex | ( | ) | [inline] |
restore index from stack or create new index
Referenced by Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::InitEntityNumber::operator()().
int Dune::IndexStack< T, length >::getMaxIndex | ( | ) | const [inline] |
return maxIndex which is also the
Referenced by Dune::IndexStack< T, length >::size().
void Dune::IndexStack< T, length >::restoreIndexSet | ( | std::istream & | is | ) | [inline] |
void Dune::IndexStack< T, length >::setMaxIndex | ( | T | index | ) | [inline] |
set index as maxIndex
Referenced by Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::CreateEntityNumbers< codim >::apply().
int Dune::IndexStack< T, length >::size | ( | ) | const [inline] |
return maxIndex which is also the
References Dune::IndexStack< T, length >::getMaxIndex().
Referenced by Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::size().
void Dune::IndexStack< T, length >::test | ( | ) | [inline] |
test stack funtcionality