dune-grid
2.3.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
grid
common
common/leafiterator.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_LEAFITERATOR_HH
4
#define DUNE_GRID_LEAFITERATOR_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
11
#include <
dune/grid/common/entityiterator.hh
>
12
#include <
dune/grid/common/gridenums.hh
>
13
14
namespace
Dune
15
{
16
17
/**********************************************************************/
28
template
<
int
codim,
PartitionIteratorType
pitype,
class
GridImp,
29
template
<
int
,PartitionIteratorType,
class
>
class
LeafIteratorImp>
30
class
LeafIterator
31
:
public
EntityIterator
< codim, GridImp, LeafIteratorImp< codim, pitype, GridImp > >
32
{
33
typedef
EntityIterator< codim, GridImp, LeafIteratorImp< codim, pitype, GridImp >
>
Base
;
34
35
public
:
37
LeafIterator
&
operator++
()
38
{
39
++
static_cast<
Base
&
>
( *this );
40
this->
realIterator
.increment();
41
return
*
this
;
42
}
43
44
};
45
46
}
47
48
namespace
std {
49
50
template
51
<
int
codim,
Dune::PartitionIteratorType
pitype,
class
GridImp,
52
template
<
int
,Dune::PartitionIteratorType,
class
>
class
LeafIteratorImp>
53
struct
iterator_traits<Dune::LeafIterator<codim, pitype, GridImp,
54
LeafIteratorImp> > {
55
typedef
ptrdiff_t
difference_type
;
56
typedef
const
typename
Dune::LeafIterator
<codim, pitype, GridImp,
57
LeafIteratorImp>::Entity
value_type
;
58
typedef
value_type
*
pointer
;
59
typedef
value_type
&
reference
;
60
typedef
forward_iterator_tag
iterator_category
;
61
};
62
63
}
// namespace std
64
65
#endif // DUNE_GRID_LEAFITERATOR_HH
Generated on Mon Nov 24 2014 21:02:50 for dune-grid by
1.8.1.2