5#ifndef DUNE_IDENTITY_GRID_ENTITY_SEED_HH
6#define DUNE_IDENTITY_GRID_ENTITY_SEED_HH
22 template<
int codim,
class Gr
idImp>
28 typedef typename GridImp::HostGridType::Traits::template Codim<codim>::Entity
HostEntity;
31 typedef typename GridImp::HostGridType::Traits::template Codim<codim>::EntitySeed
HostEntitySeed;
50 hostEntitySeed_(hostEntity.seed())
58 return hostEntitySeed_;
66 return hostEntitySeed_.isValid();
Include standard header files.
Definition: agrid.hh:60
The EntitySeed class provides the minimal information needed to restore an Entity using the grid.
Definition: identitygridentityseed.hh:24
static constexpr int codimension
Definition: identitygridentityseed.hh:35
IdentityGridEntitySeed()
Construct an empty (i.e. isValid() == false) seed.
Definition: identitygridentityseed.hh:40
bool isValid() const
Check whether it is safe to create an Entity from this Seed.
Definition: identitygridentityseed.hh:64
GridImp::HostGridType::Traits::template Codim< codim >::Entity HostEntity
Definition: identitygridentityseed.hh:28
IdentityGridEntitySeed(const HostEntity &hostEntity)
Create EntitySeed from hostgrid Entity.
Definition: identitygridentityseed.hh:49
const HostEntitySeed & hostEntitySeed() const
Get stored HostEntitySeed.
Definition: identitygridentityseed.hh:56
GridImp::HostGridType::Traits::template Codim< codim >::EntitySeed HostEntitySeed
Definition: identitygridentityseed.hh:31