1 #ifndef DUNE_FEM_GRIDPART_IDGRIDPART_ENTITY_HH 2 #define DUNE_FEM_GRIDPART_IDGRIDPART_ENTITY_HH 8 #include <dune/common/nullptr.hh> 11 #include <dune/grid/common/entity.hh> 12 #include <dune/grid/common/gridenums.hh> 26 template<
int codim,
int dim,
class Gr
idFamily >
31 typedef typename std::remove_const< GridFamily >::type::Traits
Traits;
40 static const int dimension = std::remove_const< GridFamily >::type::dimension;
44 static const int dimensionworld = std::remove_const< GridFamily >::type::dimensionworld;
51 typedef typename std::remove_const< GridFamily >::type::ctype
ctype;
55 typedef typename GridFamily::template Codim< codimension >::EntitySeed
EntitySeedType;
57 typedef typename Traits::template Codim< codimension >::Geometry
Geometry;
72 typedef typename HostGridPartType::template Codim< codimension >::EntityType
HostEntityType;
158 template<
int codim,
int dim,
class Gr
idFamily >
163 typedef typename std::remove_const< GridFamily >::type::Traits
Traits;
173 using BaseType :: codimension ;
178 typedef typename HostGridPartType::template Codim< codimension >::EntityType
HostEntityType;
186 : BaseType( data, hostEntity )
198 template<
int dim,
class Gr
idFamily >
210 using BaseType::codimension ;
211 using BaseType::data ;
212 using BaseType::hostEntity ;
216 typedef typename HostGridPartType::template Codim< codimension >::EntityType
HostEntityType;
224 typedef typename Traits::template Codim< codimension >::LocalGeometry
LocalGeometry;
243 : BaseType( data, hostEntity )
253 template<
int codim >
256 return hostEntity().template count< codim >();
259 template<
int codim >
260 typename Traits::template Codim< codim >::Entity
263 typedef typename Traits::template Codim< codim >::Entity::Implementation EntityImpl;
269 return hostEntity().hasBoundaryIntersections();
280 #endif // #ifndef DUNE_IDGRID_ENTITY_HH std::remove_const< GridFamily >::type::Traits Traits
Definition: idgridpart/entity.hh:163
static const int dimensionworld
dimension of the world
Definition: idgridpart/entity.hh:44
PartitionType partitionType() const
obtain the partition type of this entity
Definition: idgridpart/entity.hh:113
unsigned int subEntities(const unsigned int codim) const
Definition: idgridpart/entity.hh:248
bool hasBoundaryIntersections() const
Definition: idgridpart/entity.hh:267
GeometryType type() const
obtain the name of the corresponding reference element
Definition: idgridpart/entity.hh:101
HostGridPartType::template Codim< codimension >::EntityType HostEntityType
type of corresponding host entity
Definition: idgridpart/entity.hh:73
IdEntityBasic()=default
construct a null entity
int count() const
Definition: idgridpart/entity.hh:254
BaseType::HostGridPartType HostGridPartType
Definition: idgridpart/entity.hh:204
std::remove_const< GridFamily >::type::ctype ctype
coordinate type of the grid
Definition: idgridpart/entity.hh:52
Geometry geometry() const
Definition: idgridpart/entity.hh:119
const HostEntityType & hostEntity() const
Definition: idgridpart/entity.hh:139
BaseType::Traits Traits
Definition: idgridpart/entity.hh:203
EntitySeedType seed() const
return EntitySeed of host grid entity
Definition: idgridpart/entity.hh:125
Traits::ExtraData ExtraData
Definition: idgridpart/entity.hh:170
int level() const
obtain the level of this entity
Definition: idgridpart/entity.hh:107
Dune::EntityPointer< Grid, Implementation >::Entity make_entity(const Dune::EntityPointer< Grid, Implementation > &entityPointer)
Definition: compatibility.hh:23
ExtraData data_
Definition: idgridpart/entity.hh:149
Traits::HostGridPartType HostGridPartType
Definition: idgridpart/entity.hh:63
Definition: coordinate.hh:4
std::remove_const< GridFamily >::type::Traits Traits
Definition: idgridpart/entity.hh:31
BaseType::ExtraData ExtraData
Definition: idgridpart/entity.hh:207
Traits::template Codim< codim >::Entity subEntity(int i) const
Definition: idgridpart/entity.hh:261
Traits::template Codim< codimension >::LocalGeometry LocalGeometry
type of corresponding local geometry
Definition: idgridpart/entity.hh:225
HostEntityType hostEntity_
Definition: idgridpart/entity.hh:150
static const int dimension
dimension of the grid
Definition: idgridpart/entity.hh:40
IdEntityBasic(ExtraData data, HostEntityType hostEntity)
construct an initialized entity
Definition: idgridpart/entity.hh:87
IdEntity(ExtraData data, HostEntityType hostEntity)
construct an initialized entity
Definition: idgridpart/entity.hh:242
const ExtraData & data() const
Definition: idgridpart/entity.hh:144
Traits::template Codim< codimension >::Geometry Geometry
type of corresponding geometry
Definition: idgridpart/entity.hh:57
void move(ArrayInterface< T > &array, const unsigned int oldOffset, const unsigned int newOffset, const unsigned int length)
Definition: array_inline.hh:38
GridFamily::template Codim< codimension >::EntitySeed EntitySeedType
type of corresponding entity seed
Definition: idgridpart/entity.hh:55
bool equals(const IdEntityBasic &rhs) const
check for equality
Definition: idgridpart/entity.hh:128
Definition: defaultgridpartentity.hh:21
static const int codimension
codimensioon of the entity
Definition: idgridpart/entity.hh:38
Traits::HostGridPartType HostGridPartType
Definition: idgridpart/entity.hh:167
Traits::ExtraData ExtraData
Definition: idgridpart/entity.hh:66
Definition: idgridpart/entity.hh:27
static const int mydimension
dimension of the entity
Definition: idgridpart/entity.hh:42
Definition: idgridpart/entity.hh:159
IdEntity(ExtraData data, HostEntityType hostEntity)
Definition: idgridpart/entity.hh:185