1 #ifndef DUNE_FOAMGRID_ENTITY_SEED_HH
2 #define DUNE_FOAMGRID_ENTITY_SEED_HH
19 template<
int codim,
class Gr
idImp>
22 enum { dimgrid = GridImp::dimension };
23 enum { dimworld = GridImp::dimensionworld };
24 enum { mydim = dimgrid-codim };
40 : target_(entity.target_)
50 return target_ !=
nullptr;
60 const EntityImplType* target_;
The FoamGridEntity class.
The implementation of entities in a FoamGrid.
Definition: foamgridentity.hh:54
The EntitySeed class provides the minmal information needed to restore an Entity using the grid.
Definition: foamgridentityseed.hh:21
bool isValid() const
check whether it is safe to create an Entity from this Seed
Definition: foamgridentityseed.hh:48
FoamGridEntitySeed(const FoamGridEntity< codim, dimgrid, GridImp > *target)
Definition: foamgridentityseed.hh:43
FoamGridEntitySeed()
default construct an invalid entity seed
Definition: foamgridentityseed.hh:34
const EntityImplType * target() const
Access to the underlying FoamGrid data structure.
Definition: foamgridentityseed.hh:54
@ codimension
Definition: foamgridentityseed.hh:31
FoamGridEntitySeed(const FoamGridEntity< codim, dimgrid, GridImp > &entity)
construct entity seed from entity
Definition: foamgridentityseed.hh:39
The actual entity implementation.
Definition: foamgridvertex.hh:47