Combines two piecewise defined formulas with an operation, e.g. More...
#include <formula.hh>


Public Types | |
| typedef concepts::Realtype< F > ::type | G |
| typedef F | value_type |
Public Member Functions | |
| virtual PiecewiseFormulaCombine< F, G, H, I > * | clone () const |
| Virtual copy constructor. | |
| virtual const F & | dflt_value () const |
| Gives default value. | |
| virtual F & | dflt_value () |
| Gives default value. | |
| virtual F | operator() (const Connector &cell, const Real p, const Real t=0.0) const |
| Gives the value in an particular cell on a particular point. | |
| virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const =0 |
| virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const =0 |
| Evaluates the formula. | |
| 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< G > &elm, const Real p, const Real t=0.0) const |
| virtual F | operator() (const Connector &cell, const Real3d &p, const Real t=0.0) const |
| virtual F | operator() (const Connector &cell, const Real2d &p, const Real t=0.0) const |
| virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const =0 |
| PiecewiseFormulaCombine (const PiecewiseFormulaBase< G > &formula1, const PiecewiseFormulaBase< H > &formula2) | |
| Constructor. | |
| virtual | ~PiecewiseFormulaCombine () |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| std::auto_ptr< const PiecewiseFormulaBase< G > > | formula1_ |
| formulas | |
| std::auto_ptr< const PiecewiseFormulaBase< H > > | formula2_ |
| const I | fun_ |
| operation | |
Combines two piecewise defined formulas with an operation, e.g.
multiplication
Definition at line 458 of file formula.hh.
typedef concepts::Realtype<F>::type concepts::PiecewiseFormulaBase< F >::G [inherited] |
Reimplemented in concepts::Formula< F >, concepts::Formula< concepts::Point< Cmplx, 2 > >, concepts::Formula< Point< F, dim > >, concepts::Formula< Cmplx >, concepts::Formula< Real >, and concepts::Formula< Real2d >.
Definition at line 40 of file piecewiseFormula.hh.
typedef F concepts::ElementFormula< F, concepts::Realtype< F >::type >::value_type [inherited] |
Reimplemented in concepts::Formula< F >.
Definition at line 31 of file elementFormula.hh.
| concepts::PiecewiseFormulaCombine< F, G, H, I >::PiecewiseFormulaCombine | ( | const PiecewiseFormulaBase< G > & | formula1, |
| const PiecewiseFormulaBase< H > & | formula2 | ||
| ) |
Constructor.
| virtual concepts::PiecewiseFormulaCombine< F, G, H, I >::~PiecewiseFormulaCombine | ( | ) | [inline, virtual] |
Definition at line 463 of file formula.hh.
| virtual PiecewiseFormulaCombine<F,G,H,I>* concepts::PiecewiseFormulaCombine< F, G, H, I >::clone | ( | ) | const [virtual] |
Virtual copy constructor.
Implements concepts::PiecewiseFormulaBase< F >.
| virtual const F& concepts::PiecewiseFormulaBase< F >::dflt_value | ( | ) | const [inline, virtual, inherited] |
Gives default value.
Definition at line 76 of file piecewiseFormula.hh.
| virtual F& concepts::PiecewiseFormulaBase< F >::dflt_value | ( | ) | [inline, virtual, inherited] |
Gives default value.
Definition at line 78 of file piecewiseFormula.hh.
| virtual std::ostream& concepts::PiecewiseFormulaCombine< F, G, H, I >::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::PiecewiseFormulaBase< F >.
| virtual F concepts::ElementFormula< F, concepts::Realtype< F >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< F >::type > & | elm, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
| virtual F concepts::ElementFormula< F, concepts::Realtype< F >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< F >::type > & | elm, |
| const Real | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
Evaluates the formula.
| elm | Element |
| p | Point in space in local element coordinates |
| t | Point in time |
| virtual F concepts::PiecewiseFormulaBase< F >::operator() | ( | const ElementWithCell< G > & | elm, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual, inherited] |
Definition at line 58 of file piecewiseFormula.hh.
| virtual F concepts::PiecewiseFormulaBase< F >::operator() | ( | const ElementWithCell< G > & | elm, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual, inherited] |
Definition at line 52 of file piecewiseFormula.hh.
| virtual F concepts::PiecewiseFormulaCombine< F, G, H, I >::operator() | ( | const Connector & | cell, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [virtual] |
Implements concepts::PiecewiseFormulaBase< F >.
| virtual F concepts::PiecewiseFormulaCombine< F, G, H, I >::operator() | ( | const Connector & | cell, |
| const Real | p, | ||
| const Real | t = 0.0 |
||
| ) | const [virtual] |
Gives the value in an particular cell on a particular point.
Implements concepts::PiecewiseFormulaBase< F >.
| virtual F concepts::PiecewiseFormulaCombine< F, G, H, I >::operator() | ( | const Connector & | cell, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [virtual] |
Implements concepts::PiecewiseFormulaBase< F >.
| virtual F concepts::PiecewiseFormulaBase< F >::operator() | ( | const ElementWithCell< G > & | elm, |
| const Real | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual, inherited] |
Definition at line 47 of file piecewiseFormula.hh.
| virtual F concepts::ElementFormula< F, concepts::Realtype< F >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< F >::type > & | elm, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
std::auto_ptr<const PiecewiseFormulaBase<G> > concepts::PiecewiseFormulaCombine< F, G, H, I >::formula1_ [private] |
formulas
Definition at line 476 of file formula.hh.
std::auto_ptr<const PiecewiseFormulaBase<H> > concepts::PiecewiseFormulaCombine< F, G, H, I >::formula2_ [private] |
Definition at line 477 of file formula.hh.
const I concepts::PiecewiseFormulaCombine< F, G, H, I >::fun_ [private] |
operation
Definition at line 479 of file formula.hh.