dune-grid 2.9.0
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp > Class Template Reference

Default Implementations for EntityImp (Elements [cd=0]) More...

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

Inheritance diagram for Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >:
Inheritance graph

Public Types

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

Public Member Functions

bool isRegular () const
 Returns true if element is of regular type in red/green type refinement. In bisection or hanging node refinement this is always true. More...
 
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. More...
 
bool isNew () const
 Returns true, if the entity has been created during the last call to adapt() More...
 
bool mightVanish () const
 Returns true, if entity might disappear during the next call to adapt() More...
 
bool hasBoundaryIntersections () const
 Returns true, if entity has intersections with boundary, this implementation uses the Level- and LeafIntersectionIterator to check for boundary intersections. More...
 

Static Public Attributes

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

Detailed Description

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

Default Implementations for EntityImp (Elements [cd=0])

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

<int cd, int dim, class GridImp, template<int,int,class> class EntityImp>

Member Typedef Documentation

◆ EntitySeed

template<int dim, class GridImp , template< int, int, class > class EntityImp>
typedef GridImp::template Codim<0>::EntitySeed Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::EntitySeed

The corresponding entity seed (for storage of entities)

Member Function Documentation

◆ hasBoundaryIntersections()

template<int dim, class GridImp , template< int, int, class > class EntityImp>
bool Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::hasBoundaryIntersections ( ) const
inline

Returns true, if entity has intersections with boundary, this implementation uses the Level- and LeafIntersectionIterator to check for boundary intersections.

◆ isNew()

template<int dim, class GridImp , template< int, int, class > class EntityImp>
bool Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::isNew ( ) const
inline

Returns true, if the entity has been created during the last call to adapt()

◆ isRegular()

template<int dim, class GridImp , template< int, int, class > class EntityImp>
bool Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::isRegular ( ) const
inline

Returns true if element is of regular type in red/green type refinement. In bisection or hanging node refinement this is always true.

◆ mightVanish()

template<int dim, class GridImp , template< int, int, class > class EntityImp>
bool Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::mightVanish ( ) const
inline

Returns true, if entity might disappear during the next call to adapt()

◆ subEntities()

template<int dim, class GridImp , template< int, int, class > class EntityImp>
unsigned int Dune::EntityDefaultImplementation< 0, 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.

◆ type()

template<int dim, class GridImp , template< int, int, class > class EntityImp>
GeometryType Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::type ( ) const
inline

Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.

Member Data Documentation

◆ codimension

template<int dim, class GridImp , template< int, int, class > class EntityImp>
constexpr int Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::codimension = 0
staticconstexpr

know your own codimension

◆ dimension

template<int dim, class GridImp , template< int, int, class > class EntityImp>
constexpr int Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::dimension = dim
staticconstexpr

Dimension of the grid.

◆ mydimension

template<int dim, class GridImp , template< int, int, class > class EntityImp>
constexpr int Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::mydimension = dim
staticconstexpr

Know dimension of the entity.


The documentation for this class was generated from the following file: