Dune Core Modules (unstable)

Dune::EntityDefaultImplementation< cd, dim, GridImp, EntityImp > Class Template Reference

Default Implementations for EntityImp. More...

#include <dune/grid/common/entity.hh>

Public Types

typedef GridImp::template Codim< cd >::EntitySeed EntitySeed
 The corresponding entity seed (for storage of entities)
 

Public Member Functions

unsigned int subEntities (unsigned int codim) const
 Number of subentities for a given codimension. More...
 
GeometryType type () const
 Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
 

Static Public Attributes

static constexpr int codimension = cd
 know your own codimension
 
static constexpr int dimension = dim
 Dimension of the grid.
 
static constexpr int mydimension = dim - cd
 Know dimension of the entity.
 

Detailed Description

template<int cd, int dim, class GridImp, template< int, int, class > class EntityImp>
class Dune::EntityDefaultImplementation< cd, dim, GridImp, EntityImp >

Default Implementations for EntityImp.

EntityDefaultImplementation provides default implementations for Entity which uses the implemented interface which has to be done by the user.

Note
this is the general version, but there is a specialization for cd=0

Member Function Documentation

◆ subEntities()

template<int cd, int dim, class GridImp , template< int, int, class > class EntityImp>
unsigned int Dune::EntityDefaultImplementation< cd, dim, GridImp, EntityImp >::subEntities ( unsigned int  codim) const
inline

Number of subentities for a given codimension.

Parameters
codimcodimension to obtain number of subentities for
Note
The codimension is specified with respect to the grid dimension.
Unless the geometry type is None, this method is redundant and the same information can be obtained from the corresponding reference element.

References Dune::EntityDefaultImplementation< cd, dim, GridImp, EntityImp >::codimension, Dune::Geo::ReferenceElements< ctype_, dim >::general(), and Dune::EntityDefaultImplementation< cd, dim, GridImp, EntityImp >::type().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 20, 23:30, 2024)