concepts::FrmE_Sum< F, H, J, G > Class Template Referenceabstract
Class for a sum of element formulas. More...
#include <frmE_sum.hh>
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 | |
F | 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.
Definition at line 36 of file frmE_sum.hh.
Member Typedef Documentation
◆ value_type
|
inherited |
Definition at line 37 of file elementFormula.hh.
Constructor & Destructor Documentation
◆ FrmE_Sum() [1/3]
|
inline |
Definition at line 38 of file frmE_sum.hh.
◆ FrmE_Sum() [2/3]
|
inline |
Definition at line 45 of file frmE_sum.hh.
◆ ~FrmE_Sum()
|
inlinevirtual |
Definition at line 52 of file frmE_sum.hh.
◆ FrmE_Sum() [3/3]
|
inlineprivate |
Private constructor.
Definition at line 107 of file frmE_sum.hh.
Member Function Documentation
◆ clone() [1/2]
|
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]
|
pure virtualinherited |
Virtual copy constructor.
Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.
◆ info()
|
inlineprotectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Definition at line 90 of file frmE_sum.hh.
◆ operator()() [1/6]
|
inlinevirtual |
Definition at line 57 of file frmE_sum.hh.
◆ operator()() [2/6]
|
inlinevirtual |
Definition at line 66 of file frmE_sum.hh.
◆ operator()() [3/6]
|
inlinevirtual |
Definition at line 75 of file frmE_sum.hh.
◆ operator()() [4/6]
|
pure virtualinherited |
Evaluates the formula.
Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.
◆ operator()() [5/6]
|
pure virtualinherited |
Evaluates the formula.
Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.
◆ operator()() [6/6]
|
pure virtualinherited |
Evaluates the formula.
Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.
Member Data Documentation
◆ a_
|
private |
Summand.
Definition at line 104 of file frmE_sum.hh.
◆ frm1_
|
private |
First element formula.
Definition at line 100 of file frmE_sum.hh.
◆ 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:
- formula/frmE_sum.hh