concepts::FormulaLiCo Class Referenceabstract
Linear combination of two formulae. More...
#include <formulaLiCo.hh>
Public Types | |
typedef Realtype< Real >::type | G |
typedef Real | value_type |
Public Member Functions | |
virtual Formula< Real > * | clone () const |
Return a clone of this linear combination. More... | |
virtual Formula * | clone () const=0 |
FormulaLiCo (const Formula< Real > &frmA, const Formula< Real > &frmB, Real cA, Real cB) | |
Constructor. More... | |
virtual Real | operator() (const Real p, const Real t=0.0) const |
Application operator for one dimension. More... | |
virtual Real | operator() (const Real2d &p, const Real t=0.0) const |
Application operator for two dimensions. More... | |
virtual Real | operator() (const Real3d &p, const Real t=0.0) const |
Application operator for three dimensions. More... | |
Private Attributes | |
const Real | cA_ |
const Real | cB_ |
const Formula< Real > & | frmA_ |
const Formula< Real > & | frmB_ |
Detailed Description
Linear combination of two formulae.
Calculates cA * frmA(x,t) + cB * frmB(x,t).
Definition at line 19 of file formulaLiCo.hh.
Member Typedef Documentation
◆ G
|
inherited |
Definition at line 37 of file formula.hh.
◆ value_type
|
inherited |
Definition at line 36 of file formula.hh.
Constructor & Destructor Documentation
◆ FormulaLiCo()
|
inline |
Constructor.
- Parameters
-
frmA formula A frmB formula B cA coefficient of frmA
cB coefficient of frmB
Definition at line 27 of file formulaLiCo.hh.
Member Function Documentation
◆ clone() [1/2]
Return a clone of this linear combination.
Definition at line 30 of file formulaLiCo.hh.
◆ clone() [2/2]
|
pure virtualinherited |
◆ operator()() [1/6]
|
inlinevirtualinherited |
Convenience implementation, that by default ignores its elm param.
Definition at line 53 of file formula.hh.
◆ operator()() [2/6]
|
inlinevirtualinherited |
Convenience implementation, that by default ignores its elm param.
Definition at line 56 of file formula.hh.
◆ operator()() [3/6]
|
inlinevirtualinherited |
Convenience implementation, that by default ignores its elm param.
Definition at line 59 of file formula.hh.
◆ operator()() [4/6]
|
inlinevirtual |
Application operator for one dimension.
Implements concepts::Formula< Real >.
Definition at line 35 of file formulaLiCo.hh.
◆ operator()() [5/6]
|
inlinevirtual |
Application operator for two dimensions.
Implements concepts::Formula< Real >.
Definition at line 39 of file formulaLiCo.hh.
◆ operator()() [6/6]
|
inlinevirtual |
Application operator for three dimensions.
Implements concepts::Formula< Real >.
Definition at line 43 of file formulaLiCo.hh.
Member Data Documentation
◆ cA_
|
private |
Definition at line 49 of file formulaLiCo.hh.
◆ cB_
|
private |
Definition at line 50 of file formulaLiCo.hh.
◆ frmA_
Definition at line 47 of file formulaLiCo.hh.
◆ frmB_
Definition at line 48 of file formulaLiCo.hh.
The documentation for this class was generated from the following file:
- formula/formulaLiCo.hh