5 #ifndef DUNE_GEOGRID_INTERSECTIONITERATOR_HH 6 #define DUNE_GEOGRID_INTERSECTIONITERATOR_HH 19 template<
class Gr
id,
class HostIntersectionIterator >
22 typedef typename std::remove_const< Grid >::type::Traits Traits;
24 typedef GeoGrid::Intersection< Grid, typename HostIntersectionIterator::Intersection > IntersectionImpl;
27 typedef typename Traits::template Codim< 0 >::GeometryImpl ElementGeometryImpl;
35 template<
class Entity >
37 const HostIntersectionIterator &hostIterator )
38 : hostIterator_( hostIterator )
39 , insideGeo_( inside.geometry().impl() )
43 : hostIterator_( other.hostIterator_ )
44 , insideGeo_( other.insideGeo_ )
48 : hostIterator_(
std::move( other.hostIterator_ ) )
49 , insideGeo_(
std::move( other.insideGeo_ ) )
54 hostIterator_ = other.hostIterator_;
55 insideGeo_ = other.insideGeo_;
61 hostIterator_ = std::move( other.hostIterator_ );
62 insideGeo_ = std::move( other.insideGeo_ );
68 return (hostIterator_ == other.hostIterator_);
83 HostIntersectionIterator hostIterator_;
84 ElementGeometryImpl insideGeo_;
92 #endif // #ifndef DUNE_GEOGRID_INTERSECTIONITERATOR_HH concept IntersectionIterator
Model of an intersection iterator.
Definition: concepts/intersectioniterator.hh:21
Definition: geometrygrid/intersection.hh:21
IntersectionIterator()
Definition: geometrygrid/intersectioniterator.hh:32
void increment()
Definition: geometrygrid/intersectioniterator.hh:71
IntersectionIterator & operator=(const IntersectionIterator &other)
Definition: geometrygrid/intersectioniterator.hh:52
Dune::Intersection< Grid, IntersectionImpl > Intersection
Definition: geometrygrid/intersectioniterator.hh:30
bool equals(const IntersectionIterator &other) const
Definition: geometrygrid/intersectioniterator.hh:66
IntersectionIterator(const IntersectionIterator &other)
Definition: geometrygrid/intersectioniterator.hh:42
concept Geometry
Model of a geometry object.
Definition: concepts/geometry.hh:29
Intersection dereference() const
Definition: geometrygrid/intersectioniterator.hh:76
IntersectionIterator(const Entity &inside, const HostIntersectionIterator &hostIterator)
Definition: geometrygrid/intersectioniterator.hh:36
Include standard header files.
Definition: agrid.hh:59
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: albertagrid/dgfparser.hh:28
DUNE-conform implementation of the entityThis class merely changes the template parameters of the ent...
Definition: geometrygrid/entity.hh:49
Definition: geometrygrid/entity.hh:60
IntersectionIterator(IntersectionIterator &&other)
Definition: geometrygrid/intersectioniterator.hh:47