UnaryOpTreeNode is a derived node of TreeNodeBase, which handles the unary calc.
More...
#include <UnaryOpTreeNode.h>
UnaryOpTreeNode is a derived node of TreeNodeBase, which handles the unary calc.
◆ UnaryOpTreeNode()
UnaryOpTreeNode::UnaryOpTreeNode |
( |
QChar |
oper, |
|
|
TreeNodeBase * |
child |
|
) |
| |
Construct a new Unary Op Tree Node object.
- Parameters
-
◆ evaluate()
double UnaryOpTreeNode::evaluate |
( |
| ) |
const |
|
overridevirtual |
evaluate the expressions
- Returns
- double
Implements TreeNodeBase.
The documentation for this class was generated from the following files:
- builtin/app/Caculator/core/UnaryOpTreeNode.h
- builtin/app/Caculator/core/UnaryOpTreeNode.cpp