| SlFormulaItem::SlFormulaItem |
( |
| ) |
|
|
inline |
| SlFormulaItem::SlFormulaItem |
( |
char |
c | ) |
|
Constructor for operators.
| SlFormulaItem::SlFormulaItem |
( |
double |
value | ) |
|
| SlFormulaItem::~SlFormulaItem |
( |
| ) |
|
|
inline |
Default constructor, nothing to see here.
Addition is only possible if both are numbers. data will be summed.
- Exceptions
-
| std::runtime_error | when one of the summed items is not a number. |
Addition is only possible if both are numbers. data will be summed.
- Exceptions
-
| std::runtime_error | when one of the summed items is not a number. |
Addition is only possible if both are numbers. data will be summed.
- Exceptions
-
| std::runtime_error | when one of the summed items is not a number. |
Addition is only possible if both are numbers. data will be summed.
- Exceptions
-
| std::runtime_error | when one of the summed items is not a number. |
| std::string SlFormulaItem::print |
( |
| ) |
|
Returns what for operators and data for numbers.
| double SlFormulaItem::data = 0 |
If the item is a number, data holds the value.
| int SlFormulaItem::precedence |
Precedence is 2 for +, i, 3 for *, / .
The operator symbol or 'n' if number.
The documentation for this class was generated from the following files: