dune-localfunctions  2.2.1
Public Types | Public Member Functions | List of all members
Dune::Q1FiniteElementFactory< Geometry, RF > Class Template Reference

Factory for global-valued Q1 elements. More...

#include <dune/localfunctions/lagrange/q1.hh>

Inheritance diagram for Dune::Q1FiniteElementFactory< Geometry, RF >:
Dune::ScalarLocalToGlobalFiniteElementAdaptorFactory< Q1LocalFiniteElement< Geometry::ctype, RF, Geometry::mydimension >, Geometry > Dune::FiniteElementFactoryInterface< Geometry, VertexOrder >

Public Types

typedef
ScalarLocalToGlobalFiniteElementAdaptor
< Q1LocalFiniteElement
< Geometry::ctype, RF,
Geometry::mydimension >
, Geometry > 
FiniteElement
 

Public Member Functions

 Q1FiniteElementFactory ()
 default constructor More...
 
const FiniteElement make (const Geometry &geometry)
 construct ScalarLocalToGlobalFiniteElementAdaptor More...
 
Finite element creation methods

Each finite element factory implementation must provide at least one of these methods. The signatures may be extended by additional parameters, but the parameters that are specified here should be given first and in the order specified here.

The return value of these functions is suitable for binding to a const reference – it will either be an rvalue (in which case binding to a const reference will create a copy whose lifetime is the same as the reference itself), or it will be an lvalue (in which case the factory must guarantee that it will be valid until the factory is destroyed or something else happens that explicitly invalidates all created finite elements).

In any case, since global-valued finite element objects are copy-constructible, it is also possible to use the returned value to initialize a finite element object instead of a const reference.

const FiniteElement make (const Geometry &, const VertexOrder &,...)
 create a finite element from a geometry and a vertex ordering More...
 
const FiniteElement make (const Geometry &,...)
 create a finite element from a geometry More...
 
const FiniteElement make (const VertexOrder &,...)
 create a finite element from a vertex ordering More...
 
const FiniteElement make (const GeometryType &,...)
 create a finite element from a geometry type More...
 
const FiniteElement make (...)
 create a finite element More...
 

Detailed Description

template<class Geometry, class RF>
class Dune::Q1FiniteElementFactory< Geometry, RF >

Factory for global-valued Q1 elements.

Template Parameters
GeometryType of the geometry. Used to extract the domain field type and the dimension.
RFRange field type.

Member Typedef Documentation

typedef ScalarLocalToGlobalFiniteElementAdaptor<Q1LocalFiniteElement< Geometry::ctype, RF, Geometry::mydimension > , Geometry> Dune::ScalarLocalToGlobalFiniteElementAdaptorFactory< Q1LocalFiniteElement< Geometry::ctype, RF, Geometry::mydimension > , Geometry >::FiniteElement
inherited

Constructor & Destructor Documentation

template<class Geometry , class RF >
Dune::Q1FiniteElementFactory< Geometry, RF >::Q1FiniteElementFactory ( )
inline

default constructor

Member Function Documentation

template<class Geometry , class VertexOrder >
const FiniteElement Dune::FiniteElementFactoryInterface< Geometry, VertexOrder >::make ( const Geometry &  ,
const VertexOrder &  ,
  ... 
)
inherited

create a finite element from a geometry and a vertex ordering

template<class Geometry , class VertexOrder >
const FiniteElement Dune::FiniteElementFactoryInterface< Geometry, VertexOrder >::make ( const Geometry &  ,
  ... 
)
inherited

create a finite element from a geometry

template<class Geometry , class VertexOrder >
const FiniteElement Dune::FiniteElementFactoryInterface< Geometry, VertexOrder >::make ( const VertexOrder &  ,
  ... 
)
inherited

create a finite element from a vertex ordering

template<class Geometry , class VertexOrder >
const FiniteElement Dune::FiniteElementFactoryInterface< Geometry, VertexOrder >::make ( const GeometryType &  ,
  ... 
)
inherited

create a finite element from a geometry type

Note
This signature should only be used when only the geometry type but not the full geometry or vertex ordering are needed.
template<class Geometry , class VertexOrder >
const FiniteElement Dune::FiniteElementFactoryInterface< Geometry, VertexOrder >::make (   ...)
inherited

create a finite element

const FiniteElement Dune::ScalarLocalToGlobalFiniteElementAdaptorFactory< Q1LocalFiniteElement< Geometry::ctype, RF, Geometry::mydimension > , Geometry >::make ( const Geometry &  geometry)
inlineinherited

construct ScalarLocalToGlobalFiniteElementAdaptor

Parameters
geometryThe geometry object to use for adaption.
Note
The returned object stores the reference to the geometry passed here as well as references to internal data of this factory. Any use of the returned value after the geometry reference or the factory object was become invalid results in undefined behaviour. The exception is that the destructor of the returned value may still be called.

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