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 >:
Dune::EntityIterator< codim, GridImp, LeafIteratorImp< codim, pitype, GridImp > > Dune::EntityPointer< GridImp, IteratorImp >

Public Types

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

Public Member Functions

LeafIteratoroperator++ ()
 Preincrement operator. More...
 
Implementor interface
 LeafIterator (const LeafIteratorImp< codim, pitype, const GridImp > &i)
 copy constructor from LevelIteratorImp More...
 
Dereferencing
Entityoperator* () const
 Dereferencing operator. More...
 
Entityoperator-> () const
 Pointer operator. More...
 
Compare methods
template<class ItImp >
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. More...
 
template<class ItImp >
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. More...
 
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. More...
 
Implementor interface
template<class ItImp >
bool equals (const EntityPointer< GridImp, ItImp > &rhs) const
 Forward equality check to realIterator. More...
 

Protected Types

typedef IteratorImp Implementation
 

Protected Member Functions

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

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
template<class GridImp, class IteratorImp>
typedef IteratorImp Dune::EntityPointer< GridImp, IteratorImp >::Implementation
protectedinherited

Member Enumeration Documentation

template<class GridImp, class IteratorImp>
anonymous enum
inherited

codimension of entity pointer

Enumerator
codimension 
template<class GridImp, class IteratorImp>
anonymous enum
inherited
Enumerator
codim 

The codimension of this EntityPointer.

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

template<class GridImp, class IteratorImp>
template<class ItImp >
bool Dune::EntityPointer< GridImp, IteratorImp >::equals ( const EntityPointer< GridImp, ItImp > &  rhs) const
inlineinherited
template<class GridImp, class IteratorImp>
Implementation& Dune::EntityPointer< GridImp, IteratorImp >::impl ( )
inlineprotectedinherited

return reference to the real implementation

template<class GridImp, class IteratorImp>
const Implementation& Dune::EntityPointer< GridImp, IteratorImp >::impl ( ) const
inlineprotectedinherited

return reference to the real implementation

template<class GridImp, class IteratorImp>
int Dune::EntityPointer< GridImp, IteratorImp >::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.

template<class GridImp, class IteratorImp>
template<class ItImp >
bool Dune::EntityPointer< GridImp, IteratorImp >::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.

template<class GridImp, class IteratorImp>
Entity& Dune::EntityPointer< GridImp, IteratorImp >::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
template<class GridImp, class IteratorImp>
Entity* Dune::EntityPointer< GridImp, IteratorImp >::operator-> ( ) const
inlineinherited

Pointer operator.

template<class GridImp, class IteratorImp>
template<class ItImp >
bool Dune::EntityPointer< GridImp, IteratorImp >::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

template<class GridImp, class IteratorImp>
Implementation Dune::EntityPointer< GridImp, IteratorImp >::realIterator
protectedinherited

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