3 #ifndef DUNE_POLYHEDRALGRID_ENTITYSEED_HH
4 #define DUNE_POLYHEDRALGRID_ENTITYSEED_HH
6 #include <dune/common/version.hh>
7 #include <dune/common/typetraits.hh>
9 #include <dune/grid/common/entityseed.hh>
14 template<
int codim,
class Grd >
17 typedef typename std::remove_const< Grd >::type::Traits Traits;
20 static const int codimension = codim;
21 static const int dimension = Traits::dimension;
22 static const int mydimension = dimension - codimension;
23 static const int dimensionworld = Traits::dimensionworld;
26 typedef typename Traits::Grid Grid;
27 typedef typename Traits::template Codim< codim >::Entity Entity;
28 typedef typename Traits :: Index Index ;
30 static const Index defaultIndex = -1;
37 : index_( defaultIndex )
40 int index ()
const {
return index_ ; }
44 bool isValid()
const {
return index_ > defaultIndex; }
47 {
return index_ == other.index_; }
Definition: entityseed.hh:16
Copyright 2019 Equinor AS.
Definition: CartesianIndexMapper.hpp:10