dune-grid  2.4
identitygridleveliterator.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_IDENTITYGRIDLEVELITERATOR_HH
4 #define DUNE_IDENTITYGRIDLEVELITERATOR_HH
5 
7 
12 namespace Dune {
13 
14 
15 
16 
17  //**********************************************************************
18  //
19  // --IdentityGridLevelIterator
23  template<int codim, PartitionIteratorType pitype, class GridImp>
24  class IdentityGridLevelIterator :
25  public Dune::IdentityGridEntityPointer<codim,GridImp,typename GridImp::HostGridType::Traits::template Codim<codim>::template Partition<pitype>::LevelIterator>
26  {
27 
28  typedef typename GridImp::HostGridType::Traits::template Codim<codim>::template Partition<pitype>::LevelIterator HostGridLevelIterator;
30 
31  public:
32 
34  explicit IdentityGridLevelIterator(const GridImp* identityGrid, int level)
35  : Base(identityGrid, identityGrid->hostgrid_->levelGridView(level).template begin<codim,pitype>())
36  {}
37 
38 
44  explicit IdentityGridLevelIterator(const GridImp* identityGrid, int level, bool endDummy)
45  : Base(identityGrid, identityGrid->hostgrid_->levelGridView(level).template end<codim,pitype>())
46  {}
47 
48 
50  void increment() {
51  ++this->hostEntityPointer_;
52  }
53 
54  };
55 
56 
57 } // namespace Dune
58 
59 #endif
IdentityGridLevelIterator(const GridImp *identityGrid, int level)
Constructor.
Definition: identitygridleveliterator.hh:34
The IdentityGridEntityPointer class.
Include standard header files.
Definition: agrid.hh:59
void increment()
prefix increment
Definition: identitygridleveliterator.hh:50
Definition: identitygridentity.hh:21
IdentityGridLevelIterator(const GridImp *identityGrid, int level, bool endDummy)
Constructor which create the end iterator.
Definition: identitygridleveliterator.hh:44