Dune Core Modules (unstable)

leveliterator.hh
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4// vi: set et ts=4 sw=2 sts=2:
5#ifndef DUNE_ALBERTA_LEVELITERATOR_HH
6#define DUNE_ALBERTA_LEVELITERATOR_HH
7
8#include <dune/grid/common/entityiterator.hh>
9
10#include <dune/grid/albertagrid/treeiterator.hh>
11
12#if HAVE_ALBERTA
13
14namespace Dune
15{
16
17 // AlbertaGridLevelIterator
18 // ------------------------
19
20 template< int codim, PartitionIteratorType pitype, class GridImp >
21 class AlbertaGridLevelIterator
22 : public AlbertaGridTreeIterator< codim, GridImp, false >
23 {
24 typedef AlbertaGridLevelIterator< codim, pitype, GridImp > This;
26
27 public:
28 typedef typename Base::Entity Entity;
29 typedef typename Base::MarkerVector MarkerVector;
30
31 AlbertaGridLevelIterator ()
32 {}
33
35 AlbertaGridLevelIterator ( const GridImp &grid, int level )
36 : Base( grid, level )
37 {}
38
40 AlbertaGridLevelIterator ( const GridImp &grid,
41 const MarkerVector *vec,
42 int level )
43 : Base( grid, vec, level )
44 {}
45
47 void increment ()
48 {
50 }
51 };
52
53
54 template< int codim, class GridImp >
55 class AlbertaGridLevelIterator< codim, Ghost_Partition, GridImp >
56 : public AlbertaGridTreeIterator< codim, GridImp, false >
57 {
58 typedef AlbertaGridLevelIterator< codim, Ghost_Partition, GridImp > This;
60
61 public:
62 typedef typename Base::Entity Entity;
63 typedef typename Base::MarkerVector MarkerVector;
64
65 AlbertaGridLevelIterator ()
66 {}
67
69 AlbertaGridLevelIterator ( const GridImp &grid, int level )
70 : Base( grid, level )
71 {}
72
74 AlbertaGridLevelIterator ( const GridImp &grid,
75 const MarkerVector *,
76 int level )
77 : Base( grid, level )
78 {}
79
81 void increment ()
82 {
84 }
85 };
86}
87
88#endif // #if HAVE_ALBERTA
89
90#endif // #ifndef DUNE_ALBERTA_LEVELITERATOR_HH
void increment()
increment
Definition: treeiterator.hh:411
@ Ghost_Partition
only ghost entities
Definition: gridenums.hh:142
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)