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

Class for a sum of element formulas. More...

#include <frmE_sum.hh>

Inheritance diagram for concepts::FrmE_Sum< 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_Sum< F, H, J, G > * clone () const
 Virtual constructor. More...
 
virtual ElementFormula< F, typename Realtype< F >::type > * clone () const=0
 Virtual copy constructor. More...
 
 FrmE_Sum (const ElementFormulaContainer< H > frm1, const ElementFormulaContainer< J > frm2)
 
 FrmE_Sum (const ElementFormulaContainer< H > frm1, const F a)
 
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_Sum ()
 

Protected Member Functions

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

Private Member Functions

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

Private Attributes

a_
 Summand. More...
 
ElementFormulaContainer< H > frm1_
 First element formula. More...
 
ElementFormulaContainer< J > frm2_
 Second element formula. More...
 

Detailed Description

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

Class for a sum of element formulas.

Result of formula is sum of the results of the formulas.

Generalisation of class ComposeFormula.

Author
Kersten Schmidt, 2010

Definition at line 36 of file frmE_sum.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_Sum() [1/3]

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

Definition at line 38 of file frmE_sum.hh.

◆ FrmE_Sum() [2/3]

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

Definition at line 45 of file frmE_sum.hh.

◆ ~FrmE_Sum()

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

Definition at line 52 of file frmE_sum.hh.

◆ FrmE_Sum() [3/3]

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

Private constructor.

Definition at line 107 of file frmE_sum.hh.

Member Function Documentation

◆ clone() [1/2]

template<class F , class H = F, class J = F, class G = typename Realtype<F>::type>
virtual FrmE_Sum<F,H,J,G>* concepts::FrmE_Sum< 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 85 of file frmE_sum.hh.

◆ clone() [2/2]

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

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 90 of file frmE_sum.hh.

◆ operator()() [1/6]

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

Definition at line 57 of file frmE_sum.hh.

◆ operator()() [2/6]

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

Definition at line 66 of file frmE_sum.hh.

◆ operator()() [3/6]

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

Definition at line 75 of file frmE_sum.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<class F , class H = F, class J = F, class G = typename Realtype<F>::type>
F concepts::FrmE_Sum< F, H, J, G >::a_
private

Summand.

Definition at line 104 of file frmE_sum.hh.

◆ frm1_

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

First element formula.

Definition at line 100 of file frmE_sum.hh.

◆ frm2_

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

Second element formula.

Definition at line 102 of file frmE_sum.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