Isis Developer Reference
InlineInfixToPostfix.h
Go to the documentation of this file.
1 #ifndef InlineInfixToPostfix_h
2 #define InlineInfixToPostfix_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 // parent class, has InfixOperator type
11 #include "InfixToPostfix.h"
12 
13 #include <QString>
14 #include <QStringList>
15 
16 namespace Isis {
35 
36  public:
38  virtual ~InlineInfixToPostfix();
39 
40  protected:
41  virtual bool isKnownSymbol(QString representation);
42  virtual InfixOperator *findOperator(QString element);
43 
44  private:
45  void initialize();
46  bool exists(const QString &str);
47  bool isScalar(const QString &scalar);
48  bool isVariable(const QString &str);
49 
50  QStringList m_variables;
51 
52  };
53 
54 } // Namespace Isis
55 
56 #endif
Isis::InlineInfixToPostfix::InlineInfixToPostfix
InlineInfixToPostfix()
Constructs an InlineInfixToPostfix object.
Definition: InlineInfixToPostfix.cpp:24
Isis::InfixToPostfix::findOperator
virtual InfixOperator * findOperator(QString representation)
This method will return a pointer to the operator represented by 'representation.
Definition: InfixToPostfix.cpp:347
Isis::InfixFunction
InfixOperator and InfixFunction are helper classes for InfixToPostfix.
Definition: InfixToPostfix.h:130
Isis::InlineInfixToPostfix::~InlineInfixToPostfix
virtual ~InlineInfixToPostfix()
Destroys the InlineInfixToPostfix object.
Definition: InlineInfixToPostfix.cpp:32
InfixToPostfix.h
Isis::InlineInfixToPostfix::isKnownSymbol
virtual bool isKnownSymbol(QString representation)
This method attempts to verify that the given argument is recognized as a valid function,...
Definition: InlineInfixToPostfix.cpp:44
QStringList
IString.h
InlineInfixToPostfix.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::InlineInfixToPostfix
A parser for converting equation strings to postfix.
Definition: InlineInfixToPostfix.h:34
Isis::InfixToPostfix::p_operators
QList< InfixOperator * > p_operators
Definition: InfixToPostfix.h:59
Isis::InfixOperator
InfixOperator and InfixFunction are helper classes for InfixToPostfix.
Definition: InfixToPostfix.h:81
Isis::InfixToPostfix
Converter for math equations.
Definition: InfixToPostfix.h:46
Isis::IException
Isis exception class.
Definition: IException.h:91
IException.h
Isis::toDouble
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
Isis::InfixToPostfix::isKnownSymbol
virtual bool isKnownSymbol(QString representation)
This method will return true if it believes the argument represents a valid function or operator.
Definition: InfixToPostfix.cpp:253
Isis::InlineInfixToPostfix::findOperator
virtual InfixOperator * findOperator(QString element)
This method will first search the recognized list of operators and functions for the given token.
Definition: InlineInfixToPostfix.cpp:81
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126