3#ifndef DUNE_ALBERTA_INTERSECTIONITERATOR_HH
4#define DUNE_ALBERTA_INTERSECTIONITERATOR_HH
6#include <dune/grid/common/intersectioniterator.hh>
8#include <dune/grid/albertagrid/intersection.hh>
23 template<
class Gr
idImp >
24 class AlbertaGridLeafIntersectionIterator
26 typedef AlbertaGridLeafIntersectionIterator< GridImp > This;
37 typedef AlbertaGridLeafIntersection< GridImp > IntersectionImp;
40 template<
class EntityImp >
41 AlbertaGridLeafIntersectionIterator (
const EntityImp &entity, Begin )
42 : intersection_( IntersectionImp( entity, 0 ) )
45 template<
class EntityImp >
46 AlbertaGridLeafIntersectionIterator (
const EntityImp &entity, End )
47 : intersection_( IntersectionImp( entity, dimension+1 ) )
50 AlbertaGridLeafIntersectionIterator (
const This &other )
51 : intersection_( other.intersectionImp() )
54 This &operator= (
const This &other )
56 intersectionImp() = other.intersectionImp();
60 const Intersection &dereference ()
const
65 bool equals (
const This &other )
const
67 return (intersectionImp() == other.intersectionImp());
72 intersectionImp().next();
76 const IntersectionImp &intersectionImp ()
const
78 return GridImp::getRealImplementation( intersection_ );
81 IntersectionImp &intersectionImp ()
83 return GridImp::getRealImplementation( intersection_ );
86 Intersection intersection_;
Intersection of a mesh entities of codimension 0 ("elements") with a "neighboring" element or with th...
Definition: intersection.hh:161
@ dimension
Definition: intersection.hh:209
Dune namespace.
Definition: alignment.hh:14