dune-grid
2.3.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
grid
albertagrid
albertagrid/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_ALBERTA_LEAFITERATOR_HH
4
#define DUNE_ALBERTA_LEAFITERATOR_HH
5
6
#include <
dune/grid/common/entityiterator.hh
>
7
8
#include <
dune/grid/albertagrid/treeiterator.hh
>
9
10
#if HAVE_ALBERTA
11
12
namespace
Dune
13
{
14
15
// AlbertaGridLeafIterator
16
// -----------------------
17
18
template
<
int
codim, PartitionIteratorType pitype,
class
Gr
id
Imp >
19
class
AlbertaGridLeafIterator
20
:
public
AlbertaGridTreeIterator
< codim, GridImp, true >
21
{
22
typedef
AlbertaGridLeafIterator< codim, pitype, GridImp >
This
;
23
typedef
AlbertaGridTreeIterator< codim, GridImp, true >
Base
;
24
25
public
:
26
typedef
typename
Base::Entity
Entity
;
27
typedef
typename
Base::MarkerVector
MarkerVector
;
28
30
AlbertaGridLeafIterator
(
const
GridImp &
grid
,
int
level
)
31
:
Base
( grid, level )
32
{}
33
35
AlbertaGridLeafIterator
(
const
GridImp &
grid
,
36
const
MarkerVector
*vec,
37
int
level
)
38
:
Base
( grid, vec, level )
39
{}
40
42
void
increment
()
43
{
44
Base::increment
();
45
}
46
};
47
48
49
template
<
int
codim,
class
Gr
id
Imp >
50
class
AlbertaGridLeafIterator
< codim,
Ghost_Partition
, GridImp >
51
:
public
AlbertaGridTreeIterator
< codim, GridImp, true >
52
{
53
typedef
AlbertaGridLeafIterator< codim, Ghost_Partition, GridImp >
This
;
54
typedef
AlbertaGridTreeIterator< codim, GridImp, true >
Base
;
55
56
public
:
57
typedef
typename
Base::Entity
Entity
;
58
typedef
typename
Base::MarkerVector
MarkerVector
;
59
61
AlbertaGridLeafIterator
(
const
GridImp &
grid
,
int
level
)
62
:
Base
( grid, level )
63
{}
64
66
AlbertaGridLeafIterator
(
const
GridImp &
grid
,
67
const
MarkerVector
*vec,
68
int
level
)
69
:
Base
( grid, level )
70
{}
71
73
void
increment
()
74
{
75
Base::increment
();
76
}
77
};
78
79
}
80
81
#endif // #if HAVE_ALBERTA
82
83
#endif // #ifndef DUNE_ALBERTA_LEAFITERATOR_HH
Generated on Mon Nov 24 2014 21:02:50 for dune-grid by
1.8.1.2