Dune Core Modules (2.5.0)

yaspgridleveliterator.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_GRID_YASPGRIDLEVELITERATOR_HH
4#define DUNE_GRID_YASPGRIDLEVELITERATOR_HH
5
10namespace Dune {
11
12
15 template<int codim, PartitionIteratorType pitype, class GridImp>
17 public YaspEntityPointer<codim,GridImp>
18 {
20 enum { dim=GridImp::dimension };
22 enum { dimworld=GridImp::dimensionworld };
23 typedef typename GridImp::ctype ctype;
24 public:
25 typedef typename GridImp::template Codim<codim>::Entity Entity;
26 typedef typename GridImp::YGridLevelIterator YGLI;
27 typedef typename GridImp::YGrid::Iterator I;
28
31 {}
32
34 YaspLevelIterator (const YGLI & g, const I& it) :
35 YaspEntityPointer<codim,GridImp>(g,it) {}
36
39 YaspEntityPointer<codim,GridImp>(i) {}
40
42 void increment()
43 {
44 ++(GridImp::getRealImplementation(this->_entity)._it);
45 }
46 };
47
48}
49
50#endif // DUNE_GRID_YASPGRIDLEVELITERATOR_HH
A pointer to a YaspGrid::Entity.
Definition: yaspgridentitypointer.hh:16
Entity _entity
use default assignment operator
Definition: yaspgridentitypointer.hh:77
Iterates over entities of one grid level.
Definition: yaspgridleveliterator.hh:18
void increment()
increment
Definition: yaspgridleveliterator.hh:42
YaspLevelIterator(const YaspLevelIterator &i)
copy constructor
Definition: yaspgridleveliterator.hh:38
YaspLevelIterator(const YGLI &g, const I &it)
constructor
Definition: yaspgridleveliterator.hh:34
YaspLevelIterator()
default constructor
Definition: yaspgridleveliterator.hh:30
Dune namespace.
Definition: alignment.hh:11
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 13, 23:29, 2024)