dune-grid  2.3.1
common/leveliterator.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_LEVELITERATOR_HH
4 #define DUNE_GRID_LEVELITERATOR_HH
5 
6 #warning This file is deprecated, and will be removed in the release after dune-2.3
7 
8 #include <cstddef>
9 #include <iterator>
10 
13 
14 namespace Dune
15 {
16 
17  /**********************************************************************/
27  template<int codim, PartitionIteratorType pitype, class GridImp,
28  template<int,PartitionIteratorType,class> class LevelIteratorImp>
30  : public EntityIterator< codim, GridImp, LevelIteratorImp< codim, pitype, GridImp > >
31  {
33 
34  public:
41  {
42  ++static_cast< Base & >( *this );
43  return *this;
44  }
45 
46  };
47 
48 }
49 
50 namespace std {
51 
52  template
53  < int codim, Dune::PartitionIteratorType pitype, class GridImp,
54  template<int,Dune::PartitionIteratorType,class> class LevelIteratorImp>
55  struct iterator_traits<Dune::LevelIterator<codim, pitype, GridImp,
56  LevelIteratorImp> > {
57  typedef ptrdiff_t difference_type;
58  typedef const typename Dune::LevelIterator<codim, pitype, GridImp,
59  LevelIteratorImp>::Entity value_type;
60  typedef value_type* pointer;
62  typedef forward_iterator_tag iterator_category;
63  };
64 
65 } // namespace std
66 
67 #endif // DUNE_GRID_LEVELITERATOR_HH
PartitionIteratorType
Parameter to be used for the parallel level- and leaf iterators.
Definition: gridenums.hh:130
interface class for an iterator over grid entitiesAn entity iterator is an iterator over a subset of ...
Definition: entityiterator.hh:35
const Dune::LevelIterator< codim, pitype, GridImp, LevelIteratorImp >::Entity value_type
Definition: common/leveliterator.hh:59
LevelIterator & operator++()
Preincrement operator.
Definition: common/leveliterator.hh:40
forward_iterator_tag iterator_category
Definition: common/leveliterator.hh:62
Enables iteration over all entities of a given codimension and level of a grid. See also the document...
Definition: common/leveliterator.hh:29