concepts::FormulaLiCo Class Referenceabstract

Linear combination of two formulae. More...

#include <formulaLiCo.hh>

Inheritance diagram for concepts::FormulaLiCo:
concepts::Formula< Real >

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 Formulaclone () 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).

Author
Christoph Winkelmann, 2003

Definition at line 19 of file formulaLiCo.hh.

Member Typedef Documentation

◆ G

typedef Realtype<Real >::type concepts::Formula< Real >::G
inherited

Definition at line 37 of file formula.hh.

◆ value_type

typedef Real concepts::Formula< Real >::value_type
inherited

Definition at line 36 of file formula.hh.

Constructor & Destructor Documentation

◆ FormulaLiCo()

concepts::FormulaLiCo::FormulaLiCo ( const Formula< Real > &  frmA,
const Formula< Real > &  frmB,
Real  cA,
Real  cB 
)
inline

Constructor.

Parameters
frmAformula A
frmBformula B
cAcoefficient of frmA
cBcoefficient of frmB

Definition at line 27 of file formulaLiCo.hh.

Member Function Documentation

◆ clone() [1/2]

virtual Formula<Real>* concepts::FormulaLiCo::clone ( ) const
inlinevirtual

Return a clone of this linear combination.

Definition at line 30 of file formulaLiCo.hh.

◆ clone() [2/2]

virtual Formula* concepts::Formula< Real >::clone ( ) const
pure virtualinherited

◆ operator()() [1/6]

virtual Real concepts::Formula< Real >::operator() ( const Connector cntr,
const Real  p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Convenience implementation, that by default ignores its elm param.

Definition at line 53 of file formula.hh.

◆ operator()() [2/6]

virtual Real concepts::Formula< Real >::operator() ( const Connector cntr,
const Real2d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Convenience implementation, that by default ignores its elm param.

Definition at line 56 of file formula.hh.

◆ operator()() [3/6]

virtual Real concepts::Formula< Real >::operator() ( const Connector cntr,
const Real3d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Convenience implementation, that by default ignores its elm param.

Definition at line 59 of file formula.hh.

◆ operator()() [4/6]

virtual Real concepts::FormulaLiCo::operator() ( const Real  p,
const Real  t = 0.0 
) const
inlinevirtual

Application operator for one dimension.

Implements concepts::Formula< Real >.

Definition at line 35 of file formulaLiCo.hh.

◆ operator()() [5/6]

virtual Real concepts::FormulaLiCo::operator() ( const Real2d p,
const Real  t = 0.0 
) const
inlinevirtual

Application operator for two dimensions.

Implements concepts::Formula< Real >.

Definition at line 39 of file formulaLiCo.hh.

◆ operator()() [6/6]

virtual Real concepts::FormulaLiCo::operator() ( const Real3d p,
const Real  t = 0.0 
) const
inlinevirtual

Application operator for three dimensions.

Implements concepts::Formula< Real >.

Definition at line 43 of file formulaLiCo.hh.

Member Data Documentation

◆ cA_

const Real concepts::FormulaLiCo::cA_
private

Definition at line 49 of file formulaLiCo.hh.

◆ cB_

const Real concepts::FormulaLiCo::cB_
private

Definition at line 50 of file formulaLiCo.hh.

◆ frmA_

const Formula<Real>& concepts::FormulaLiCo::frmA_
private

Definition at line 47 of file formulaLiCo.hh.

◆ frmB_

const Formula<Real>& concepts::FormulaLiCo::frmB_
private

Definition at line 48 of file formulaLiCo.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