- Home
- About DUNE
- Download
- Documentation
- Community
- Development
Enables iteration over all entities of a given codimension and level of a grid. See also the documentation of Dune::EntityPointer. More...
#include <dune/grid/common/leveliterator.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 | |
typedef LevelIteratorImp < codim, pitype, GridImp > | ImplementationType |
type of real implementation | |
Public Member Functions | |
LevelIterator & | operator++ () |
Preincrement operator. | |
Implementor interface | |
LevelIterator (const LevelIteratorImp< codim, pitype, const GridImp > &i) | |
copy constructor from LevelIteratorImp | |
Constructor & conversion | |
operator const EntityPointer< GridImp, base > & () const | |
Cast to EntityPointer with const base class of implementation as engine. | |
void | compactify () |
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 Dune::EnableIfInterOperable < typename LevelIteratorImp < codim, pitype, GridImp > ::EntityPointerImp, LevelIteratorImp< codim, pitype, GridImp >, typename LevelIteratorImp< codim, pitype, GridImp > ::EntityPointerImp >::type | base |
Protected Member Functions | |
ImplementationType & | getRealImp () |
return reference to the real implementation | |
const ImplementationType & | getRealImp () const |
return reference to the real implementation | |
Protected Attributes | |
LevelIteratorImp< codim, pitype, GridImp > | realIterator |
Friends | |
class | Dune::GenericLeafIterator< GridImp > |
class | GridDefaultImplementation< GridImp::dimension, GridImp::dimensionworld, typename GridImp::ctype, typename GridImp::GridFamily > |
Enables iteration over all entities of a given codimension and level of a grid. See also the documentation of Dune::EntityPointer.
typedef Dune::EnableIfInterOperable<typename LevelIteratorImp< codim, pitype, GridImp > ::EntityPointerImp,LevelIteratorImp< codim, pitype, GridImp > , typename LevelIteratorImp< codim, pitype, GridImp > ::EntityPointerImp>::type Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::base [protected, inherited] |
typedef GridImp ::template Codim< codim >::Entity Dune::EntityIterator< codim, GridImp , LevelIteratorImp< codim, pitype, GridImp > >::Entity [inherited] |
The Entity that this EntityPointer can point to.
Reimplemented from Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >.
typedef LevelIteratorImp< codim, pitype, GridImp > Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::ImplementationType [inherited] |
type of real implementation
anonymous enum [inherited] |
codimension of entity pointer
anonymous enum [inherited] |
Dune::LevelIterator< codim, pitype, GridImp, LevelIteratorImp >::LevelIterator | ( | const LevelIteratorImp< codim, pitype, const GridImp > & | i | ) | [inline] |
copy constructor from LevelIteratorImp
void Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::compactify | ( | ) | [inline, inherited] |
Use EntitySeed to store entity information.
References Dune::EntityPointer< GridImp, IteratorImp >::realIterator.
bool Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::equals | ( | const EntityPointer< GridImp, ItImp > & | rhs | ) | const [inline, inherited] |
Forward equality check to realIterator.
References Dune::EntityPointer< GridImp, IteratorImp >::realIterator.
const ImplementationType& Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::getRealImp | ( | ) | const [inline, protected, inherited] |
return reference to the real implementation
References Dune::EntityPointer< GridImp, IteratorImp >::realIterator.
ImplementationType& Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::getRealImp | ( | ) | [inline, protected, inherited] |
return reference to the real implementation
References Dune::EntityPointer< GridImp, IteratorImp >::realIterator.
int Dune::EntityPointer< GridImp, LevelIteratorImp< 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.
References Dune::EntityPointer< GridImp, IteratorImp >::realIterator.
Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::operator const EntityPointer< GridImp, base > & | ( | ) | const [inline, inherited] |
Cast to EntityPointer with const base class of implementation as engine.
bool Dune::EntityPointer< GridImp, LevelIteratorImp< 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.
References Dune::EntityPointer< GridImp, IteratorImp >::equals().
Entity& Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::operator* | ( | ) | const [inline, inherited] |
Dereferencing operator.
References Dune::EntityPointer< GridImp, IteratorImp >::realIterator.
LevelIterator& Dune::LevelIterator< codim, pitype, GridImp, LevelIteratorImp >::operator++ | ( | ) | [inline] |
Preincrement operator.
Reimplemented from Dune::EntityIterator< codim, GridImp, LevelIteratorImp< codim, pitype, GridImp > >.
Entity* Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::operator-> | ( | ) | const [inline, inherited] |
Pointer operator.
References Dune::EntityPointer< GridImp, IteratorImp >::realIterator.
bool Dune::EntityPointer< GridImp, LevelIteratorImp< 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.
References Dune::EntityPointer< GridImp, IteratorImp >::equals().
friend class Dune::GenericLeafIterator< GridImp > [friend, inherited] |
friend class GridDefaultImplementation< GridImp::dimension, GridImp::dimensionworld,typename GridImp::ctype,typename GridImp::GridFamily > [friend, inherited] |
LevelIteratorImp< codim, pitype, GridImp > Dune::EntityPointer< GridImp, LevelIteratorImp< codim, pitype, GridImp > >::realIterator [protected, inherited] |
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].