concepts::FrmE_Product< F, H, J, G > Class Template Referenceabstract

Product of two element formulas or an element formula and a factor. More...

#include <frmE_product.hh>

Inheritance diagram for concepts::FrmE_Product< F, H, J, G >:
concepts::ElementFormula< F, typename Realtype< F >::type > concepts::Cloneable concepts::OutputOperator

Public Types

typedef F value_type
 

Public Member Functions

virtual FrmE_Product< F, H, J, G > * clone () const
 Virtual constructor. More...
 
virtual ElementFormula< F, typename Realtype< F >::type > * clone () const=0
 Virtual copy constructor. More...
 
 FrmE_Product (const ElementFormulaContainer< H > frm1, const ElementFormulaContainer< J > frm2)
 
 FrmE_Product (const ElementFormulaContainer< H > frm1, const J a)
 
 FrmE_Product (const FrmE_Product< F, H, J, G > &frm)
 Copy constructor. More...
 
virtual F operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
 
virtual F operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const
 
virtual F operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
 
virtual F operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual F operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual F operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual ~FrmE_Product ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Private Member Functions

 FrmE_Product (const ElementFormulaContainer< H > frm1, const ElementFormulaContainer< J > frm2, const RCP< J > a)
 Private constructor. More...
 

Private Attributes

RCP< J > a_
 Constant factor instead of an ElementFormula (not necessary scalar) More...
 
ElementFormulaContainer< H > frm1_
 First ElementFormula. More...
 
ElementFormulaContainer< J > frm2_
 Second ElementFormula. More...
 

Detailed Description

template<typename F, typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
class concepts::FrmE_Product< F, H, J, G >

Product of two element formulas or an element formula and a factor.

Parameters
Ftype of the product element formula
Htype of the first element formula
Jtype of the second element formula or the factor
Gtype of the basis functions
Author
Kersten Schmidt, 2010

Definition at line 39 of file frmE_product.hh.

Member Typedef Documentation

◆ value_type

typedef F concepts::ElementFormula< F, typename Realtype< F >::type >::value_type
inherited

Definition at line 37 of file elementFormula.hh.

Constructor & Destructor Documentation

◆ FrmE_Product() [1/4]

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
concepts::FrmE_Product< F, H, J, G >::FrmE_Product ( const ElementFormulaContainer< H >  frm1,
const ElementFormulaContainer< J >  frm2 
)
inline

Definition at line 41 of file frmE_product.hh.

◆ FrmE_Product() [2/4]

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
concepts::FrmE_Product< F, H, J, G >::FrmE_Product ( const ElementFormulaContainer< H >  frm1,
const J  a 
)
inline

Definition at line 48 of file frmE_product.hh.

◆ FrmE_Product() [3/4]

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
concepts::FrmE_Product< F, H, J, G >::FrmE_Product ( const FrmE_Product< F, H, J, G > &  frm)
inline

Copy constructor.

Definition at line 56 of file frmE_product.hh.

◆ ~FrmE_Product()

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
virtual concepts::FrmE_Product< F, H, J, G >::~FrmE_Product ( )
inlinevirtual

Definition at line 59 of file frmE_product.hh.

◆ FrmE_Product() [4/4]

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
concepts::FrmE_Product< F, H, J, G >::FrmE_Product ( const ElementFormulaContainer< H >  frm1,
const ElementFormulaContainer< J >  frm2,
const RCP< J >  a 
)
inlineprivate

Private constructor.

Definition at line 119 of file frmE_product.hh.

Member Function Documentation

◆ clone() [1/2]

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
virtual FrmE_Product<F,H,J,G>* concepts::FrmE_Product< F, H, J, G >::clone ( ) const
inlinevirtual

Virtual constructor.

Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.

Implements concepts::Cloneable.

Definition at line 96 of file frmE_product.hh.

◆ clone() [2/2]

virtual ElementFormula<F,typename Realtype< F >::type >* concepts::ElementFormula< F, typename Realtype< F >::type >::clone ( ) const
pure virtualinherited

◆ info()

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
virtual std::ostream& concepts::FrmE_Product< F, H, J, G >::info ( std::ostream &  os) const
inlineprotectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 101 of file frmE_product.hh.

◆ operator()() [1/6]

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
virtual F concepts::FrmE_Product< F, H, J, G >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const
inlinevirtual

Definition at line 63 of file frmE_product.hh.

◆ operator()() [2/6]

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
virtual F concepts::FrmE_Product< F, H, J, G >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
inlinevirtual

Definition at line 74 of file frmE_product.hh.

◆ operator()() [3/6]

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
virtual F concepts::FrmE_Product< F, H, J, G >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
inlinevirtual

Definition at line 85 of file frmE_product.hh.

◆ operator()() [4/6]

virtual F concepts::ElementFormula< F, typename Realtype< F >::type >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

Parameters
elmElement
pPoint in space in local element coordinates
tPoint in time

Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.

◆ operator()() [5/6]

virtual F concepts::ElementFormula< F, typename Realtype< F >::type >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

Parameters
elmElement
pPoint in space in local element coordinates
tPoint in time

Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.

◆ operator()() [6/6]

virtual F concepts::ElementFormula< F, typename Realtype< F >::type >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

Parameters
elmElement
pPoint in space in local element coordinates
tPoint in time

Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.

Member Data Documentation

◆ a_

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
RCP<J> concepts::FrmE_Product< F, H, J, G >::a_
private

Constant factor instead of an ElementFormula (not necessary scalar)

Definition at line 116 of file frmE_product.hh.

◆ frm1_

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
ElementFormulaContainer<H> concepts::FrmE_Product< F, H, J, G >::frm1_
private

First ElementFormula.

Definition at line 112 of file frmE_product.hh.

◆ frm2_

template<typename F , typename H = F, typename J = typename Datatype<F>::type, typename G = typename Realtype<F>::type>
ElementFormulaContainer<J> concepts::FrmE_Product< F, H, J, G >::frm2_
private

Second ElementFormula.

Definition at line 114 of file frmE_product.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich