dune-grid  2.2.1
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::LeafIterator< codim, pitype, GridImp, LeafIteratorImp > Class Template Reference

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>

Inheritance diagram for Dune::LeafIterator< codim, pitype, GridImp, LeafIteratorImp >:
Inheritance graph

Public Types

typedef GridImp::template
Codim< codim >::Entity 
Entity
enum  
 codimension of entity pointer More...
enum  

Public Member Functions

LeafIteratoroperator++ ()
 Preincrement operator.
Implementor interface
 LeafIterator (const LeafIteratorImp< codim, pitype, const GridImp > &i)
 copy constructor from LevelIteratorImp
Dereferencing
Entityoperator* () const
 Dereferencing operator.
Entityoperator-> () 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

Implementationimpl ()
 return reference to the real implementation
const Implementationimpl () const
 return reference to the real implementation

Protected Attributes

Implementation realIterator

Detailed Description

template<int codim, PartitionIteratorType pitype, class GridImp, template< int, PartitionIteratorType, class > class LeafIteratorImp>
class Dune::LeafIterator< codim, pitype, GridImp, LeafIteratorImp >

Enables iteration over all leaf entities of a codimension zero of a grid. See also the documentation of Dune::EntityPointer.

Note
The LeafIterator interface is deprecated. Use the EntityIterator interface instead.

Member Typedef Documentation

typedef GridImp ::template Codim< codim >::Entity Dune::EntityIterator< codim, GridImp , LeafIteratorImp< codim, pitype, GridImp > >::Entity
inherited
typedef LeafIteratorImp< codim, pitype, GridImp > Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::Implementation
protectedinherited

Member Enumeration Documentation

anonymous enum
inherited

codimension of entity pointer

anonymous enum
inherited

Constructor & Destructor Documentation

template<int codim, PartitionIteratorType pitype, class GridImp , template< int, PartitionIteratorType, class > class LeafIteratorImp>
Dune::LeafIterator< codim, pitype, GridImp, LeafIteratorImp >::LeafIterator ( const LeafIteratorImp< codim, pitype, const GridImp > &  i)
inline

copy constructor from LevelIteratorImp

Deprecated:

Member Function Documentation

bool Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::equals ( const EntityPointer< GridImp, ItImp > &  rhs) const
inlineinherited

Forward equality check to realIterator.

Implementation& Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::impl ( )
inlineprotectedinherited

return reference to the real implementation

const Implementation& Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::impl ( ) const
inlineprotectedinherited

return reference to the real implementation

int Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::level ( ) const
inlineinherited

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
inlineinherited

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
inlineinherited

Dereferencing operator.

template<int codim, PartitionIteratorType pitype, class GridImp , template< int, PartitionIteratorType, class > class LeafIteratorImp>
LeafIterator& Dune::LeafIterator< codim, pitype, GridImp, LeafIteratorImp >::operator++ ( )
inline
Entity* Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::operator-> ( ) const
inlineinherited

Pointer operator.

bool Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::operator== ( const EntityPointer< GridImp, ItImp > &  rhs) const
inlineinherited

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.

Member Data Documentation

Implementation Dune::EntityPointer< GridImp, LeafIteratorImp< codim, pitype, GridImp > >::realIterator
protectedinherited

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