dune-grid
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
grid
common
entityiterator.hh
Go to the documentation of this file.
1
#ifndef DUNE_GRID_ENTITYITERATOR_HH
2
#define DUNE_GRID_ENTITYITERATOR_HH
3
4
#include <cstddef>
5
#include <iterator>
6
7
#include <
dune/grid/common/entitypointer.hh
>
8
9
namespace
Dune
10
{
11
32
template
<
int
codim,
class
Gr
id
,
class
IteratorImp >
33
class
EntityIterator
34
:
public
EntityPointer
< Grid, IteratorImp >
35
{
36
typedef
EntityPointer< Grid, IteratorImp >
Base
;
37
38
protected
:
39
using
Base::realIterator
;
40
41
public
:
42
typedef
typename
Grid::template Codim< codim >::Entity
Entity
;
43
45
EntityIterator
&
operator++
()
46
{
47
realIterator
.increment();
48
return
*
this
;
49
}
50
56
EntityIterator
(
const
IteratorImp &imp )
57
:
Base
( imp )
58
{}
59
61
};
62
63
}
// namespace Dune
64
65
namespace
std
66
{
67
68
template
<
int
codim,
class
Gr
id
,
class
IteratorImp >
69
struct
iterator_traits< Dune::EntityIterator< codim, Grid, IteratorImp > >
70
{
71
typedef
ptrdiff_t
difference_type
;
72
typedef
const
typename
Dune::EntityIterator< codim, Grid, IteratorImp >::Entity
value_type
;
73
typedef
value_type
*
pointer
;
74
typedef
value_type
&
reference
;
75
typedef
forward_iterator_tag
iterator_category
;
76
};
77
78
}
// namespace std
79
80
#endif // #ifndef DUNE_GRID_ENTITYITERATOR_HH
Generated on Mon May 20 2013 01:15:32 for dune-grid by
1.8.3.1