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 #if DUNE_VERSION_NEWER(DUNE_GRID,2,3) 10 #include <dune/grid/common/entityseed.hh> 16 template<
int codim,
class Grd >
19 typedef typename std::remove_const< Grd >::type::Traits Traits;
22 static const int codimension = codim;
23 static const int dimension = Traits::dimension;
24 static const int mydimension = dimension - codimension;
25 static const int dimensionworld = Traits::dimensionworld;
28 typedef typename Traits::Grid Grid;
29 typedef typename Traits::template Codim< codim >::Entity Entity;
30 typedef typename Traits :: Index Index ;
32 static const Index defaultIndex = -1;
39 : index_( defaultIndex )
42 int index ()
const {
return index_ ; }
44 bool isValid()
const {
return index_ != defaultIndex; }
47 {
return index_ == other.index_; }
55 #endif // #ifndef DUNE_POLYHEDRALGRID_ENTITYSEED_HH Holds the implementation of the CpGrid as a pimple.
Definition: OpmParserIncludes.hpp:42
Definition: entityseed.hh:17