63 if ( representation.isEmpty() )
return (
false);
112 QString msg =
"The token '" + token
113 +
"' is not recognized as an operator, function or variable.";
154 return (
m_variables.contains(token, Qt::CaseInsensitive));
205 if (token.isEmpty())
return (
false);
virtual InfixOperator * findOperator(QString representation)
This method will return a pointer to the operator represented by 'representation. ...
QStringList m_variables
The list of variables (represented as strings).
double toDouble(const QString &string)
Global function to convert from a string to a double.
virtual InfixOperator * findOperator(QString element)
This method will first search the recognized list of operators and functions for the given token...
bool isVariable(const QString &str)
Determines whether the given token is a variable and, if so, appends it to the list of variables...
InfixOperator and InfixFunction are helper classes for InfixToPostfix.
InfixOperator and InfixFunction are helper classes for InfixToPostfix.
virtual ~InlineInfixToPostfix()
Destroys the InlineInfixToPostfix object.
#define _FILEINFO_
Macro for the filename and line number.
A type of error that could only have occurred due to a mistake on the user's part (e...
virtual bool isKnownSymbol(QString representation)
This method attempts to verify that the given argument is recognized as a valid function, operator, scalar, or variable.
bool isScalar(const QString &scalar)
Determines whether the given token represents a scalar value (i.e.
InlineInfixToPostfix()
Constructs an InlineInfixToPostfix object.
Converter for math equations.
Namespace for ISIS/Bullet specific routines.
bool exists(const QString &str)
Determines whether the given string exists as a recognized variable.
void initialize()
Adds several infix operators and functions to the operator list that are not already recognized by th...
virtual bool isKnownSymbol(QString representation)
This method will return true if it believes the argument represents a valid function or operator...