Dune Core Modules (2.3.1)

Dune::LevelIterator< codim, pitype, GridImp, LevelIteratorImp > Class Template Reference

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

enum  
 codimension of entity pointer
 
enum  { codim = IteratorImp::codimension }
 

Public Member Functions

LevelIteratoroperator++ ()
 Preincrement operator. More...
 
Dereferencing
Entityoperator* () const
 Dereferencing operator.
 
Entityoperator-> () const
 Pointer operator.
 
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.
 
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.
 
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
template<class ItImp >
bool equals (const EntityPointer< GridImp, ItImp > &rhs) const
 Forward equality check to realIterator.
 

Protected Member Functions

Implementation & impl ()
 return reference to the real implementation
 
const Implementation & impl () const
 return reference to the real implementation
 

Detailed Description

template<int codim, PartitionIteratorType pitype, class GridImp, template< int, PartitionIteratorType, class > class LevelIteratorImp>
class Dune::LevelIterator< codim, pitype, GridImp, LevelIteratorImp >

Enables iteration over all entities of a given codimension and level of a grid. See also the documentation of Dune::EntityPointer.

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

Member Enumeration Documentation

◆ anonymous enum

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

The codimension of this EntityPointer.

Member Function Documentation

◆ operator++()

template<int codim, PartitionIteratorType pitype, class GridImp , template< int, PartitionIteratorType, class > class LevelIteratorImp>
LevelIterator& Dune::LevelIterator< codim, pitype, GridImp, LevelIteratorImp >::operator++ ( )
inline

Preincrement operator.

Note
Forwarded to LevelIteratorImp.increment()

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 14, 22:30, 2024)