virtual InfixOperator * findOperator(QString representation)
This method will return a pointer to the operator represented by 'representation.
QString tokenizeEquation(const QString &equation)
This method will add spaces between all operators and numbers, making it possible to get each element...
QString convert(const QString &infix)
This method converts infix to postfix.
Converter for math equations.
QString cleanSpaces(QString equation)
This function takes a space-delimited string and removes empty delimiters.
void addOperator(QString &postfix, const InfixOperator &op, std::stack< InfixOperator > &theStack)
This is straight from the algorithm found on page 159 of "Data Structures & Algorithms in Java" Secon...
void uninitialize()
This cleans the known operators/functions list.
bool isFunction(QString representation)
This method will return true if 'representation' is a known function.
virtual bool isKnownSymbol(QString representation)
This method will return true if it believes the argument represents a valid function or operator.
void closeParenthesis(QString &postfix, std::stack< InfixOperator > &theStack)
This is straight from the algorithm found on page 159 of "Data Structures & Algorithms in Java" Secon...
void initialize()
This populates the known operators/functions list.
QString formatFunctionCalls(QString equation)
This method looks through equation for function calls, parenthesizes them, and calls itself again wit...