dune-grid  2.2.0
albertagrid/leveliterator.hh
Go to the documentation of this file.
1 #ifndef DUNE_ALBERTA_LEVELITERATOR_HH
2 #define DUNE_ALBERTA_LEVELITERATOR_HH
3 
5 
7 
8 #if HAVE_ALBERTA
9 
10 namespace Dune
11 {
12 
13  // AlbertaGridLevelIterator
14  // ------------------------
15 
16  template< int codim, PartitionIteratorType pitype, class GridImp >
18  : public AlbertaGridTreeIterator< codim, GridImp, false >
19  {
22 
23  public:
24  typedef typename Base::Entity Entity;
25  typedef typename Base::MarkerVector MarkerVector;
26 
28  AlbertaGridLevelIterator ( const GridImp &grid, int level )
29  : Base( grid, level )
30  {}
31 
33  AlbertaGridLevelIterator ( const GridImp &grid,
34  const MarkerVector *vec,
35  int level )
36  : Base( grid, vec, level )
37  {}
38 
40  void increment ()
41  {
43  }
44  };
45 
46 
47  template< int codim, class GridImp >
48  class AlbertaGridLevelIterator< codim, Ghost_Partition, GridImp >
49  : public AlbertaGridTreeIterator< codim, GridImp, false >
50  {
53 
54  public:
55  typedef typename Base::Entity Entity;
56  typedef typename Base::MarkerVector MarkerVector;
57 
59  AlbertaGridLevelIterator ( const GridImp &grid, int level )
60  : Base( grid, level )
61  {}
62 
64  AlbertaGridLevelIterator ( const GridImp &grid,
65  const MarkerVector *vec,
66  int level )
67  : Base( grid, level )
68  {}
69 
71  void increment ()
72  {
74  }
75  };
76 }
77 
78 #endif // #if HAVE_ALBERTA
79 
80 #endif // #ifndef DUNE_ALBERTA_LEVELITERATOR_HH