dune-grid
2.2.0
|
Enables iteration over all leaf entities of a codimension zero of a grid. See also the documentation of Dune::EntityPointer. More...
#include <dune/grid/common/leafiterator.hh>
Public Types | |
typedef GridImp::template Codim< codim >::Entity | Entity |
The Entity that this EntityPointer can point to. | |
enum | |
codimension of entity pointer More... | |
enum | |
Public Member Functions | |
LeafIterator & | operator++ () |
Preincrement operator. | |
Implementor interface | |
LeafIterator (const LeafIteratorImp< codim, pitype, const GridImp > &i) | |
copy constructor from LevelIteratorImp | |
Dereferencing | |
Entity & | operator* () const |
Dereferencing operator. | |
Entity * | operator-> () const |
Pointer operator. | |
Compare methods | |
bool | operator== (const EntityPointer< GridImp, ItImp > &rhs) const |
Checks for equality. Only works for EntityPointers and iterators on the same grid. Due to the conversion operators one can compare all kinds of iterators and EntityPointer. | |
bool | operator!= (const EntityPointer< GridImp, ItImp > &rhs) const |
Checks for inequality. Only works for EntityPointers and iterators on the same grid. Due to the conversion operators one can compare all kinds of iterators and EntityPointer. | |
Query methods | |
int | level () const |
Ask for level of entity. This method is redundant and is only there for efficiency reasons. It allows an implementation to return the level without actually constructing the entity. | |
Implementor interface | |
bool | equals (const EntityPointer< GridImp, ItImp > &rhs) const |
Forward equality check to realIterator. | |
Protected Types | |
typedef LeafIteratorImp< codim, pitype, GridImp > | Implementation |
Protected Member Functions | |
Implementation & | impl () |
return reference to the real implementation | |
const Implementation & | impl () const |
return reference to the real implementation | |
Protected Attributes | |
Implementation | realIterator |
Friends | |
class | Dune::GenericLeafIterator< GridImp > |
class | GridDefaultImplementation< GridImp::dimension, GridImp::dimensionworld, typename GridImp::ctype, typename GridImp::GridFamily > |
Enables iteration over all leaf entities of a codimension zero of a grid. See also the documentation of Dune::EntityPointer.
typedef GridImp ::template Codim< codim >::Entity Dune::EntityIterator< codim, GridImp , LeafIteratorImp< codim, pitype, GridImp > >::Entity [inherited] |
The Entity that this EntityPointer can point to.
Reimplemented from Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >.
typedef LeafIteratorImp< codim, pitype, GridImp > Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::Implementation [protected, inherited] |
anonymous enum [inherited] |
codimension of entity pointer
anonymous enum [inherited] |
Dune::LeafIterator< codim, pitype, GridImp, LeafIteratorImp >::LeafIterator | ( | const LeafIteratorImp< codim, pitype, const GridImp > & | i | ) | [inline] |
copy constructor from LevelIteratorImp
bool Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::equals | ( | const EntityPointer< GridImp, ItImp > & | rhs | ) | const [inline, inherited] |
Forward equality check to realIterator.
Implementation& Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::impl | ( | ) | [inline, protected, inherited] |
return reference to the real implementation
const Implementation& Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::impl | ( | ) | const [inline, protected, inherited] |
return reference to the real implementation
int Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::level | ( | ) | const [inline, inherited] |
Ask for level of entity. This method is redundant and is only there for efficiency reasons. It allows an implementation to return the level without actually constructing the entity.
bool Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::operator!= | ( | const EntityPointer< GridImp, ItImp > & | rhs | ) | const [inline, inherited] |
Checks for inequality. Only works for EntityPointers and iterators on the same grid. Due to the conversion operators one can compare all kinds of iterators and EntityPointer.
Entity& Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::operator* | ( | ) | const [inline, inherited] |
Dereferencing operator.
LeafIterator& Dune::LeafIterator< codim, pitype, GridImp, LeafIteratorImp >::operator++ | ( | ) | [inline] |
Preincrement operator.
Reimplemented from Dune::EntityIterator< codim, GridImp, LeafIteratorImp< codim, pitype, GridImp > >.
References Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::realIterator.
Entity* Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::operator-> | ( | ) | const [inline, inherited] |
Pointer operator.
bool Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::operator== | ( | const EntityPointer< GridImp, ItImp > & | rhs | ) | const [inline, inherited] |
Checks for equality. Only works for EntityPointers and iterators on the same grid. Due to the conversion operators one can compare all kinds of iterators and EntityPointer.
friend class Dune::GenericLeafIterator< GridImp > [friend, inherited] |
friend class GridDefaultImplementation< GridImp::dimension, GridImp::dimensionworld,typename GridImp::ctype,typename GridImp::GridFamily > [friend, inherited] |
Implementation Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::realIterator [protected, inherited] |