concepts::PiecewiseFormulaFun< F, G > Class Template Referenceabstract
Piecewise defined function as an analytical function of another piecewiese defined function. More...
#include <formula.hh>
Public Types | |
typedef concepts::Realtype< F >::type | G |
typedef F | value_type |
Public Member Functions | |
void | clear () |
Clears the operations. More... | |
virtual PiecewiseFormulaFun< F, G > * | clone () const |
Virtual constructor. More... | |
virtual ElementFormula< F, concepts::Realtype< F >::type > * | clone () const=0 |
Virtual copy constructor. More... | |
virtual F & | dflt_value () |
Gives default value. More... | |
virtual const F & | dflt_value () const |
Gives default value. More... | |
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. More... | |
virtual F | operator() (const Connector &cell, const Real2d &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 ElementWithCell< concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
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 |
PiecewiseFormulaFun< F, G > & | operator*= (const F n) |
PiecewiseFormulaFun< F, G > & | operator+= (const F n) |
PiecewiseFormulaFun (PiecewiseFormulaBase< G > &formula) | |
PiecewiseFormulaFun< F, G > & | reciprocal () |
virtual | ~PiecewiseFormulaFun () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
F | dflt_value_ |
default value More... | |
PiecewiseFormulaBase< G > & | formula_ |
formula More... | |
std::vector< Operation< F > * > | operations_ |
operations More... | |
Detailed Description
template<typename F, typename G = F>
class concepts::PiecewiseFormulaFun< F, G >
Piecewise defined function as an analytical function of another piecewiese defined function.
There are operations for the result of the contained function.
Definition at line 425 of file formula.hh.
Member Typedef Documentation
◆ G
|
inherited |
Definition at line 45 of file piecewiseFormula.hh.
◆ value_type
|
inherited |
Definition at line 37 of file elementFormula.hh.
Constructor & Destructor Documentation
◆ PiecewiseFormulaFun()
concepts::PiecewiseFormulaFun< F, G >::PiecewiseFormulaFun | ( | PiecewiseFormulaBase< G > & | formula | ) |
◆ ~PiecewiseFormulaFun()
|
virtual |
Member Function Documentation
◆ clear()
void concepts::PiecewiseFormulaFun< F, G >::clear | ( | ) |
Clears the operations.
◆ clone() [1/2]
|
virtual |
Virtual constructor.
Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.
Implements concepts::PiecewiseFormulaBase< F >.
◆ clone() [2/2]
|
pure virtualinherited |
Virtual copy constructor.
◆ dflt_value() [1/2]
|
inlinevirtualinherited |
Gives default value.
Definition at line 83 of file piecewiseFormula.hh.
◆ dflt_value() [2/2]
|
inlinevirtualinherited |
Gives default value.
Definition at line 81 of file piecewiseFormula.hh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::PiecewiseFormulaBase< F >.
◆ operator()() [1/9]
|
virtual |
Gives the value in an particular cell on a particular point.
Implements concepts::PiecewiseFormulaBase< F >.
◆ operator()() [2/9]
|
virtual |
Implements concepts::PiecewiseFormulaBase< F >.
◆ operator()() [3/9]
|
virtual |
Implements concepts::PiecewiseFormulaBase< F >.
◆ operator()() [4/9]
|
pure virtualinherited |
◆ operator()() [5/9]
|
pure virtualinherited |
◆ operator()() [6/9]
|
pure virtualinherited |
◆ operator()() [7/9]
|
inlinevirtualinherited |
Definition at line 52 of file piecewiseFormula.hh.
◆ operator()() [8/9]
|
inlinevirtualinherited |
Definition at line 57 of file piecewiseFormula.hh.
◆ operator()() [9/9]
|
inlinevirtualinherited |
Definition at line 63 of file piecewiseFormula.hh.
◆ operator*=()
PiecewiseFormulaFun<F,G>& concepts::PiecewiseFormulaFun< F, G >::operator*= | ( | const F | n | ) |
◆ operator+=()
PiecewiseFormulaFun<F,G>& concepts::PiecewiseFormulaFun< F, G >::operator+= | ( | const F | n | ) |
◆ reciprocal()
PiecewiseFormulaFun<F,G>& concepts::PiecewiseFormulaFun< F, G >::reciprocal | ( | ) |
Member Data Documentation
◆ dflt_value_
|
privateinherited |
default value
Definition at line 88 of file piecewiseFormula.hh.
◆ formula_
|
private |
formula
Definition at line 447 of file formula.hh.
◆ operations_
|
private |
operations
Definition at line 449 of file formula.hh.
The documentation for this class was generated from the following file:
- geometry/formula.hh