DUNE PDELab (2.8)

leveliterator.hh
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_LEVELITERATOR_HH
4#define DUNE_ALBERTA_LEVELITERATOR_HH
5
6#include <dune/grid/common/entityiterator.hh>
7
8#include <dune/grid/albertagrid/treeiterator.hh>
9
10#if HAVE_ALBERTA
11
12namespace Dune
13{
14
15 // AlbertaGridLevelIterator
16 // ------------------------
17
18 template< int codim, PartitionIteratorType pitype, class GridImp >
19 class AlbertaGridLevelIterator
20 : public AlbertaGridTreeIterator< codim, GridImp, false >
21 {
22 typedef AlbertaGridLevelIterator< codim, pitype, GridImp > This;
24
25 public:
26 typedef typename Base::Entity Entity;
27 typedef typename Base::MarkerVector MarkerVector;
28
29 AlbertaGridLevelIterator ()
30 {}
31
33 AlbertaGridLevelIterator ( const GridImp &grid, int level )
34 : Base( grid, level )
35 {}
36
38 AlbertaGridLevelIterator ( 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 >
53 class AlbertaGridLevelIterator< codim, Ghost_Partition, GridImp >
54 : public AlbertaGridTreeIterator< codim, GridImp, false >
55 {
56 typedef AlbertaGridLevelIterator< codim, Ghost_Partition, GridImp > This;
58
59 public:
60 typedef typename Base::Entity Entity;
61 typedef typename Base::MarkerVector MarkerVector;
62
63 AlbertaGridLevelIterator ()
64 {}
65
67 AlbertaGridLevelIterator ( const GridImp &grid, int level )
68 : Base( grid, level )
69 {}
70
72 AlbertaGridLevelIterator ( const GridImp &grid,
73 const MarkerVector *,
74 int level )
75 : Base( grid, level )
76 {}
77
79 void increment ()
80 {
82 }
83 };
84}
85
86#endif // #if HAVE_ALBERTA
87
88#endif // #ifndef DUNE_ALBERTA_LEVELITERATOR_HH
void increment()
increment
Definition: treeiterator.hh:409
@ Ghost_Partition
only ghost entities
Definition: gridenums.hh:140
Dune namespace.
Definition: alignedallocator.hh:11
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 22, 23:30, 2024)