3#ifndef DUNE_POLYHEDRALGRID_ITERATOR_HH
4#define DUNE_POLYHEDRALGRID_ITERATOR_HH
6#include <dune/geometry/referenceelements.hh>
8#include <dune/grid/common/entityiterator.hh>
10#include <opm/grid/polyhedralgrid/entitypointer.hh>
18 template<
int codim,
class Gr
id, PartitionIteratorType pitype >
26 typedef typename Base::ExtraData ExtraData;
27 using Base :: entityImpl;
30 typedef typename Grid::Traits::template Codim<codim>::EntitySeed EntitySeed;
31 typedef typename Grid::Traits::template Codim<codim>::EntityImpl EntityImpl;
37 entityImpl() = EntityImpl( data, EntitySeed( 0 ) );
43 int index = entityImpl().seed().index();
46 if( index >= entityImpl().data()->size( codim ) )
47 entityImpl() = EntityImpl( entityImpl().data() );
49 entityImpl() = EntityImpl( entityImpl().data(), EntitySeed( index ) );
Definition entitypointer.hh:19
Definition iterator.hh:21
void increment()
increment
Definition iterator.hh:41
The namespace Dune is the main namespace for all Dune code.
Definition CartesianIndexMapper.hpp:10