5#ifndef DUNE_IDENTITYGRID_INTERSECTIONITERATOR_HH
6#define DUNE_IDENTITYGRID_INTERSECTIONITERATOR_HH
27 template<
class Gr
idImp>
31 constexpr static int dim = GridImp::dimension;
33 constexpr static int dimworld = GridImp::dimensionworld;
36 typedef typename GridImp::ctype ctype;
38 typedef typename GridImp::HostGridType::LeafGridView::IntersectionIterator HostLeafIntersectionIterator;
48 const HostLeafIntersectionIterator& hostIterator)
49 : identityGrid_(identityGrid)
50 , hostIterator_(hostIterator)
55 return hostIterator_ == other.hostIterator_;
74 const GridImp* identityGrid_ =
nullptr;
75 HostLeafIntersectionIterator hostIterator_ = {};
82 template<
class Gr
idImp>
85 constexpr static int dim = GridImp::dimension;
87 constexpr static int dimworld = GridImp::dimensionworld;
90 typedef typename GridImp::ctype ctype;
92 typedef typename GridImp::HostGridType::LevelGridView::IntersectionIterator HostLevelIntersectionIterator;
102 const HostLevelIntersectionIterator& hostIterator)
103 : identityGrid_(identityGrid)
104 , hostIterator_(hostIterator)
109 return hostIterator_ == other.hostIterator_;
126 const GridImp* identityGrid_ =
nullptr;
127 HostLevelIntersectionIterator hostIterator_ = {};
The IdentityGridLeafIntersection and IdentityGridLevelIntersection classes.
The IdentityGridEntity class.
Include standard header files.
Definition: agrid.hh:60
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: common/intersection.hh:164
Definition: identitygridintersectioniterator.hh:84
bool equals(const IdentityGridLevelIntersectionIterator< GridImp > &other) const
equality
Definition: identitygridintersectioniterator.hh:108
void increment()
prefix increment
Definition: identitygridintersectioniterator.hh:114
IdentityGridLevelIntersectionIterator(const GridImp *identityGrid, const HostLevelIntersectionIterator &hostIterator)
Definition: identitygridintersectioniterator.hh:101
Dune::Intersection< const GridImp, Dune::IdentityGridLevelIntersection< GridImp > > Intersection
Definition: identitygridintersectioniterator.hh:96
Intersection dereference() const
dereferencing
Definition: identitygridintersectioniterator.hh:119
IdentityGridLevelIntersectionIterator()
Definition: identitygridintersectioniterator.hh:98
Iterator over all element neighborsMesh entities of codimension 0 ("elements") allow to visit all nei...
Definition: identitygridintersectioniterator.hh:29
bool equals(const IdentityGridLeafIntersectionIterator &other) const
equality
Definition: identitygridintersectioniterator.hh:54
void increment()
prefix increment
Definition: identitygridintersectioniterator.hh:60
IdentityGridLeafIntersectionIterator(const GridImp *identityGrid, const HostLeafIntersectionIterator &hostIterator)
Definition: identitygridintersectioniterator.hh:47
Intersection dereference() const
dereferencing
Definition: identitygridintersectioniterator.hh:65
Dune::Intersection< const GridImp, Dune::IdentityGridLeafIntersection< GridImp > > Intersection
Definition: identitygridintersectioniterator.hh:42
IdentityGridLeafIntersectionIterator()
Definition: identitygridintersectioniterator.hh:44
An intersection with a leaf neighbor elementMesh entities of codimension 0 ("elements") allow to visi...
Definition: identitygridintersections.hh:33
Definition: identitygridintersections.hh:192