Isis 3.0
Home
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 {
51 
52  public:
54  virtual ~InlineInfixToPostfix();
55 
56  protected:
57  virtual bool isKnownSymbol(QString representation);
58  virtual InfixOperator *findOperator(QString element);
59 
60  private:
61  void initialize();
62  bool exists(const QString &str);
63  bool isScalar(const QString &scalar);
64  bool isVariable(const QString &str);
65 
66  QStringList m_variables;
67 
68  };
69 
70 } // Namespace Isis
71 
72 #endif
A parser for converting equation strings to postfix.
Definition: InlineInfixToPostfix.h:50
virtual InfixOperator * findOperator(QString element)
This method will first search the recognized list of operators and functions for the given token...
Definition: InlineInfixToPostfix.cpp:98
InfixOperator and InfixFunction are helper classes for InfixToPostfix.
Definition: InfixToPostfix.h:94
virtual ~InlineInfixToPostfix()
Destroys the InlineInfixToPostfix object.
Definition: InlineInfixToPostfix.cpp:49
virtual bool isKnownSymbol(QString representation)
This method attempts to verify that the given argument is recognized as a valid function, operator, scalar, or variable.
Definition: InlineInfixToPostfix.cpp:61
InlineInfixToPostfix()
Constructs an InlineInfixToPostfix object.
Definition: InlineInfixToPostfix.cpp:41
Converter for math equations.
Definition: InfixToPostfix.h:59