![]() |
Dune-Fufem 2.11-git
|
Base class for iterators on intersections of a grid view. More...
#include <dune/fufem/globalintersectioniterator.hh>

Public Types | |
| enum | PositionFlag { begin , end } |
| typedef IntersectionIterator::Intersection | Intersection |
| The type of objects we are iterating over. | |
Public Member Functions | |
| GlobalIntersectionIterator (const GridView &gridView, PositionFlag flag) | |
| Create begin or end iterator for given grid view. | |
| GlobalIntersectionIterator (const GridView &gridView, const ElementIterator &eIt, const ElementIterator &endEIt) | |
| Create iterator for given grid view. | |
| GlobalIntersectionIterator (const GlobalIntersectionIterator &other) | |
| Copy constructor. | |
| ~GlobalIntersectionIterator () | |
| void | increment () |
| Increment the pointer to the next intersection. | |
| bool | equals (const GlobalIntersectionIterator &other) const |
| const Intersection & | dereference () const |
| const GlobalIntersectionIterator & | operator= (const GlobalIntersectionIterator &other) |
| bool | containsInsideSubentity (int subEntity, int codim) const |
Protected Member Functions | |
| void | updateIntersection (const Intersection &intersection) |
| Update the stored intersection if we have to. | |
| void | initialIncrement () |
| Find first valid intersection. | |
| const Impl & | asImpl () const |
| Impl & | asImpl () |
Protected Attributes | |
| GridView | gridView_ |
| ElementIterator | eIt_ |
| ElementIterator | endEIt_ |
| IntersectionIterator * | nIt_ |
| Intersection | intersection_ |
| The intersection corresponding to the actual global intersection iterator. It is only set if dereferencing the intersection iterator is returning a temporary. | |
Detailed Description
class GlobalIntersectionIterator< GridView, Impl >
Base class for iterators on intersections of a grid view.
- Template Parameters
-
GridView The grid view on which this boundary patch lives Impl The Implementation derived from this class (CRTP).
The derived class Impl has to provide two methods
bool skipElement(const Element& e) bool skipIntersection(const Intersection& e)
that specify which elements and intersections should be skipped. It must call intitialIncrement() in its constructor in order to find the first valid intersection.
- Deprecated:
- This class is deprecated and will be removed after 2.11. Use Dune::Fufem::IntersectionSetIterator instead.
Member Typedef Documentation
◆ Intersection
| typedef IntersectionIterator::Intersection GlobalIntersectionIterator< GridView, Impl >::Intersection |
The type of objects we are iterating over.
Member Enumeration Documentation
◆ PositionFlag
| enum GlobalIntersectionIterator::PositionFlag |
Constructor & Destructor Documentation
◆ GlobalIntersectionIterator() [1/3]
|
inline |
Create begin or end iterator for given grid view.
The iterator does not necessarily point to a valid intersection after creation! In order to guarantee this you must call initialIncrement() from the constructor in the derived class. This can not be done here since it requires the skipXYZ() methods of the derived class that is not yet initialized.
- Parameters
-
gridView Iterate over the intersections of this grid view flag Create begin or end iterator for PositionFlag = begin or end, respectively.
◆ GlobalIntersectionIterator() [2/3]
|
inline |
Create iterator for given grid view.
The iterator does not necessarily point to a valid intersection after creation! In order to guarantee this you must call initialIncrement() from the constructor in the derived class. This can not be done here since it requires the skipXYZ() methods of the derived class that is not yet initialized.
- Parameters
-
gridView Iterate over the intersections of this grid view eIt Element iterator to the first element to consider endEIt Element iterator after the last element to consider
◆ GlobalIntersectionIterator() [3/3]
|
inline |
Copy constructor.
- Parameters
-
other Copy from this iterator
◆ ~GlobalIntersectionIterator()
|
inline |
Member Function Documentation
◆ asImpl() [1/2]
|
inlineprotected |
◆ asImpl() [2/2]
|
inlineprotected |
◆ containsInsideSubentity()
|
inline |
◆ dereference()
|
inline |
◆ equals()
|
inline |
◆ increment()
|
inline |
Increment the pointer to the next intersection.
◆ initialIncrement()
|
inlineprotected |
Find first valid intersection.
Checks if current intersection is valid and iterates to the first valid intersection if not. You must call this method in the constructor of the derived class!
◆ operator=()
|
inline |
◆ updateIntersection()
|
inlineprotected |
Update the stored intersection if we have to.
Member Data Documentation
◆ eIt_
|
protected |
◆ endEIt_
|
protected |
◆ gridView_
|
protected |
◆ intersection_
|
protected |
The intersection corresponding to the actual global intersection iterator. It is only set if dereferencing the intersection iterator is returning a temporary.
◆ nIt_
|
protected |
The documentation for this class was generated from the following file:
