3 #ifndef DUNE_GEOGRID_INTERSECTIONITERATOR_HH
4 #define DUNE_GEOGRID_INTERSECTIONITERATOR_HH
17 template<
class Gr
id,
class HostIntersectionIterator >
18 class IntersectionIterator
20 typedef typename remove_const< Grid >::type::Traits Traits;
22 typedef GeoGrid::Intersection< Grid, typename HostIntersectionIterator::Intersection > IntersectionImpl;
24 typedef typename Traits::template Codim< 0 >::Geometry ElementGeometry;
25 typedef typename Traits::template Codim< 0 >::GeometryImpl ElementGeometryImpl;
33 template<
class Entity >
35 const HostIntersectionIterator &hostIterator )
36 : hostIterator_( hostIterator )
37 , insideGeo_(
Grid::getRealImplementation( inside.geometry() ) )
41 : hostIterator_( other.hostIterator_ )
42 , insideGeo_( other.insideGeo_ )
46 : hostIterator_(
std::
move( other.hostIterator_ ) )
47 , insideGeo_(
std::
move( other.insideGeo_ ) )
52 hostIterator_ = other.hostIterator_;
53 insideGeo_ = other.insideGeo_;
59 hostIterator_ =
std::move( other.hostIterator_ );
60 insideGeo_ =
std::move( other.insideGeo_ );
66 return (hostIterator_ == other.hostIterator_);
76 return IntersectionImpl( *hostIterator_, insideGeo_ );
81 HostIntersectionIterator hostIterator_;
82 ElementGeometryImpl insideGeo_;
90 #endif // #ifndef DUNE_GEOGRID_INTERSECTIONITERATOR_HH
Dune::Intersection< Grid, IntersectionImpl > Intersection
Definition: geometrygrid/intersectioniterator.hh:28
IntersectionIterator(const IntersectionIterator &other)
Definition: geometrygrid/intersectioniterator.hh:40
Intersection dereference() const
Definition: geometrygrid/intersectioniterator.hh:74
IntersectionIterator(IntersectionIterator &&other)
Definition: geometrygrid/intersectioniterator.hh:45
void increment()
Definition: geometrygrid/intersectioniterator.hh:69
Include standard header files.
Definition: agrid.hh:59
Definition: geometrygrid/entity.hh:60
IntersectionIterator & operator=(const IntersectionIterator &other)
Definition: geometrygrid/intersectioniterator.hh:50
static void(*)(*)(*)(*)(*)(*) move(const double *)
Definition: partitiondisplay.cc:122
IntersectionIterator()
Definition: geometrygrid/intersectioniterator.hh:30
Grid abstract base classThis class is the base class for all grid implementations. Although no virtual functions are used we call it abstract since its methods do not contain an implementation but forward to the methods of the derived class via the Barton-Nackman trick.
Definition: common/grid.hh:388
DUNE-conform implementation of the entityThis class merely changes the template parameters of the ent...
Definition: geometrygrid/entity.hh:49
Intersection of a mesh entities of codimension 0 ("elements") with a "neighboring" element or with th...
Definition: albertagrid/dgfparser.hh:26
IntersectionIterator(const Entity &inside, const HostIntersectionIterator &hostIterator)
Definition: geometrygrid/intersectioniterator.hh:34
bool equals(const IntersectionIterator &other) const
Definition: geometrygrid/intersectioniterator.hh:64