dune-grid 2.10
|
#include <dune/grid/geometrygrid/entity.hh>
Public Types | |
typedef Traits::template Codim< codim >::GeometryImpl | GeometryImpl |
Public Member Functions | |
const EntityBase & | operator= (const EntityBase &other) |
const EntityBase & | operator= (EntityBase &&other) |
bool | equals (const EntityBase &other) const |
compare two entities | |
Types Required by DUNE | |
typedef Traits::ctype | ctype |
coordinate type of the grid | |
typedef Traits::template Codim< codimension >::Geometry | Geometry |
type of corresponding geometry | |
Host Types | |
typedef HostGrid::template Codim< codimension >::Entity | HostEntity |
type of corresponding host entity | |
typedef Traits::template Codim< codimension >::EntitySeed | EntitySeed |
type of corresponding entity seed | |
typedef HostGrid::template Codim< 0 >::Entity | HostElement |
type of host elements, i.e., of host entities of codimension 0 | |
Attributes | |
static const int | codimension = codim |
codimensioon of the entity | |
static const int | dimension = Traits::dimension |
dimension of the grid | |
static const int | mydimension = dimension - codimension |
dimension of the entity | |
static const int | dimensionworld = Traits::dimensionworld |
dimension of the world | |
static const bool | fake = false |
true, if the entity is faked, i.e., if there is no corresponding host entity | |
Construction, Initialization and Destruction | |
EntityBase () | |
EntityBase (const Grid &grid, const EntitySeed &seed) | |
EntityBase (const Grid &grid, const HostElement &hostElement, int i) | |
EntityBase (const GeometryImpl &geo, const HostEntity &hostEntity) | |
EntityBase (const GeometryImpl &geo, HostEntity &&hostEntity) | |
EntityBase (const Grid &grid, const HostEntity &hostEntity) | |
EntityBase (const Grid &grid, HostEntity &&hostEntity) | |
EntityBase (const EntityBase &other) | |
EntityBase (EntityBase &&other) | |
Methods Shared by Entities of All Codimensions | |
GeometryType | type () const |
obtain the name of the corresponding reference element | |
int | level () const |
obtain the level of this entity | |
PartitionType | partitionType () const |
obtain the partition type of this entity | |
Geometry | geometry () const |
unsigned int | subEntities (unsigned int cc) const |
EntitySeed | seed () const |
return EntitySeed of host grid entity | |
Methods Supporting the Grid Implementation | |
const Grid & | grid () const |
const HostEntity & | hostEntity () const |
void | initialize (const HostEntity &hostEntity) |
initialize an entity | |
template<class HostIndexSet > | |
HostIndexSet::IndexType | index (const HostIndexSet &indexSet) const |
obtain the entity's index from a host IndexSet | |
template<class HostIndexSet > | |
HostIndexSet::IndexType | subIndex (const HostIndexSet &indexSet, int i, unsigned int cd) const |
obtain the index of a subentity from a host IndexSet | |
template<class HostIndexSet > | |
bool | isContained (const HostIndexSet &indexSet) const |
check whether the entity is contained in a host index set | |
template<class HostIdSet > | |
HostIdSet::IdType | id (const HostIdSet &idSet) const |
obtain the entity's id from a host IdSet | |
This specialization implements the case, where the host grid provides the entity for this codimension, i.e., fake = false.
typedef Traits::ctype Dune::GeoGrid::EntityBase< codim, Grid, false >::ctype |
coordinate type of the grid
typedef Traits::template Codim<codimension>::EntitySeed Dune::GeoGrid::EntityBase< codim, Grid, false >::EntitySeed |
type of corresponding entity seed
typedef Traits::template Codim<codimension>::Geometry Dune::GeoGrid::EntityBase< codim, Grid, false >::Geometry |
type of corresponding geometry
typedef Traits::template Codim<codim>::GeometryImpl Dune::GeoGrid::EntityBase< codim, Grid, false >::GeometryImpl |
typedef HostGrid::template Codim<0>::Entity Dune::GeoGrid::EntityBase< codim, Grid, false >::HostElement |
type of host elements, i.e., of host entities of codimension 0
typedef HostGrid::template Codim<codimension>::Entity Dune::GeoGrid::EntityBase< codim, Grid, false >::HostEntity |
type of corresponding host entity
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
compare two entities
|
inline |
obtain the geometry of this entity
Each DUNE entity encapsulates a geometry object, representing the map from the reference element to world coordinates. Wrapping the geometry is the main objective of the GeometryGrid.
The GeometryGrid provides geometries of order 1, obtained by interpolation of its corners
|
inline |
|
inline |
|
inline |
obtain the entity's id from a host IdSet
|
inline |
obtain the entity's index from a host IndexSet
|
inline |
initialize an entity
[in] | hostEntity | reference to the host entity |
|
inline |
check whether the entity is contained in a host index set
|
inline |
obtain the level of this entity
|
inline |
|
inline |
|
inline |
obtain the partition type of this entity
|
inline |
return EntitySeed of host grid entity
|
inline |
|
inline |
obtain the index of a subentity from a host IndexSet
|
inline |
obtain the name of the corresponding reference element
This type can be used to access the DUNE reference element.
|
static |
codimensioon of the entity
|
static |
dimension of the grid
|
static |
dimension of the world
|
static |
true, if the entity is faked, i.e., if there is no corresponding host entity
|
static |
dimension of the entity