Isis 3 Programmer Reference
InlineInfixToPostfix.h
1#ifndef InlineInfixToPostfix_h
2#define InlineInfixToPostfix_h
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
16namespace 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
51
52 };
53
54} // Namespace Isis
55
56#endif
InfixOperator and InfixFunction are helper classes for InfixToPostfix.
Converter for math equations.
A parser for converting equation strings to postfix.
bool isScalar(const QString &scalar)
Determines whether the given token represents a scalar value (i.e.
virtual InfixOperator * findOperator(QString element)
This method will first search the recognized list of operators and functions for the given token.
void initialize()
Adds several infix operators and functions to the operator list that are not already recognized by th...
bool isVariable(const QString &str)
Determines whether the given token is a variable and, if so, appends it to the list of variables.
InlineInfixToPostfix()
Constructs an InlineInfixToPostfix object.
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,...
bool exists(const QString &str)
Determines whether the given string exists as a recognized variable.
QStringList m_variables
The list of variables (represented as strings).
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16