Singelton class holding all mathematical expression objects.
More...
#include <FFaMathExprFactory.H>
|
| int | create (int id, const std::string &expression, size_t nvar=1, const char **vars=0) |
| | Creates a new FFaMathFunc instance from the string expression. More...
|
| |
| double | getValue (int id, double arg, int &error) |
| | Evaluates a single-argument math expression. More...
|
| |
| double | getValue (int id, const double *arg, int &error) |
| | Evaluates a multi-argument math expression. More...
|
| |
| double | getDiff (int id, double arg, int &error) |
| | Evaluates the derivative of a single-argument math expression. More...
|
| |
| double | getDiff (int id, size_t idArg, const double *arg, int &error) |
| | Evaluates a derivative of a multi-argument math expression. More...
|
| |
Singelton class holding all mathematical expression objects.
◆ FFaMathExprFactory()
| FFaMathExprFactory::FFaMathExprFactory |
( |
| ) |
|
|
inlineprivate |
The constructor is private to allow singelton construction only.
◆ ~FFaMathExprFactory()
| virtual FFaMathExprFactory::~FFaMathExprFactory |
( |
| ) |
|
|
inlineprivatevirtual |
The destructor is private to allow singelton destruction only.
◆ countArgs()
| size_t FFaMathExprFactory::countArgs |
( |
const std::string & |
expression, |
|
|
const char ** |
vars, |
|
|
std::vector< bool > * |
present = 0 |
|
) |
| |
|
static |
Counts the occurances of arguments vars in expression.
◆ create()
| int FFaMathExprFactory::create |
( |
int |
id, |
|
|
const std::string & |
expression, |
|
|
size_t |
nvar = 1, |
|
|
const char ** |
vars = 0 |
|
) |
| |
Creates a new FFaMathFunc instance from the string expression.
◆ getDiff() [1/2]
| double FFaMathExprFactory::getDiff |
( |
int |
id, |
|
|
double |
arg, |
|
|
int & |
error |
|
) |
| |
Evaluates the derivative of a single-argument math expression.
◆ getDiff() [2/2]
| double FFaMathExprFactory::getDiff |
( |
int |
id, |
|
|
size_t |
idArg, |
|
|
const double * |
arg, |
|
|
int & |
error |
|
) |
| |
Evaluates a derivative of a multi-argument math expression.
◆ getValue() [1/2]
| double FFaMathExprFactory::getValue |
( |
int |
id, |
|
|
const double * |
arg, |
|
|
int & |
error |
|
) |
| |
Evaluates a multi-argument math expression.
◆ getValue() [2/2]
| double FFaMathExprFactory::getValue |
( |
int |
id, |
|
|
double |
arg, |
|
|
int & |
error |
|
) |
| |
Evaluates a single-argument math expression.
◆ FFaSingelton< FFaMathExprFactory >
To allow construction and destruction.
◆ myIndexMap
| std::map<int,FFaMathFunc> FFaMathExprFactory::myIndexMap |
|
private |
The documentation for this class was generated from the following files: