1 #ifndef DUNE_SPGRID_ENTITYSEED_HH
2 #define DUNE_SPGRID_ENTITYSEED_HH
6 #include <dune/common/typetraits.hh>
30 template<
int codim,
class Grd >
34 typedef typename std::remove_const< Grd >::type
Grid;
40 static const int dimension = ReferenceCube::dimension;
49 typedef typename Grid::Traits::template Codim< codimension >::Entity
Entity;
75 bool isValid ()
const {
return (level_ >= 0); }
107 return partitionNumber_;
113 unsigned int partitionNumber_;
Definition: iostream.hh:7
entity seed for SPGrid
Definition: entityseed.hh:32
std::remove_const< Grd >::type Grid
type of grid this entity seed belongs to
Definition: entityseed.hh:34
static const int dimension
dimension of the grid
Definition: entityseed.hh:40
bool isValid() const
check whether this seed generates a valid entity
Definition: entityseed.hh:75
SPEntitySeed()
default constructor
Definition: entityseed.hh:58
ReferenceCube::MultiIndex MultiIndex
Definition: entityseed.hh:52
Grid::Traits::ReferenceCube ReferenceCube
Definition: entityseed.hh:37
MultiIndex id() const
Definition: entityseed.hh:93
static const int dimensionworld
world dimension of the grid
Definition: entityseed.hh:46
static const int mydimension
dimension of the seeded entity
Definition: entityseed.hh:44
SPEntitySeed(const int level, const MultiIndex &id, const unsigned int partitionNumber)
Definition: entityseed.hh:70
static const int codimension
codimension of the seeded entity
Definition: entityseed.hh:42
Grid::Traits::template Codim< codimension >::Entity Entity
type of the seeded entity
Definition: entityseed.hh:49
unsigned int partitionNumber() const
Definition: entityseed.hh:104
int level() const
Definition: entityseed.hh:82