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 <dune/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 ) );
47 int index = entityImpl().seed().index();
50 if( index >= entityImpl().data()->size( codim ) )
51 entityImpl() = EntityImpl( entityImpl().data() );
53 entityImpl() = EntityImpl( entityImpl().data(), EntitySeed( index ) );
59 #endif // #ifndef DUNE_POLYHEDRALGRID_ITERATOR_HH
Definition: entitypointer.hh:18
Definition: iterator.hh:19
void increment()
increment
Definition: iterator.hh:45