dune-grid  2.2.1
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::GeoGrid::HierarchicIterator< Grid > Class Template Reference

#include <dune/grid/geometrygrid/iterator.hh>

Inheritance diagram for Dune::GeoGrid::HierarchicIterator< Grid >:
Dune::EntityPointer< HierarchicIteratorTraits< Grid > >

Public Types

enum  
 codimension of entity pointer More...
enum  
typedef IteratorImp::Entity Entity
 The Entity that this EntityPointer can point to.

Public Member Functions

 HierarchicIterator (const Grid &grid, const HostEntityIterator &hostEntityIterator)
void increment ()
Dereferencing
Entityoperator* () const
 Dereferencing operator.
Entityoperator-> () const
 Pointer operator.
Compare methods
bool operator== (const EntityPointer< HierarchicIteratorTraits< Grid >, 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< HierarchicIteratorTraits< Grid >, 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< HierarchicIteratorTraits< Grid >, ItImp > &rhs) const
 Forward equality check to realIterator.

Protected Types

typedef Base::EntityImpl EntityImpl
typedef Traits::HostEntityIterator HostEntityIterator
typedef IteratorImp Implementation

Protected Member Functions

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

Protected Attributes

Implementation realIterator

Member Typedef Documentation

typedef IteratorImp::Entity Dune::EntityPointer< HierarchicIteratorTraits< Grid > , IteratorImp >::Entity
inherited

The Entity that this EntityPointer can point to.

template<class Grid >
typedef Base::EntityImpl Dune::GeoGrid::HierarchicIterator< Grid >::EntityImpl
protected
typedef IteratorImp Dune::EntityPointer< HierarchicIteratorTraits< Grid > , IteratorImp >::Implementation
protectedinherited

Member Enumeration Documentation

anonymous enum
inherited

codimension of entity pointer

anonymous enum
inherited

Constructor & Destructor Documentation

template<class Grid >
Dune::GeoGrid::HierarchicIterator< Grid >::HierarchicIterator ( const Grid grid,
const HostEntityIterator hostEntityIterator 
)
inline

Member Function Documentation

bool Dune::EntityPointer< HierarchicIteratorTraits< Grid > , IteratorImp >::equals ( const EntityPointer< HierarchicIteratorTraits< Grid > , ItImp > &  rhs) const
inlineinherited

Forward equality check to realIterator.

Implementation& Dune::EntityPointer< HierarchicIteratorTraits< Grid > , IteratorImp >::impl ( )
inlineprotectedinherited

return reference to the real implementation

const Implementation& Dune::EntityPointer< HierarchicIteratorTraits< Grid > , IteratorImp >::impl ( ) const
inlineprotectedinherited

return reference to the real implementation

template<class Grid >
void Dune::GeoGrid::HierarchicIterator< Grid >::increment ( )
inline
int Dune::EntityPointer< HierarchicIteratorTraits< Grid > , 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.

bool Dune::EntityPointer< HierarchicIteratorTraits< Grid > , IteratorImp >::operator!= ( const EntityPointer< HierarchicIteratorTraits< Grid > , 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< HierarchicIteratorTraits< Grid > , IteratorImp >::operator* ( ) const
inlineinherited

Dereferencing operator.

Entity* Dune::EntityPointer< HierarchicIteratorTraits< Grid > , IteratorImp >::operator-> ( ) const
inlineinherited

Pointer operator.

bool Dune::EntityPointer< HierarchicIteratorTraits< Grid > , IteratorImp >::operator== ( const EntityPointer< HierarchicIteratorTraits< Grid > , 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< HierarchicIteratorTraits< Grid > , IteratorImp >::realIterator
protectedinherited

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