dune-pdelab  2.5-dev
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::PDELab::ReferenceElementWrapper< RE > Class Template Reference

Wrapper for Dune::ReferenceElement with value semantics. More...

#include <dune/pdelab/common/referenceelements.hh>

Public Types

template<int codim>
using Codim = typename RE::template Codim< codim >
 
using ctype = typename Codim< 0 >::Geometry::ctype
 The coordinate field type. More...
 
using CoordinateField = ctype
 The coordinate field type. More...
 
using Coordinate = FieldVector< CoordinateField, dimension >
 The coordinate type of the reference element. More...
 

Public Member Functions

int size (int c) const
 
int size (int i, int c, int cc) const
 
int subEntity (int i, int c, int ii, int cc) const
 
GeometryType type (int i, int c) const
 
GeometryType type () const
 
const Coordinateposition (int i, int c) const
 
bool checkInside (const Coordinate &local) const
 
template<int codim>
Codim< codim >::Geometry geometry (int i) const
 
CoordinateField volume () const
 
const CoordinateintegrationOuterNormal (int face) const
 

Static Public Attributes

static const std::size_t dimension = Codim<0>::Geometry::coorddimension
 The dimension of the reference element. More...
 

Detailed Description

template<typename RE>
class Dune::PDELab::ReferenceElementWrapper< RE >

Wrapper for Dune::ReferenceElement with value semantics.

This class wraps a Dune::ReferenceElement and exposes the relevant parts of its interface. Note, however, that its signature is different, so code that relies on partial specialization of the reference element type will not work with the wrapper.

For the exact documentation of the individual members, please see the documentation of Dune::ReferenceElement.

This class exports three additional items of static information:

Note
Users will normally not construct a ReferenceWrapper directly, but obtain the rule by calling Dune::PDELab::referenceElement().
See also
Dune::ReferenceElement.

Member Typedef Documentation

◆ Codim

template<typename RE >
template<int codim>
using Dune::PDELab::ReferenceElementWrapper< RE >::Codim = typename RE::template Codim<codim>

◆ Coordinate

template<typename RE >
using Dune::PDELab::ReferenceElementWrapper< RE >::Coordinate = FieldVector<CoordinateField,dimension>

The coordinate type of the reference element.

◆ CoordinateField

template<typename RE >
using Dune::PDELab::ReferenceElementWrapper< RE >::CoordinateField = ctype

The coordinate field type.

◆ ctype

template<typename RE >
using Dune::PDELab::ReferenceElementWrapper< RE >::ctype = typename Codim<0>::Geometry::ctype

The coordinate field type.

Member Function Documentation

◆ checkInside()

template<typename RE >
bool Dune::PDELab::ReferenceElementWrapper< RE >::checkInside ( const Coordinate local) const
inline

◆ geometry()

template<typename RE >
template<int codim>
Codim<codim>::Geometry Dune::PDELab::ReferenceElementWrapper< RE >::geometry ( int  i) const
inline

◆ integrationOuterNormal()

template<typename RE >
const Coordinate& Dune::PDELab::ReferenceElementWrapper< RE >::integrationOuterNormal ( int  face) const
inline

◆ position()

template<typename RE >
const Coordinate& Dune::PDELab::ReferenceElementWrapper< RE >::position ( int  i,
int  c 
) const
inline

◆ size() [1/2]

template<typename RE >
int Dune::PDELab::ReferenceElementWrapper< RE >::size ( int  c) const
inline

◆ size() [2/2]

template<typename RE >
int Dune::PDELab::ReferenceElementWrapper< RE >::size ( int  i,
int  c,
int  cc 
) const
inline

◆ subEntity()

template<typename RE >
int Dune::PDELab::ReferenceElementWrapper< RE >::subEntity ( int  i,
int  c,
int  ii,
int  cc 
) const
inline

◆ type() [1/2]

template<typename RE >
GeometryType Dune::PDELab::ReferenceElementWrapper< RE >::type ( int  i,
int  c 
) const
inline

◆ type() [2/2]

template<typename RE >
GeometryType Dune::PDELab::ReferenceElementWrapper< RE >::type ( ) const
inline

◆ volume()

template<typename RE >
CoordinateField Dune::PDELab::ReferenceElementWrapper< RE >::volume ( ) const
inline

Member Data Documentation

◆ dimension

template<typename RE >
const std::size_t Dune::PDELab::ReferenceElementWrapper< RE >::dimension = Codim<0>::Geometry::coorddimension
static

The dimension of the reference element.


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