5 #ifndef DUNE_GRID_COMMON_INTERSECTIONITERATOR_HH 6 #define DUNE_GRID_COMMON_INTERSECTIONITERATOR_HH 8 #include <dune/common/iteratorfacades.hh> 9 #include <dune/common/proxymemberaccess.hh> 81 template<
class Gr
idImp,
class IntersectionIteratorImp,
class IntersectionImp >
139 typename std::conditional<
140 std::is_lvalue_reference<
148 return this->realIterator.dereference();
152 decltype(handle_proxy_member_access(
realIterator.dereference()))
155 return handle_proxy_member_access(
realIterator.dereference());
176 return rhs.equals(*
this);
186 return ! rhs.equals(*
this);
193 this->realIterator.increment();
201 this->realIterator.increment();
218 return this->realIterator.equals(rhs.realIterator);
234 template<
class Gr
idImp,
class IntersectionIteratorImp,
class IntersectionImp >
248 #endif // DUNE_GRID_COMMON_INTERSECTIONITERATOR_HH Intersection operator*() const
Dereferencing operator.
concept IntersectionIterator
Model of an intersection iterator.
Definition: concepts/intersectioniterator.hh:21
value_type & reference
Definition: common/intersectioniterator.hh:240
Implementation & impl()
access to the underlying implementation
Definition: common/intersectioniterator.hh:97
const Implementation & impl() const
access to the underlying implementation
Definition: common/intersectioniterator.hh:104
value_type * pointer
Definition: common/intersectioniterator.hh:239
bool operator==(const IntersectionIterator &rhs) const
Checks for equality. Only Iterators pointing to the same intersection from the same Entity are equal...
Definition: common/intersectioniterator.hh:174
bool equals(const IntersectionIterator &rhs) const
forward equality check to realIterator
Definition: common/intersectioniterator.hh:216
Dune::Intersection< GridImp, IntersectionImp > Intersection
Type of Intersection this IntersectionIterator points to.
Definition: common/intersectioniterator.hh:111
IntersectionIterator()
Default constructor.
Definition: common/intersectioniterator.hh:206
Include standard header files.
Definition: agrid.hh:59
Implementation realIterator
Definition: common/intersectioniterator.hh:107
IntersectionIterator operator++(int)
Postincrement operator. Proceed to next intersection.
Definition: common/intersectioniterator.hh:198
Mesh entities of codimension 0 ("elements") allow to visit all intersections with "neighboring" eleme...
Definition: common/grid.hh:347
IntersectionIteratorImp Implementation
type of underlying implementation
Definition: common/intersectioniterator.hh:90
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: albertagrid/dgfparser.hh:28
ptrdiff_t difference_type
Definition: common/intersectioniterator.hh:237
bool operator!=(const IntersectionIterator &rhs) const
Checks for inequality. Only Iterators pointing to the same intersection from the same Entity are equa...
Definition: common/intersectioniterator.hh:184
IntersectionIterator & operator++()
Preincrement operator. Proceed to next intersection.
Definition: common/intersectioniterator.hh:191
forward_iterator_tag iterator_category
Definition: common/intersectioniterator.hh:241
const Intersection * operator->() const
Pointer operator.
IntersectionIterator(const Implementation &impl)
Definition: common/intersectioniterator.hh:222
const Dune::Intersection< GridImp, IntersectionImp > value_type
Definition: common/intersectioniterator.hh:238