Dune-Fufem 2.11-git
Loading...
Searching...
No Matches
boundaryiterator.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE-FUFEM Project contributors, see file AUTHORS.md
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
3
4#ifndef BOUNDARY_ITERATOR_HH
5#define BOUNDARY_ITERATOR_HH
6
7#warning This header is deprecated and will be removed after 2.11. Use domains/boundary.hh instead.
8
17
18
19
26template <class GridView>
27class
28[[deprecated("This class is deprecated and will be removed after 2.11. Use Dune::Fufem::Boundary<GridView> instead.")]]
31{
33 enum {dim=GridView::dimension};
34
35 typedef typename GridView::IntersectionIterator IntersectionIterator;
36 typedef typename GridView::template Codim<0>::Iterator ElementIterator;
37 typedef typename GridView::template Codim<0>::Entity Element;
38
39public:
41
44
50 BoundaryIterator(const GridView& gridView, PositionFlag flag) :
51 Base(gridView, flag)
52 {
53 Base::initialIncrement();
54 }
55
62 BoundaryIterator(const GridView& gridView, const ElementIterator& eIt, const ElementIterator& endEIt) :
63 Base(gridView, eIt, endEIt)
64 {
65 Base::initialIncrement();
66 }
67
68 bool skipElement(const Element& e)
69 {
70 return false;
71 }
72
74 {
75 return not(i.boundary());
76 }
77};
78
79
80
81#endif
82
size_type dim() const
Iterator of boundary intersections of grid view.
Definition boundaryiterator.hh:31
BoundaryIterator(const GridView &gridView, PositionFlag flag)
Create begin or end iterator for given grid view.
Definition boundaryiterator.hh:50
Base::Intersection Intersection
The type of objects we are iterating over.
Definition boundaryiterator.hh:43
bool skipElement(const Element &e)
Definition boundaryiterator.hh:68
BoundaryIterator(const GridView &gridView, const ElementIterator &eIt, const ElementIterator &endEIt)
Create iterator for given grid view.
Definition boundaryiterator.hh:62
bool skipIntersection(const Intersection &i)
Definition boundaryiterator.hh:73
Base::PositionFlag PositionFlag
Definition boundaryiterator.hh:40
Base class for iterators on intersections of a grid view.
Definition globalintersectioniterator.hh:90
PositionFlag
Definition globalintersectioniterator.hh:108
IntersectionIterator::Intersection Intersection
The type of objects we are iterating over.
Definition globalintersectioniterator.hh:99