10 #ifndef DUNE_GRIDGLUE_ADAPTER_INTERSECTIONITERATOR_HH
11 #define DUNE_GRIDGLUE_ADAPTER_INTERSECTIONITERATOR_HH
19 template<
typename P0,
typename P1,
int ins
ide,
int outs
ide>
20 class IntersectionIterator :
21 public Dune::ForwardIteratorFacade< IntersectionIterator<P0,P1,inside,outside>,
22 const Intersection<P0,P1,inside,outside> >
26 typedef ::Dune::GridGlue::GridGlue<P0, P1>
GridGlue;
27 typedef ::Dune::GridGlue::Intersection<P0,P1,inside,outside>
Intersection;
32 intersection_(glue_, & glue_->intersections_[index_])
37 assert((
"never dereference the end iterator" &&
38 index_ != glue_->index__sz));
44 intersection_ =
Intersection(glue_, & glue_->intersections_[++index_]);
49 return iter.index_ == index_;
63 #endif // DUNE_GRIDGLUE_ADAPTER_INTERSECTIONITERATOR_HH