Belle II Software development
|
Struct to construct new variable function objects from a name or a double value or to apply operations on these variable function objects. More...
#include <VariableFormulaConstructor.h>
Public Types | |
typedef Variable::Manager::FunctionPtr | type |
Return value we want for the FormulaParser::parse. | |
typedef FormulaParserBase::EOperator | Op |
Shorthand for the operator enum. | |
Public Member Functions | |
type | operator() (const std::string &name) |
Construct a variable from a given name. | |
type | operator() (double value) |
Construct a variable from a double value. | |
type | operator() (Op op, const type &a, const type &b) |
Apply operator on two variables. | |
type | operator() (Op op, double &a, const type &b) |
Apply operator on a double and a variable. | |
type | operator() (Op op, const type &a, double b) |
Apply operator on a variable and a double. | |
Struct to construct new variable function objects from a name or a double value or to apply operations on these variable function objects.
Used for the formula()
meta variable and passed to FormulaParser
Definition at line 20 of file VariableFormulaConstructor.h.
typedef FormulaParserBase::EOperator Op |
Shorthand for the operator enum.
Definition at line 24 of file VariableFormulaConstructor.h.
typedef Variable::Manager::FunctionPtr type |
Return value we want for the FormulaParser::parse.
Definition at line 22 of file VariableFormulaConstructor.h.
|
inline |
Construct a variable from a given name.
Definition at line 26 of file VariableFormulaConstructor.h.
|
inline |
Construct a variable from a double value.
Definition at line 34 of file VariableFormulaConstructor.h.
Apply operator on two variables.
Definition at line 40 of file VariableFormulaConstructor.h.
Apply operator on a variable and a double.
Definition at line 182 of file VariableFormulaConstructor.h.
Apply operator on a double and a variable.
Definition at line 121 of file VariableFormulaConstructor.h.