dune-fem  2.4.1-rc
Public Types | Public Member Functions | Protected Member Functions | List of all members
Dune::Fem::IntegrationPointListImp< FieldImp, dim > Class Template Referenceabstract

Generic implementation of an IntegrationPointList. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/quadrature/quadratureimp.hh>

Inheritance diagram for Dune::Fem::IntegrationPointListImp< FieldImp, dim >:
Inheritance graph

Public Types

enum  { codimension = 0 }
 to be revised, look at caching quad More...
 
typedef FieldImp FieldType
 field type More...
 
typedef FieldVector< FieldType, dim > CoordinateType
 type of local coordinates More...
 

Public Member Functions

virtual ~IntegrationPointListImp ()
 
const CoordinateTypepoint (size_t i) const
 obtain coordinates of i-th integration point More...
 
size_t nop () const
 obtain the number of integration points More...
 
size_t id () const
 obtain the identifier of the integration point list More...
 
virtual int order () const =0
 obtain order of the integration point list More...
 
virtual GeometryType geometryType () const =0
 obtain GeometryType for this integration point list More...
 

Protected Member Functions

 IntegrationPointListImp (size_t id)
 Constructor. More...
 
void addIntegrationPoint (const CoordinateType &point)
 Adds an integration point to the list. More...
 

Detailed Description

template<typename FieldImp, int dim>
class Dune::Fem::IntegrationPointListImp< FieldImp, dim >

Generic implementation of an IntegrationPointList.

An integration point list is simply a list of points, given in local coordinates, i.e., coordinates within the reference element.

Note
Integration point lists do not change over time. It can safely be assumed that they always return the same points in the same order.

Member Typedef Documentation

template<typename FieldImp, int dim>
typedef FieldVector< FieldType, dim > Dune::Fem::IntegrationPointListImp< FieldImp, dim >::CoordinateType

type of local coordinates

template<typename FieldImp, int dim>
typedef FieldImp Dune::Fem::IntegrationPointListImp< FieldImp, dim >::FieldType

field type

Member Enumeration Documentation

template<typename FieldImp, int dim>
anonymous enum

to be revised, look at caching quad

Enumerator
codimension 

Constructor & Destructor Documentation

template<typename FieldImp, int dim>
Dune::Fem::IntegrationPointListImp< FieldImp, dim >::IntegrationPointListImp ( size_t  id)
inlineexplicitprotected

Constructor.

The constructor simply creates an empty point list and stores the specified identifier.

Note
The constructors of derived classes should fill the integration point list via addIntegrationPoint.
The identifier of an integration point list must be globally unique. Even integration point lists for different dimensions must have different identifiers.
Parameters
[in]idunique identifier of the integration point list (provided by QuadratureProvider)

Referenced by Dune::Fem::IntegrationPointListImp< ct, Topology::dimension >::IntegrationPointListImp().

template<typename FieldImp, int dim>
virtual Dune::Fem::IntegrationPointListImp< FieldImp, dim >::~IntegrationPointListImp ( )
inlinevirtual

Member Function Documentation

template<typename FieldImp, int dim>
void Dune::Fem::IntegrationPointListImp< FieldImp, dim >::addIntegrationPoint ( const CoordinateType point)
inlineprotected

Adds an integration point to the list.

This method allows derived classes to add integration points to the list. This mehtod should only be used within the constructor of the derived class.

Referenced by Dune::Fem::QuadratureImp< FieldImp, 1 >::addQuadraturePoint(), and Dune::Fem::QuadratureImp< FieldImp, 1 >::weight().

template<typename FieldImp, int dim>
virtual GeometryType Dune::Fem::IntegrationPointListImp< FieldImp, dim >::geometryType ( ) const
pure virtual
template<typename FieldImp, int dim>
size_t Dune::Fem::IntegrationPointListImp< FieldImp, dim >::id ( ) const
inline

obtain the identifier of the integration point list

The identifier of an integration point list must be globally unique. Even integration point lists for different dimensions must have different identifiers.

Note
Quadratures are considered distinct if they differ in one of the following points: geometry type, order, dimension or implementation.
Returns
globally unique identifier of the integration point list

Referenced by Dune::Fem::CacheProvider< GridPart, 1 >::getMapper(), Dune::Fem::PointProvider< ct, dim, 1 >::getMappers(), Dune::Fem::PointProvider< ct, dim, 1 >::getPoints(), Dune::Fem::TwistProvider< ct, dim >::getTwistStorage(), and Dune::Fem::PointProvider< ct, dim, 0 >::registerQuadrature().

template<typename FieldImp, int dim>
size_t Dune::Fem::IntegrationPointListImp< FieldImp, dim >::nop ( ) const
inline
template<typename FieldImp, int dim>
virtual int Dune::Fem::IntegrationPointListImp< FieldImp, dim >::order ( ) const
pure virtual
template<typename FieldImp, int dim>
const CoordinateType& Dune::Fem::IntegrationPointListImp< FieldImp, dim >::point ( size_t  i) const
inline

obtain coordinates of i-th integration point

This method returns a reference to the coordinates of the i-th integration point for 0 <= i < nop(). The integration point is given in local coordinates, i.e., coordinates with respect to the reference element.

Parameters
[in]inumber of the integration point, 0 <= i < nop()
Returns
reference to i-th integration point

Referenced by Dune::Fem::TwistMapperCreator< ct, dim >::createStorage(), Dune::Fem::PointProvider< ct, dim, 1 >::getMappers(), Dune::Fem::PointProvider< ct, dim, 0 >::registerQuadrature(), and Dune::Fem::QuadratureImp< FieldImp, 1 >::weight().


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