dune-grid 2.8.0
Loading...
Searching...
No Matches
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
7
9
10#if HAVE_ALBERTA
11
12namespace Dune
13{
14
15 // AlbertaGridLeafIterator
16 // -----------------------
17
18 template< int codim, PartitionIteratorType pitype, class GridImp >
20 : public AlbertaGridTreeIterator< codim, GridImp, true >
21 {
24
25 public:
26 typedef typename Base::Entity Entity;
28
30 {}
31
33 AlbertaGridLeafIterator ( const GridImp &grid, int level )
34 : Base( grid, level )
35 {}
36
38 AlbertaGridLeafIterator ( const GridImp &grid,
39 const MarkerVector *vec,
40 int level )
41 : Base( grid, vec, level )
42 {}
43
45 void increment ()
46 {
48 }
49 };
50
51
52 template< int codim, class GridImp >
54 : public AlbertaGridTreeIterator< codim, GridImp, true >
55 {
58
59 public:
60 typedef typename Base::Entity Entity;
62
64 {}
65
67 AlbertaGridLeafIterator ( const GridImp &grid, int level )
68 : Base( grid, level )
69 {}
70
72 AlbertaGridLeafIterator ( const GridImp &grid,
73 const MarkerVector *,
74 int level )
75 : Base( grid, level )
76 {}
77
79 void increment ()
80 {
82 }
83 };
84
85}
86
87#endif // #if HAVE_ALBERTA
88
89#endif // #ifndef DUNE_ALBERTA_LEAFITERATOR_HH
@ Ghost_Partition
only ghost entities
Definition: gridenums.hh:140
Include standard header files.
Definition: agrid.hh:58
Definition: treeiterator.hh:187
GridImp::template Codim< codim >::Entity Entity
Definition: treeiterator.hh:205
int level() const
ask for level of entities
Definition: treeiterator.hh:241
void increment()
increment
Definition: treeiterator.hh:409
const GridImp & grid() const
obtain a reference to the grid
Definition: treeiterator.hh:251
Definition: leafiterator.hh:21
Base::Entity Entity
Definition: leafiterator.hh:26
AlbertaGridLeafIterator(const GridImp &grid, int level)
Constructor making end iterator.
Definition: leafiterator.hh:33
Base::MarkerVector MarkerVector
Definition: leafiterator.hh:27
AlbertaGridLeafIterator(const GridImp &grid, const MarkerVector *vec, int level)
Constructor making begin iterator.
Definition: leafiterator.hh:38
AlbertaGridLeafIterator()
Definition: leafiterator.hh:29
void increment()
increment the iterator
Definition: leafiterator.hh:45
Base::Entity Entity
Definition: leafiterator.hh:60
void increment()
increment the iterator
Definition: leafiterator.hh:79
AlbertaGridLeafIterator(const GridImp &grid, const MarkerVector *, int level)
Constructor making begin iterator (which is the end iterator in this case)
Definition: leafiterator.hh:72
Base::MarkerVector MarkerVector
Definition: leafiterator.hh:61
AlbertaGridLeafIterator(const GridImp &grid, int level)
Constructor making end iterator.
Definition: leafiterator.hh:67
marker assigning subentities to one element containing them
Definition: treeiterator.hh:33