Isis 3 Programmer Reference
InlineInfixToPostfix.h
Go to the documentation of this file.
1 #ifndef InlineInfixToPostfix_h
2 #define InlineInfixToPostfix_h
3 
27 // parent class, has InfixOperator type
28 #include "InfixToPostfix.h"
29 
30 #include <QString>
31 #include <QStringList>
32 
33 namespace Isis {
52 
53  public:
55  virtual ~InlineInfixToPostfix();
56 
57  protected:
58  virtual bool isKnownSymbol(QString representation);
59  virtual InfixOperator *findOperator(QString element);
60 
61  private:
62  void initialize();
63  bool exists(const QString &str);
64  bool isScalar(const QString &scalar);
65  bool isVariable(const QString &str);
66 
68 
69  };
70 
71 } // Namespace Isis
72 
73 #endif
A parser for converting equation strings to postfix.
QStringList m_variables
The list of variables (represented as strings).
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.
virtual ~InlineInfixToPostfix()
Destroys the InlineInfixToPostfix object.
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.
Definition: Apollo.h:31
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...