1#ifndef DUNE_FEM_GRIDPART_IDGRIDPART_ENTITY_HH
2#define DUNE_FEM_GRIDPART_IDGRIDPART_ENTITY_HH
8#include <dune/grid/common/entity.hh>
9#include <dune/grid/common/gridenums.hh>
22 template<
int codim,
int dim,
class Gr
idFamily >
27 typedef typename std::remove_const< GridFamily >::type::Traits
Traits;
36 static const int dimension = std::remove_const< GridFamily >::type::dimension;
40 static const int dimensionworld = std::remove_const< GridFamily >::type::dimensionworld;
48 typedef typename std::remove_const< GridFamily >::type::ctype
ctype;
51 typedef typename GridFamily::template Codim< codimension >::EntitySeed
EntitySeedType;
53 typedef typename Traits::template Codim< codimension >::Geometry
Geometry;
69 typedef typename HostGridPartType::template Codim< codimension >::EntityType
HostEntityType;
154 template<
int codim,
int dim,
class Gr
idFamily >
159 typedef typename std::remove_const< GridFamily >::type::Traits
Traits;
175 typedef typename HostGridPartType::template Codim< codimension >::EntityType
HostEntityType;
194 template<
int dim,
class Gr
idFamily >
213 typedef typename HostGridPartType::template Codim< codimension >::EntityType
HostEntityType;
221 typedef typename Traits::template Codim< codimension >::LocalGeometry
LocalGeometry;
249 template<
int codim >
252 return hostEntity().template count< codim >();
255 template<
int codim >
256 typename Traits::template Codim< codim >::Entity
259 typedef typename Traits::template Codim< codim >::Entity::Implementation EntityImpl;
260 return EntityImpl(
data(),
hostEntity().
template subEntity< codim >( i ) );
265 return hostEntity().hasBoundaryIntersections();
Definition: bindguard.hh:11
Definition: defaultgridpartentity.hh:22
Definition: idgridpart/entity.hh:25
int level() const
obtain the level of this entity
Definition: idgridpart/entity.hh:103
ExtraData data_
Definition: idgridpart/entity.hh:145
Traits::HostGridPartType HostGridPartType
Definition: idgridpart/entity.hh:59
static const int dimension
dimension of the grid
Definition: idgridpart/entity.hh:36
Geometry geometry() const
Definition: idgridpart/entity.hh:115
Traits::template Codim< codimension >::Geometry Geometry
type of corresponding geometry
Definition: idgridpart/entity.hh:53
const ExtraData & data() const
Definition: idgridpart/entity.hh:140
static const int mydimension
dimension of the entity
Definition: idgridpart/entity.hh:38
bool equals(const IdEntityBasic &rhs) const
check for equality
Definition: idgridpart/entity.hh:124
HostGridPartType::template Codim< codimension >::EntityType HostEntityType
type of corresponding host entity
Definition: idgridpart/entity.hh:69
static const int codimension
codimensioon of the entity
Definition: idgridpart/entity.hh:34
IdEntityBasic()=default
construct a null entity
std::remove_const< GridFamily >::type::ctype ctype
coordinate type of the grid
Definition: idgridpart/entity.hh:48
EntitySeedType seed() const
return EntitySeed of host grid entity
Definition: idgridpart/entity.hh:121
const HostEntityType & hostEntity() const
Definition: idgridpart/entity.hh:135
std::remove_const< GridFamily >::type::Traits Traits
Definition: idgridpart/entity.hh:27
PartitionType partitionType() const
obtain the partition type of this entity
Definition: idgridpart/entity.hh:109
static const int dimensionworld
dimension of the world
Definition: idgridpart/entity.hh:40
HostEntityType hostEntity_
Definition: idgridpart/entity.hh:146
GridFamily::template Codim< codimension >::EntitySeed EntitySeedType
type of corresponding entity seed
Definition: idgridpart/entity.hh:51
Traits::ExtraData ExtraData
Definition: idgridpart/entity.hh:62
GeometryType type() const
obtain the name of the corresponding reference element
Definition: idgridpart/entity.hh:97
IdEntityBasic(ExtraData data, HostEntityType hostEntity)
construct an initialized entity
Definition: idgridpart/entity.hh:83
Definition: idgridpart/entity.hh:156
IdEntity(ExtraData data, HostEntityType hostEntity)
Definition: idgridpart/entity.hh:181
IdEntity()=default
construct a null entity
Traits::ExtraData ExtraData
Definition: idgridpart/entity.hh:166
HostGridPartType::template Codim< codimension >::EntityType HostEntityType
type of corresponding host entity
Definition: idgridpart/entity.hh:175
std::remove_const< GridFamily >::type::Traits Traits
Definition: idgridpart/entity.hh:159
Traits::HostGridPartType HostGridPartType
Definition: idgridpart/entity.hh:163
Traits::template Codim< codim >::Entity subEntity(int i) const
Definition: idgridpart/entity.hh:257
Traits::template Codim< codimension >::LocalGeometry LocalGeometry
type of corresponding local geometry
Definition: idgridpart/entity.hh:221
BaseType::ExtraData ExtraData
Definition: idgridpart/entity.hh:203
BaseType::Traits Traits
Definition: idgridpart/entity.hh:199
HostGridPartType::template Codim< codimension >::EntityType HostEntityType
type of corresponding host entity
Definition: idgridpart/entity.hh:213
bool hasBoundaryIntersections() const
Definition: idgridpart/entity.hh:263
unsigned int subEntities(const unsigned int codim) const
Definition: idgridpart/entity.hh:244
IdEntity()=default
construct a null entity
BaseType::HostGridPartType HostGridPartType
Definition: idgridpart/entity.hh:200
IdEntity(ExtraData data, HostEntityType hostEntity)
construct an initialized entity
Definition: idgridpart/entity.hh:238
int count() const
Definition: idgridpart/entity.hh:250