concepts::ParsedFormula< Real > Class Referenceabstract
#include <parsedFormula.hh>
Public Types | |
typedef Realtype< Real >::type | G |
typedef concepts::Sequence< std::pair< std::string, std::string > > | RepSeq |
typedef Real | value_type |
Public Member Functions | |
virtual ParsedFormula< Real > * | clone () const |
virtual Formula * | clone () const=0 |
virtual Real | operator() (const Real p, const Real t=0.0) const |
Application operator. More... | |
virtual Real | operator() (const Real2d &p, const Real t=0.0) const |
Application operator. More... | |
virtual Real | operator() (const Real3d &p, const Real t=0.0) const |
Application operator. More... | |
ParsedFormula (const std::string formula) | |
Constructor. More... | |
void | set (const std::string formula, uint i=0, RepSeq rep=RepSeq()) |
Sets the i th formula. More... | |
virtual | ~ParsedFormula () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Real | process_ (const Real3d &p, const Real t=0.0, uint i=0) const |
Processing the i th formula (with time-dependency variable) More... | |
Protected Attributes | |
std::string | formula_ [dim] |
The original formula. More... | |
Private Attributes | |
uint | len_ [dim] |
Length of the parsed formula More... | |
Array< uchar > | pgm_ [dim] |
The parsed formula. More... | |
Detailed Description
- Examples
- hpFEM2d.cc, and parallelizationTutorial.cc.
Definition at line 97 of file parsedFormula.hh.
Member Typedef Documentation
◆ G
|
inherited |
Definition at line 37 of file formula.hh.
◆ RepSeq
|
inherited |
Definition at line 62 of file parsedFormula.hh.
◆ value_type
|
inherited |
Definition at line 36 of file formula.hh.
Constructor & Destructor Documentation
◆ ParsedFormula()
concepts::ParsedFormula< Real >::ParsedFormula | ( | const std::string | formula | ) |
Constructor.
◆ ~ParsedFormula()
|
virtual |
Member Function Documentation
◆ clone() [1/2]
|
virtual |
Reimplemented in concepts::SphericalFormula< Real >.
◆ clone() [2/2]
|
pure virtualinherited |
◆ info()
|
protectedvirtual |
Reimplemented in concepts::SphericalFormula< Real >.
◆ 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]
|
virtual |
Application operator.
Evaluates the formula.
Implements concepts::Formula< Real >.
Reimplemented in concepts::SphericalFormula< Real >.
◆ operator()() [5/6]
|
virtual |
Application operator.
Evaluates the formula.
Implements concepts::Formula< Real >.
Reimplemented in concepts::SphericalFormula< Real >.
◆ operator()() [6/6]
|
virtual |
Application operator.
Evaluates the formula.
Implements concepts::Formula< Real >.
Reimplemented in concepts::SphericalFormula< Real >.
◆ process_()
|
protectedinherited |
Processing the i
th formula (with time-dependency variable)
◆ set()
|
inherited |
Sets the i
th formula.
Member Data Documentation
◆ formula_
|
protectedinherited |
The original formula.
Definition at line 85 of file parsedFormula.hh.
◆ len_
|
privateinherited |
Length of the parsed formula
Definition at line 90 of file parsedFormula.hh.
◆ pgm_
|
privateinherited |
The parsed formula.
Definition at line 88 of file parsedFormula.hh.
The documentation for this class was generated from the following file:
- formula/parsedFormula.hh