Isis 3.0 Programmer Reference
Back | 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 
67 
68  };
69 
70 } // Namespace Isis
71 
72 #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.
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...

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:20:37