CCIMXDesktop
 
Loading...
Searching...
No Matches
UnaryOpTreeNode.h
1#ifndef UNARYOPTREENODE_H
2#define UNARYOPTREENODE_H
3#include "ParseExceptions.h"
4#include "TreeNodeBase.h"
5#include <QChar>
6
13public:
20 UnaryOpTreeNode(QChar oper, TreeNodeBase* child);
27 double evaluate() const override;
28
29private:
30 QChar op;
31 TreeNodeBase* operand;
32};
33
34#endif // UNARYOPTREENODE_H
UnaryOpTreeNode is a derived node of TreeNodeBase, which handles the unary calc.
Definition UnaryOpTreeNode.h:12
double evaluate() const override
evaluate the expressions
Definition UnaryOpTreeNode.cpp:8
Tree Node is expected to be like this!
Definition TreeNodeBase.h:7