|
dune-grid 2.10
|
interface class for an iterator over grid entities More...
#include <dune/grid/common/entityiterator.hh>
Public Types | |
| typedef IteratorImp | Implementation |
| type of underlying implementation | |
| 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 dereferencing the Ptr. | |
Public Member Functions | |
| Implementation & | impl () |
| access to the underlying implementation | |
| const Implementation & | impl () const |
| access to the underlying implementation | |
| EntityIterator & | operator++ () |
| prefix increment operator | |
| EntityIterator | operator++ (int) |
| postfix increment operator | |
| const Entity & | operator* () const |
| Dereferencing operator. | |
| const Entity & | operator-> () const |
| Pointer operator. | |
| bool | operator== (const EntityIterator &rhs) const |
| Checks for equality. | |
| bool | operator!= (const EntityIterator &rhs) const |
| Checks for inequality. | |
Implementor's interface | |
| EntityIterator () | |
| default construct (undefined) iterator | |
| EntityIterator (const IteratorImp &imp) | |
| copy constructor from implementation | |
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 dereferencing the Ptr.
|
inline |
default construct (undefined) iterator
|
inline |
copy constructor from implementation
|
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 |