Dune Core Modules (2.4.1)

identitygridhierarchiciterator.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_IDENTITYGRIDHIERITERATOR_HH
4#define DUNE_IDENTITYGRIDHIERITERATOR_HH
5
11namespace Dune {
12
13
14 //**********************************************************************
15 //
23 template<class GridImp>
25 public Dune::IdentityGridEntityPointer<0,GridImp,typename GridImp::HostGridType::template Codim<0>::Entity::HierarchicIterator>
26 {
27
28 // Type of the corresponding HierarchicIterator in the host grid
29 typedef typename GridImp::HostGridType::template Codim<0>::Entity::HierarchicIterator HostGridHierarchicIterator;
30
32
33 public:
34
35 typedef typename Base::Entity Entity;
36
38 explicit IdentityGridHierarchicIterator(const GridImp* identityGrid, const Entity& startEntity, int maxLevel) :
39 Base(identityGrid, GridImp::getRealImplementation(startEntity).hostEntity_.hbegin(maxLevel))
40 {}
41
42
44 explicit IdentityGridHierarchicIterator(const GridImp* identityGrid, const Entity& startEntity, int maxLevel, bool endDummy) :
45 Base(identityGrid, GridImp::getRealImplementation(startEntity).hostEntity_.hend(maxLevel))
46 {}
47
48
50 void increment()
51 {
52 ++this->hostEntityPointer_;
53 }
54
55 };
56
57
58} // end namespace Dune
59
60#endif
Definition: identitygridentitypointer.hh:19
HostGridEntityPointer hostEntityPointer_
host EntityPointer
Definition: identitygridentitypointer.hh:112
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:50
IdentityGridHierarchicIterator(const GridImp *identityGrid, const Entity &startEntity, int maxLevel, bool endDummy)
Definition: identitygridhierarchiciterator.hh:44
IdentityGridHierarchicIterator(const GridImp *identityGrid, const Entity &startEntity, int maxLevel)
the default Constructor
Definition: identitygridhierarchiciterator.hh:38
The IdentityGridEntityPointer class.
Dune namespace.
Definition: alignment.hh:10
Static tag representing a codimension.
Definition: dimension.hh:22
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)