dune-mmesh 1.4.1-git
Loading...
Searching...
No Matches
Dune::MMeshLeafIntersectionIterator< GridImp > Class Template Reference

Iterator over all element neighborsMesh entities of codimension 0 ("elements") allow to visit all neighbors, where a neighbor is an entity of codimension 0 which has a common entity of codimension 1 These neighbors are accessed via a IntersectionIterator. This allows the implement non-matching meshes. The number of neighbors may be different from the number of an element! More...

#include <dune/mmesh/grid/intersectioniterator.hh>

Public Types

typedef Dune::Intersection< const GridImp, Dune::MMeshLeafIntersection< GridImp > > Intersection
 

Public Member Functions

 MMeshLeafIntersectionIterator ()
 default constructor
 
 MMeshLeafIntersectionIterator (const GridImp *mMesh, const HostGridEntity &hostEntity)
 constructor for (begin) iterator
 
 MMeshLeafIntersectionIterator (const GridImp *mMesh, const HostGridEntity &hostEntity, bool endDummy)
 constructor for end iterator
 
bool equals (const MMeshLeafIntersectionIterator &other) const
 returns if iterators reference same intersection
 
void increment ()
 prefix increment
 
Intersection dereference () const
 dereferencing
 

Detailed Description

template<class GridImp>
class Dune::MMeshLeafIntersectionIterator< GridImp >

Iterator over all element neighbors

Mesh entities of codimension 0 ("elements") allow to visit all neighbors, where a neighbor is an entity of codimension 0 which has a common entity of codimension 1 These neighbors are accessed via a IntersectionIterator. This allows the implement non-matching meshes. The number of neighbors may be different from the number of an element!

Member Typedef Documentation

◆ Intersection

template<class GridImp >
typedef Dune::Intersection<const GridImp, Dune::MMeshLeafIntersection<GridImp> > Dune::MMeshLeafIntersectionIterator< GridImp >::Intersection

Constructor & Destructor Documentation

◆ MMeshLeafIntersectionIterator() [1/3]

template<class GridImp >
Dune::MMeshLeafIntersectionIterator< GridImp >::MMeshLeafIntersectionIterator ( )
inline

default constructor

◆ MMeshLeafIntersectionIterator() [2/3]

template<class GridImp >
Dune::MMeshLeafIntersectionIterator< GridImp >::MMeshLeafIntersectionIterator ( const GridImp *  mMesh,
const HostGridEntity &  hostEntity 
)
inline

constructor for (begin) iterator

◆ MMeshLeafIntersectionIterator() [3/3]

template<class GridImp >
Dune::MMeshLeafIntersectionIterator< GridImp >::MMeshLeafIntersectionIterator ( const GridImp *  mMesh,
const HostGridEntity &  hostEntity,
bool  endDummy 
)
inline

constructor for end iterator

Member Function Documentation

◆ dereference()

template<class GridImp >
Intersection Dune::MMeshLeafIntersectionIterator< GridImp >::dereference ( ) const
inline

dereferencing

◆ equals()

template<class GridImp >
bool Dune::MMeshLeafIntersectionIterator< GridImp >::equals ( const MMeshLeafIntersectionIterator< GridImp > &  other) const
inline

returns if iterators reference same intersection

◆ increment()

template<class GridImp >
void Dune::MMeshLeafIntersectionIterator< GridImp >::increment ( )
inline

prefix increment


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