1 #ifndef DUNE_IDENTITYGRID_INTERSECTIONITERATOR_HH
2 #define DUNE_IDENTITYGRID_INTERSECTIONITERATOR_HH
7 #include <dune/grid/common/intersection.hh>
23 template<
class Gr
idImp>
27 enum {dim=GridImp::dimension};
29 enum {dimworld=GridImp::dimensionworld};
32 typedef typename GridImp::ctype ctype;
34 typedef typename GridImp::HostGridType::template Codim<0>::Entity::LeafIntersectionIterator HostLeafIntersectionIterator;
38 typedef Dune::Intersection<const GridImp, Dune::IdentityGridLeafIntersection>
Intersection;
41 const HostLeafIntersectionIterator& hostIterator)
50 return GridImp::getRealImplementation(intersection_).hostIterator_
51 == GridImp::getRealImplementation(other.intersection_).hostIterator_;
57 ++GridImp::getRealImplementation(intersection_).hostIterator_;
72 mutable MakeableInterfaceObject<Intersection> intersection_;
79 template<
class Gr
idImp>
82 enum {dim=GridImp::dimension};
84 enum {dimworld=GridImp::dimensionworld};
87 typedef typename GridImp::ctype ctype;
89 typedef typename GridImp::HostGridType::template Codim<0>::Entity::LevelIntersectionIterator HostLevelIntersectionIterator;
93 typedef Dune::Intersection<const GridImp, Dune::IdentityGridLevelIntersection>
Intersection;
96 const HostLevelIntersectionIterator& hostIterator)
102 return GridImp::getRealImplementation(intersection_).hostIterator_ == GridImp::getRealImplementation(other.intersection_).hostIterator_;
108 ++GridImp::getRealImplementation(intersection_).hostIterator_;
113 return intersection_;
120 mutable MakeableInterfaceObject<Intersection> intersection_;