![]() |
NDEVR
API Documentation
|
Logic for storing the definition of a formula, that can be displayed to the end-user. More...
Public Member Functions | |
| Buffer< String > | dependentVariables () const |
| Retrieves the list of variable names this formula depends on. | |
| String | displayFormula (bool simplify) const |
| Produces a display-ready version of the formula string. | |
| Equation< fltp08 > | equation () const |
| Converts the formula into an evaluatable Equation object. | |
| String | simplifiedFormula () const |
| Produces a simplified version of the formula string. | |
| fltp08 | solve () const |
| Evaluates the formula and returns the numeric result. | |
Static Public Member Functions | |
| static String | DisplayString (const String &name) |
| Formats a variable name for user-facing display. | |
Public Attributes | |
| String | category |
| The category grouping this formula belongs to. | |
| Dictionary< String, String > | dependent_variables |
| A mapping of variable names to their current value strings. | |
| String | description |
| A textual description of what the formula computes. | |
| String | formula |
| The raw formula expression string. | |
| TranslatedString | name |
| The user-facing display name of the formula. | |
| ConstPointer< Unit > | result_unit |
| The specific unit of the formula result. | |
| UnitCategory | result_unit_type = UnitCategory::e_undefined_unit |
| The unit category of the formula result. | |
| String | symbol |
| The shorthand symbol representing the formula result. | |
Logic for storing the definition of a formula, that can be displayed to the end-user.
Retrieves the list of variable names this formula depends on.
| String Formula::displayFormula | ( | bool | simplify | ) | const |
Produces a display-ready version of the formula string.
| [in] | simplify | Whether to return a simplified form of the formula. |
| String Formula::simplifiedFormula | ( | ) | const |
Produces a simplified version of the formula string.
| fltp08 Formula::solve | ( | ) | const |
Evaluates the formula and returns the numeric result.