5#ifndef DUNE_IDENTITYGRIDHIERITERATOR_HH
6#define DUNE_IDENTITYGRIDHIERITERATOR_HH
24 template<
class Gr
idImp>
29 typedef typename GridImp::HostGridType::template Codim<0>::Entity::HierarchicIterator HostGridHierarchicIterator;
35 typedef typename GridImp::template Codim<0>::Entity
Entity;
39 identityGrid_(identityGrid),
40 hostHierarchicIterator_(startEntity.impl().hostEntity_.hbegin(maxLevel))
46 identityGrid_(identityGrid),
47 hostHierarchicIterator_(startEntity.impl().hostEntity_.hend(maxLevel))
54 ++hostHierarchicIterator_;
59 return Entity{{identityGrid_,*hostHierarchicIterator_}};
64 return hostHierarchicIterator_ == i.hostHierarchicIterator_;
68 const GridImp* identityGrid_;
70 HostGridHierarchicIterator hostHierarchicIterator_;
Include standard header files.
Definition: agrid.hh:60
Iterator over the descendants of an entity.Mesh entities of codimension 0 ("elements") allow to visit...
Definition: identitygridhierarchiciterator.hh:26
void increment()
Definition: identitygridhierarchiciterator.hh:52
GridImp::template Codim< 0 >::Entity Entity
Definition: identitygridhierarchiciterator.hh:35
bool equals(const IdentityGridHierarchicIterator &i) const
equality
Definition: identitygridhierarchiciterator.hh:63
static constexpr int codimension
Definition: identitygridhierarchiciterator.hh:33
IdentityGridHierarchicIterator(const GridImp *identityGrid, const Entity &startEntity, int maxLevel, bool endDummy)
Definition: identitygridhierarchiciterator.hh:45
Entity dereference() const
dereferencing
Definition: identitygridhierarchiciterator.hh:58
IdentityGridHierarchicIterator(const GridImp *identityGrid, const Entity &startEntity, int maxLevel)
the default Constructor
Definition: identitygridhierarchiciterator.hh:38