dune-fem 2.12-git
Loading...
Searching...
No Matches
Dune::ExtendedEntity< cd, dim, GridImp, EntityImp > Class Template Reference

Wrapper class for wrapped entities added a cast operator to the host entity. More...

#include <dune/fem/gridpart/common/extendedentity.hh>

Inheritance diagram for Dune::ExtendedEntity< cd, dim, GridImp, EntityImp >:
Inheritance graph

Classes

struct  checkHostEntity
 
struct  checkHostEntity< T, typename ToVoid< typename T::HostEntityType >::type >
 
struct  HE
 
struct  HE< Impl, true >
 
struct  ToVoid
 

Public Types

typedef BaseType::Implementation ImplementationType
 
typedef HE< ImplementationType, hasHostEntity >::HostEntity HostEntityType
 
typedef HE< ImplementationType, hasHostEntity >::GridEntity GridEntityType
 
typedef EntityImp< cd, dim, GridImp > Implementation
 
typedef GridImp::template Codim< cd >::Geometry Geometry
 
typedef GridImp::template Codim< cd >::EntitySeed EntitySeed
 

Public Member Functions

 operator const HostEntityType & () const
 cast to HostEntityType if such type exists otherwise return implementation
 
 operator const GridEntityType & () const
 cast to HostEntityType if such type exists otherwise return implementation
 
Implementationimpl ()
 
const Implementationimpl () const
 
auto referenceElement (const Entity< cd, dim, GridImp, EntityImp > &entity) -> decltype(referenceElement< typename GridImp::ctype, GridImp::template Codim< cd >::Geometry::mydimension >(entity.type()))
 
int level () const
 
PartitionType partitionType () const
 
Geometry geometry () const
 
GeometryType type () const
 
unsigned int subEntities (unsigned int codim) const
 
IteratorRange<... > subEntities (const E &e, Codim< codim > c)
 
EntitySeed seed () const
 
bool operator== (const Entity &other) const
 
bool operator!= (const Entity &other) const
 
IteratorRange<... > intersections (const GV &gv, const Entity &e)
 
IteratorRange<... > descendantElements (const Entity &e, int maxLevel)
 

Static Public Attributes

static constexpr bool hasHostEntity = checkHostEntity< ImplementationType >::value
 
static constexpr int codimension
 
static constexpr int dimension
 
static constexpr int mydimension
 

Protected Attributes

Implementation realEntity
 

Detailed Description

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

Wrapper class for wrapped entities added a cast operator to the host entity.

Template Parameters
cdCodimension of the entity
dimDimension of the grid
GridImpType that is a model of Dune::Grid
EntityImpClass template that is a model of Dune::Entity

Member Typedef Documentation

◆ GridEntityType

template<int cd, int dim, class GridImp , template< int, int, class > class EntityImp>
typedef HE<ImplementationType,hasHostEntity>::GridEntity Dune::ExtendedEntity< cd, dim, GridImp, EntityImp >::GridEntityType

◆ HostEntityType

template<int cd, int dim, class GridImp , template< int, int, class > class EntityImp>
typedef HE<ImplementationType,hasHostEntity>::HostEntity Dune::ExtendedEntity< cd, dim, GridImp, EntityImp >::HostEntityType

◆ ImplementationType

template<int cd, int dim, class GridImp , template< int, int, class > class EntityImp>
typedef BaseType::Implementation Dune::ExtendedEntity< cd, dim, GridImp, EntityImp >::ImplementationType

Member Function Documentation

◆ operator const GridEntityType &()

template<int cd, int dim, class GridImp , template< int, int, class > class EntityImp>
Dune::ExtendedEntity< cd, dim, GridImp, EntityImp >::operator const GridEntityType & ( ) const
inline

cast to HostEntityType if such type exists otherwise return implementation

◆ operator const HostEntityType &()

template<int cd, int dim, class GridImp , template< int, int, class > class EntityImp>
Dune::ExtendedEntity< cd, dim, GridImp, EntityImp >::operator const HostEntityType & ( ) const
inline

cast to HostEntityType if such type exists otherwise return implementation

Member Data Documentation

◆ hasHostEntity

template<int cd, int dim, class GridImp , template< int, int, class > class EntityImp>
constexpr bool Dune::ExtendedEntity< cd, dim, GridImp, EntityImp >::hasHostEntity = checkHostEntity< ImplementationType >::value
staticconstexpr

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