Dune-Fufem 2.11-git
Loading...
Searching...
No Matches
BoundaryIterator< GridView > Class Template Reference

Iterator of boundary intersections of grid view. More...

#include <dune/fufem/boundaryiterator.hh>

Inheritance diagram for BoundaryIterator< GridView >:
Inheritance graph

Public Types

typedef Base::PositionFlag PositionFlag
 
typedef Base::Intersection Intersection
 The type of objects we are iterating over.
 
typedef std::forward_iterator_tag iterator_category
 
typedef typename std::remove_const< V >::type value_type
 
typedef D difference_type
 
typedef V * pointer
 
typedef R reference
 
typedef T DerivedType
 
typedef V Value
 
typedef V * Pointer
 
typedef D DifferenceType
 
typedef R Reference
 

Public Member Functions

 BoundaryIterator (const GridView &gridView, PositionFlag flag)
 Create begin or end iterator for given grid view.
 
 BoundaryIterator (const GridView &gridView, const ElementIterator &eIt, const ElementIterator &endEIt)
 Create iterator for given grid view.
 
bool skipElement (const Element &e)
 
bool skipIntersection (const Intersection &i)
 
void increment ()
 Increment the pointer to the next intersection.
 
bool equals (const GlobalIntersectionIterator &other) const
 
const Intersectiondereference () const
 
bool containsInsideSubentity (int subEntity, int codim) const
 
constexpr Reference operator* () const
 
constexpr Pointer operator-> () const
 
constexpr DerivedTypeoperator++ ()
 
constexpr DerivedType operator++ (int)
 

Protected Member Functions

void updateIntersection (const Intersection &intersection)
 Update the stored intersection if we have to.
 
void initialIncrement ()
 Find first valid intersection.
 
const BoundaryIterator< GridView > & asImpl () const
 
BoundaryIterator< GridView > & 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

template<class GridView>
class BoundaryIterator< GridView >

Iterator of boundary intersections of grid view.

Template Parameters
GridViewThe grid view on which this boundary patch lives
Deprecated:
This class is deprecated and will be removed after 2.11. Use Dune::Fufem::Boundary<GridView> instead.

Member Typedef Documentation

◆ Intersection

template<class GridView >
typedef Base::Intersection BoundaryIterator< GridView >::Intersection

The type of objects we are iterating over.

◆ PositionFlag

template<class GridView >
typedef Base::PositionFlag BoundaryIterator< GridView >::PositionFlag

Constructor & Destructor Documentation

◆ BoundaryIterator() [1/2]

template<class GridView >
BoundaryIterator< GridView >::BoundaryIterator ( const GridView &  gridView,
PositionFlag  flag 
)
inline

Create begin or end iterator for given grid view.

Parameters
gridViewIterate over the intersections of this grid view
flagCreate begin or end iterator for PositionFlag = begin or end, respectively.

◆ BoundaryIterator() [2/2]

template<class GridView >
BoundaryIterator< GridView >::BoundaryIterator ( const GridView &  gridView,
const ElementIterator &  eIt,
const ElementIterator &  endEIt 
)
inline

Create iterator for given grid view.

Parameters
gridViewIterate over the intersections of this grid view
eItElement iterator to the first element to consider
endEItElement iterator after the last element to consider

Member Function Documentation

◆ asImpl() [1/2]

BoundaryIterator< GridView > & GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::asImpl ( )
inlineprotectedinherited

◆ asImpl() [2/2]

const BoundaryIterator< GridView > & GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::asImpl ( ) const
inlineprotectedinherited

◆ containsInsideSubentity()

bool GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::containsInsideSubentity ( int  subEntity,
int  codim 
) const
inlineinherited

◆ dereference()

const Intersection & GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::dereference ( ) const
inlineinherited

◆ equals()

bool GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::equals ( const GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > > &  other) const
inlineinherited

◆ increment()

void GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::increment ( )
inlineinherited

Increment the pointer to the next intersection.

◆ initialIncrement()

void GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::initialIncrement ( )
inlineprotectedinherited

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!

◆ skipElement()

template<class GridView >
bool BoundaryIterator< GridView >::skipElement ( const Element &  e)
inline

◆ skipIntersection()

template<class GridView >
bool BoundaryIterator< GridView >::skipIntersection ( const Intersection i)
inline

◆ updateIntersection()

void GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::updateIntersection ( const Intersection intersection)
inlineprotectedinherited

Update the stored intersection if we have to.

Member Data Documentation

◆ eIt_

ElementIterator GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::eIt_
protectedinherited

◆ endEIt_

ElementIterator GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::endEIt_
protectedinherited

◆ gridView_

GridView GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::gridView_
protectedinherited

◆ intersection_

Intersection GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::intersection_
protectedinherited

The intersection corresponding to the actual global intersection iterator. It is only set if dereferencing the intersection iterator is returning a temporary.

◆ nIt_

IntersectionIterator* GlobalIntersectionIterator< GridView, BoundaryIterator< GridView > >::nIt_
protectedinherited

The documentation for this class was generated from the following file: