34 CubeInfixToPostfix::CubeInfixToPostfix() {
45 void CubeInfixToPostfix::initialize() {
79 bool CubeInfixToPostfix::isKnownSymbol(QString representation) {
80 for(
int i = 0; i < p_operators.size(); i++) {
81 if(representation.compare(p_operators[i]->inputString()) == 0) {
86 bool isFunction = (representation.size() > 1);
87 if(representation[0] ==
'f') {
88 for(
int i = 1; isFunction && i < representation.size(); i++) {
89 isFunction &= (representation[i] >=
'0' && representation[i] <=
'9');
99 InfixOperator *CubeInfixToPostfix::findOperator(QString representation) {
101 return InfixToPostfix::findOperator(representation);
106 bool isFunction = (representation.size() > 1);
107 if(representation[0] ==
'f') {
108 for(
int i = 1; i < representation.size(); i++) {
109 isFunction &= (representation[i] >=
'0' && representation[i] <=
'9');
118 return p_operators[p_operators.size()-1];
122 "The operator '" + representation +
"' is not recognized.",
Namespace for the standard library.
InfixOperator and InfixFunction are helper classes for InfixToPostfix.
InfixOperator and InfixFunction are helper classes for InfixToPostfix.
#define _FILEINFO_
Macro for the filename and line number.
Namespace for ISIS/Bullet specific routines.