![]() |
Dune-Fufem 2.11-git
|
An iterator iterating over all intersections of an intersection set. More...
#include <dune/fufem/domains/intersectionsetiterator.hh>

Classes | |
| class | SentinelIterator |
| Empty sentinel type. More... | |
Public Types | |
| using | reference = const Intersection & |
| Type returned when dereferencing. | |
| typedef C | iterator_category |
| typedef typename std::remove_const< V >::type | value_type |
| typedef P | pointer |
| typedef D | difference_type |
| typedef value_type | Value |
| typedef reference | Reference |
| typedef pointer | Pointer |
| typedef difference_type | DifferenceType |
Public Member Functions | |
| IntersectionSetIterator ()=default | |
| Default constructor. | |
| IntersectionSetIterator (const IntersectionSet &intersectionSet, ElementIterator elementBegin, ElementIterator elementEnd) | |
| Construct for given intersection set, element iterator and element end iterator. | |
| IntersectionSetIterator (const IntersectionSet &intersectionSet, ElementIterator elementBegin) | |
| Construct for given intersection set and element iterator. | |
| IntersectionSetIterator (const IntersectionSet &intersectionSet) | |
| Construct for given intersection set and element iterator. | |
| reference | operator* () const |
| Dereference the iterator and obtain current reference. | |
| IntersectionSetIterator & | operator++ () |
| Increment the iterator. | |
| constexpr pointer | operator-> () const |
| constexpr DerivedIterator | operator++ (int) |
| constexpr decltype(auto) | operator-- () |
| constexpr DerivedIterator | operator-- (int) |
| constexpr reference | operator[] (difference_type n) const |
| constexpr decltype(auto) | operator+= (difference_type n) |
| constexpr DerivedIterator | operator+ (difference_type n) const |
| constexpr DerivedIterator & | operator-= (difference_type n) |
| constexpr DerivedIterator | operator- (difference_type n) const |
Protected Types | |
| typedef It | DerivedIterator |
Protected Member Functions | |
| constexpr const DerivedIterator & | derived () const |
| constexpr DerivedIterator & | derived () |
Friends | |
| bool | operator== (const IntersectionSetIterator &it1, const IntersectionSetIterator &it2) |
| Equality comparison between two iterators. | |
| bool | operator== (const IntersectionSetIterator &it1, const SentinelIterator &it2) |
| Equality comparison between two iterator and sentinel. | |
Detailed Description
class Dune::Fufem::IntersectionSetIterator< IS >
An iterator iterating over all intersections of an intersection set.
- Template Parameters
-
IS The IntersectionSet the iterator should iterate over
The class IntersectionSet provided as template parameter IS should provide the following interface:
The iterator will loop over all intersections of the GridView the IntersectionSet is associated to for which intersectionSet.contains(intersection) is true. Intersections on elements where intersectionSet.containsFaceOf(element) is false will be skipped.
Member Typedef Documentation
◆ reference
| using Dune::Fufem::IntersectionSetIterator< IS >::reference = const Intersection& |
Type returned when dereferencing.
Constructor & Destructor Documentation
◆ IntersectionSetIterator() [1/4]
|
default |
Default constructor.
◆ IntersectionSetIterator() [2/4]
|
inline |
Construct for given intersection set, element iterator and element end iterator.
- Parameters
-
intersectionSet The intersection set this iterator should loop over (will be stored by reference) elementBegin Iterator to the first element to consider elementEnd Iterator past the last element to consider
◆ IntersectionSetIterator() [3/4]
|
inline |
Construct for given intersection set and element iterator.
- Parameters
-
intersectionSet The intersection set this iterator should loop over (will be stored by reference) elementBegin Iterator to the first element to consider
This will use intersectionSet.gridView().end<0>() as element end iterator. Use the values elementBegin = intersectionSet.gridView().begin<0>() and elementBegin = intersectionSet.gridView().end<0>() to create a begin and end iterator for the intersection set.
◆ IntersectionSetIterator() [4/4]
|
inline |
Construct for given intersection set and element iterator.
- Parameters
-
intersectionSet The intersection set this iterator should loop over (will be stored by reference)
This will use intersectionSet.gridView().begin<0>() and intersectionSet.gridView().end<0>() as element begin and end iterator. Use this method to create a begin iterator.
Member Function Documentation
◆ operator*()
|
inline |
Dereference the iterator and obtain current reference.
◆ operator++()
|
inline |
Increment the iterator.
Friends And Related Symbol Documentation
◆ operator== [1/2]
|
friend |
Equality comparison between two iterators.
◆ operator== [2/2]
|
friend |
Equality comparison between two iterator and sentinel.
The documentation for this class was generated from the following file:
