1 #ifndef DUNE_FEM_GRIDPART_GEOGRIDPART_INTERSECTIONITERATOR_HH 2 #define DUNE_FEM_GRIDPART_GEOGRIDPART_INTERSECTIONITERATOR_HH 7 #include <dune/grid/common/intersectioniterator.hh> 20 template<
class Gr
idFamily >
25 typedef typename std::remove_const< GridFamily >::type::Traits Traits;
27 typedef typename Traits::CoordFunctionType CoordFunctionType;
28 typedef typename Traits::template Codim< 0 >::Geometry ElementGeometryType;
29 typedef typename Traits::HostGridPartType::IntersectionIteratorType HostIntersectionIteratorType;
34 typedef Dune::Intersection< const GridFamily, IntersectionImplType >
Intersection;
38 template<
class Entity >
40 HostIntersectionIteratorType hostIterator )
42 insideGeo_( inside.geometry() ),
43 hostIterator_(
std::
move( hostIterator ) )
46 bool equals (
const ThisType &other )
const 48 return hostIterator_ == other.hostIterator_;
58 return IntersectionImplType(
coordFunction(), insideGeo_, *hostIterator_ );
63 assert( coordFunction_ );
64 return *coordFunction_;
68 const CoordFunctionType *coordFunction_ =
nullptr;
69 ElementGeometryType insideGeo_;
70 HostIntersectionIteratorType hostIterator_;
77 #endif // #ifndef DUNE_FEM_GRIDPART_GEOGRIDPART_INTERSECTIONITERATOR_HH
Definition: geogridpart/intersection.hh:20
Intersection dereference() const
Definition: geogridpart/intersectioniterator.hh:56
Dune::Intersection< const GridFamily, IntersectionImplType > Intersection
Definition: geogridpart/intersectioniterator.hh:34
GeoIntersectionIterator()=default
bool equals(const ThisType &other) const
Definition: geogridpart/intersectioniterator.hh:46
Definition: coordinate.hh:4
GeoIntersectionIterator(const Entity &inside, HostIntersectionIteratorType hostIterator)
Definition: geogridpart/intersectioniterator.hh:39
const CoordFunctionType & coordFunction() const
Definition: geogridpart/intersectioniterator.hh:61
Definition: geogridpart/intersectioniterator.hh:21
void move(ArrayInterface< T > &array, const unsigned int oldOffset, const unsigned int newOffset, const unsigned int length)
Definition: array_inline.hh:38
void increment()
Definition: geogridpart/intersectioniterator.hh:51