5#ifndef DUNE_IDENTITYGRIDLEAFITERATOR_HH
6#define DUNE_IDENTITYGRIDLEAFITERATOR_HH
20 template<
int codim, PartitionIteratorType pitype,
class Gr
idImp>
26 typedef typename GridImp::HostGridType::template Codim<codim>::template Partition<pitype>::LeafIterator HostGridLeafIterator;
32 typedef typename GridImp::template Codim<codim>::Entity
Entity;
36 identityGrid_(identityGrid),
37 hostLeafIterator_(identityGrid->hostgrid_->
leafGridView().template begin<codim,pitype>())
45 identityGrid_(identityGrid),
46 hostLeafIterator_(identityGrid->hostgrid_->
leafGridView().template end<codim,pitype>())
57 return Entity{{identityGrid_,*hostLeafIterator_}};
62 return hostLeafIterator_ == i.hostLeafIterator_;
66 const GridImp* identityGrid_;
68 HostGridLeafIterator hostLeafIterator_;
Grid< dim, dimworld, ct, GridFamily >::LeafGridView leafGridView(const Grid< dim, dimworld, ct, GridFamily > &grid)
leaf grid view for the given grid
Definition: common/grid.hh:819
Include standard header files.
Definition: agrid.hh:60
Iterator over all entities of a given codimension and level of a grid.
Definition: identitygridleafiterator.hh:22
Entity dereference() const
dereferencing
Definition: identitygridleafiterator.hh:56
bool equals(const IdentityGridLeafIterator &i) const
equality
Definition: identitygridleafiterator.hh:61
IdentityGridLeafIterator(const GridImp *identityGrid, bool endDummy)
Constructor which create the end iterator.
Definition: identitygridleafiterator.hh:44
static constexpr int codimension
Definition: identitygridleafiterator.hh:30
GridImp::template Codim< codim >::Entity Entity
Definition: identitygridleafiterator.hh:32
IdentityGridLeafIterator(const GridImp *identityGrid)
Definition: identitygridleafiterator.hh:35
void increment()
prefix increment
Definition: identitygridleafiterator.hh:51