Dune::IntersectionIteratorGetter< Grid, Tag > Struct Template Reference
#include <intersectiongetter.hh>
Detailed Description
template<typename Grid, typename Tag>
struct Dune::IntersectionIteratorGetter< Grid, Tag >
Utility class to get the Intersection Iterator the right way.
Depending on whether one works on the leaf or a level of a grid, the methods ilevel{begin,end}() or ileaf{begin,end}()have to called to get get the correct iterator. This can be done in a generic way using the class.
The template parameters are:
GridThe grid implementation.
TagThe tag identifying whether we work on the leaf or a level of the grid. Either LeafTag, or LevelTag.
Public Types | |
typedef Tag | TypeTag |
Tag telling whether we work on the level or leaf. | |
typedef Grid::template Codim < 0 >::IntersectionIterator | IntersectionIterator |
The type of the Intersection Iterator. | |
Static Public Member Functions | |
template<typename T> | |
static IntersectionIterator | begin (T &iter) |
Get the correct begin Iterator depending on the TypeTag. | |
template<typename T> | |
static IntersectionIterator | end (T &iter) |
Get the correct end Iterator depending on the TypeTag. |
Member Typedef Documentation
template<typename Grid, typename Tag>
typedef Tag Dune::IntersectionIteratorGetter< Grid, Tag >::TypeTag |
Member Function Documentation
template<typename Grid, typename Tag>
template<typename T>
static IntersectionIterator Dune::IntersectionIteratorGetter< Grid, Tag >::begin | ( | T & | iter | ) | [inline, static] |
Get the correct begin Iterator depending on the TypeTag.
- Parameters:
-
iter the entity or Codim<0>::Iterator
template<typename Grid, typename Tag>
template<typename T>
static IntersectionIterator Dune::IntersectionIteratorGetter< Grid, Tag >::end | ( | T & | iter | ) | [inline, static] |
Get the correct end Iterator depending on the TypeTag.
- Parameters:
-
iter the entity or Codim<0>::Iterator
The documentation for this struct was generated from the following file: