Dune Core Modules (unstable)

leafiterator.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_LEAFITERATOR_HH
6#define DUNE_ALBERTA_LEAFITERATOR_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 // AlbertaGridLeafIterator
18 // -----------------------
19
20 template< int codim, PartitionIteratorType pitype, class GridImp >
21 class AlbertaGridLeafIterator
22 : public AlbertaGridTreeIterator< codim, GridImp, true >
23 {
24 typedef AlbertaGridLeafIterator< codim, pitype, GridImp > This;
26
27 public:
28 typedef typename Base::Entity Entity;
29 typedef typename Base::MarkerVector MarkerVector;
30
31 AlbertaGridLeafIterator ()
32 {}
33
35 AlbertaGridLeafIterator ( const GridImp &grid, int level )
36 : Base( grid, level )
37 {}
38
40 AlbertaGridLeafIterator ( 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 AlbertaGridLeafIterator< codim, Ghost_Partition, GridImp >
56 : public AlbertaGridTreeIterator< codim, GridImp, true >
57 {
58 typedef AlbertaGridLeafIterator< codim, Ghost_Partition, GridImp > This;
60
61 public:
62 typedef typename Base::Entity Entity;
63 typedef typename Base::MarkerVector MarkerVector;
64
65 AlbertaGridLeafIterator ()
66 {}
67
69 AlbertaGridLeafIterator ( const GridImp &grid, int level )
70 : Base( grid, level )
71 {}
72
74 AlbertaGridLeafIterator ( const GridImp &grid,
75 const MarkerVector *,
76 int level )
77 : Base( grid, level )
78 {}
79
81 void increment ()
82 {
84 }
85 };
86
87}
88
89#endif // #if HAVE_ALBERTA
90
91#endif // #ifndef DUNE_ALBERTA_LEAFITERATOR_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 (Dec 22, 23:30, 2024)