1#ifndef DUNE_MULTIDOMAINGRID_HIERARCHICITERATOR_HH
2#define DUNE_MULTIDOMAINGRID_HIERARCHICITERATOR_HH
8template<
int codim,
int dim,
typename Gr
idImp>
11template<
typename Gr
idImp>
12class HierarchicIteratorWrapper
17 static const int codimension = 0;
19 using Entity =
typename GridImp::template Codim<0>::Entity;
20 using EntityWrapper = Dune::mdgrid::EntityWrapper<0,GridImp::dimension,GridImp>;
21 using HostIterator =
typename GridImp::HostGrid::HierarchicIterator;
23 HierarchicIteratorWrapper() =
default;
25 explicit HierarchicIteratorWrapper(
const HostIterator& hostIterator)
26 : _hostIterator(hostIterator)
33 bool equals(
const HierarchicIteratorWrapper& r)
const
35 return _hostIterator == r._hostIterator;
38 Entity dereference()
const
40 return {EntityWrapper(*_hostIterator)};
45 return _hostIterator.level();
50 HostIterator _hostIterator;