Dune Core Modules (2.4.1)

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

enum  
 Codimension of entity pointed to.
 
typedef IdentityGridEntityPointer EntityPointerImp
 

Public Member Functions

 IdentityGridLevelIterator (const GridImp *identityGrid, int level)
 Constructor.
 
 IdentityGridLevelIterator (const GridImp *identityGrid, int level, bool endDummy)
 Constructor which create the end iterator. More...
 
void increment ()
 prefix increment
 
bool equals (const IdentityGridEntityPointer &i) const
 equality
 
bool equals (const IdentityGridEntityPointer< codim, GridImp, ForeignHostGridEntityPointer > &entityPointer) const
 equality with EntityPointer based on different host EntityPointer
 
Entity dereference () const
 dereferencing
 
void compactify ()
 Make this pointer as small as possible.
 
int level () const
 ask for level of entity
 

Protected Attributes

HostGridEntityPointer hostEntityPointer_
 host EntityPointer
 

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

◆ EntityPointerImp

typedef IdentityGridEntityPointer Dune::IdentityGridEntityPointer< codim, GridImp, GridImp::HostGridType::Traits::template Codim< codim >::template Partition< pitype >::LevelIterator >::EntityPointerImp
inherited

export the type of the EntityPointer Implementation. Necessary for the typeconversion between Iterators and EntityPointer

Constructor & Destructor Documentation

◆ IdentityGridLevelIterator()

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

The documentation for this class was generated from the following files:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)