dune-grid 2.9.0
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::IdentityGridLevelIterator< codim, pitype, GridImp > Class Template Reference

Iterator over all entities of a given codimension and level of a grid. More...

#include <dune/grid/identitygrid/identitygridleveliterator.hh>

Public Types

typedef GridImp::template Codim< codim >::Entity Entity
 

Public Member Functions

 IdentityGridLevelIterator (const GridImp *identityGrid, int level)
 Constructor. More...
 
 IdentityGridLevelIterator (const GridImp *identityGrid, int level, bool endDummy)
 Constructor which create the end iterator. More...
 
void increment ()
 prefix increment More...
 
Entity dereference () const
 dereferencing More...
 
bool equals (const IdentityGridLevelIterator &i) const
 equality More...
 

Static Public Attributes

static constexpr int codimension = codim
 

Detailed Description

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

Iterator over all entities of a given codimension and level of a grid.

Member Typedef Documentation

◆ Entity

template<int codim, PartitionIteratorType pitype, class GridImp >
typedef GridImp::template Codim<codim>::Entity Dune::IdentityGridLevelIterator< codim, pitype, GridImp >::Entity

Constructor & Destructor Documentation

◆ IdentityGridLevelIterator() [1/2]

template<int codim, PartitionIteratorType pitype, class GridImp >
Dune::IdentityGridLevelIterator< codim, pitype, GridImp >::IdentityGridLevelIterator ( const GridImp *  identityGrid,
int  level 
)
inlineexplicit

Constructor.

◆ IdentityGridLevelIterator() [2/2]

template<int codim, PartitionIteratorType pitype, class GridImp >
Dune::IdentityGridLevelIterator< codim, pitype, GridImp >::IdentityGridLevelIterator ( const GridImp *  identityGrid,
int  level,
bool  endDummy 
)
inlineexplicit

Constructor which create the end iterator.

Parameters
endDummyHere only to distinguish it from the other constructor
identityGridpointer to IdentityGrid instance
levelgrid level on which the iterator shall be created

Member Function Documentation

◆ dereference()

template<int codim, PartitionIteratorType pitype, class GridImp >
Entity Dune::IdentityGridLevelIterator< codim, pitype, GridImp >::dereference ( ) const
inline

dereferencing

◆ equals()

template<int codim, PartitionIteratorType pitype, class GridImp >
bool Dune::IdentityGridLevelIterator< codim, pitype, GridImp >::equals ( const IdentityGridLevelIterator< codim, pitype, GridImp > &  i) const
inline

equality

◆ increment()

template<int codim, PartitionIteratorType pitype, class GridImp >
void Dune::IdentityGridLevelIterator< codim, pitype, GridImp >::increment ( )
inline

prefix increment

Member Data Documentation

◆ codimension

template<int codim, PartitionIteratorType pitype, class GridImp >
constexpr int Dune::IdentityGridLevelIterator< codim, pitype, GridImp >::codimension = codim
staticconstexpr

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