![]() |
API Documentation
|
Stores in a compressed way, a formula that can be solved. A formula is made of up variables, numbers, and operations. Formulas can be simplified, or potentially solved to a numeric value. More...
#include <Equation.h>
Classes | |
| struct | EquationPart |
Public Member Functions | |
| void | add (char operation, const String &value) |
| void | add (char operation, t_type value) |
| void | addOrderOfOps (char operation, t_type value) |
| Equation () | |
| void | refreshVariables () |
| void | setVariable (const String &var, t_type value) |
| t_type | solve () const |
| t_type | solve (t_type start, uint04 ¤t_index) const |
Static Public Member Functions | |
| static uint04 | getOrderPriority (const char op) |
| static t_type | solve (t_type left, const char op, t_type right) |
Public Attributes | |
| Buffer< EquationPart > | m_equation_stack |
| Dictionary< String, Buffer< uint04 > > | m_variable_locations |
| Dictionary< String, t_type > | m_variables |
Stores in a compressed way, a formula that can be solved. A formula is made of up variables, numbers, and operations. Formulas can be simplified, or potentially solved to a numeric value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
| Buffer<EquationPart> m_equation_stack |
| Dictionary<String, Buffer<uint04> > m_variable_locations |
| Dictionary<String, t_type> m_variables |