dune-grid 2.9.0
|
interface class for an iterator over grid entities More...
#include <dune/grid/common/entityiterator.hh>
Public Types | |
typedef IteratorImp | Implementation |
type of underlying implementation More... | |
typedef Grid::template Codim< codim >::Entity | Entity |
typedef std::conditional< std::is_lvalue_reference< decltype(realIterator.dereference())>::value, constEntity &, Entity >::type | Reference |
Type of the reference used when derefencing the Ptr. More... | |
Public Member Functions | |
Implementation & | impl () |
access to the underlying implementation More... | |
const Implementation & | impl () const |
access to the underlying implementation More... | |
EntityIterator & | operator++ () |
prefix increment operator More... | |
EntityIterator | operator++ (int) |
postfix increment operator More... | |
const Entity & | operator* () const |
Dereferencing operator. More... | |
const Entity & | operator-> () const |
Pointer operator. More... | |
bool | operator== (const EntityIterator &rhs) const |
Checks for equality. More... | |
bool | operator!= (const EntityIterator &rhs) const |
Checks for inequality. More... | |
Implementor's interface | |
EntityIterator () | |
default construct (undefined) iterator More... | |
EntityIterator (const IteratorImp &imp) | |
copy constructor from implementaton More... | |
Protected Attributes | |
IteratorImp | realIterator |
interface class for an iterator over grid entities
An entity iterator is an iterator over a subset of entities within a hierarchical grid.
Examples of entity iterators are:
codim | codimension of entities this iterator walks over |
Grid | type of the grid implementation |
IteratorImp | type of the iterator implementation |
typedef Grid::template Codim<codim>::Entity Dune::EntityIterator< codim, Grid, IteratorImp >::Entity |
typedef IteratorImp Dune::EntityIterator< codim, Grid, IteratorImp >::Implementation |
type of underlying implementation
typedef std::conditional<std::is_lvalue_reference<decltype(realIterator.dereference())>::value,constEntity&,Entity>::type Dune::EntityIterator< codim, Grid, IteratorImp >::Reference |
Type of the reference used when derefencing the Ptr.
|
inline |
default construct (undefined) iterator
|
inline |
copy constructor from implementaton
|
inline |
access to the underlying implementation
|
inline |
access to the underlying implementation
|
inline |
Checks for inequality.
const Entity & Dune::EntityIterator< codim, Grid, IteratorImp >::operator* | ( | ) | const |
Dereferencing operator.
|
inline |
prefix increment operator
|
inline |
postfix increment operator
const Entity & Dune::EntityIterator< codim, Grid, IteratorImp >::operator-> | ( | ) | const |
Pointer operator.
|
inline |
Checks for equality.
|
protected |