CCIMXDesktop
 
Loading...
Searching...
No Matches
UnaryOpTreeNode Class Reference

UnaryOpTreeNode is a derived node of TreeNodeBase, which handles the unary calc. More...

#include <UnaryOpTreeNode.h>

Inheritance diagram for UnaryOpTreeNode:
TreeNodeBase

Public Member Functions

 UnaryOpTreeNode (QChar oper, TreeNodeBase *child)
 Construct a new Unary Op Tree Node object.
 
double evaluate () const override
 evaluate the expressions
 

Detailed Description

UnaryOpTreeNode is a derived node of TreeNodeBase, which handles the unary calc.

Constructor & Destructor Documentation

◆ UnaryOpTreeNode()

UnaryOpTreeNode::UnaryOpTreeNode ( QChar  oper,
TreeNodeBase child 
)

Construct a new Unary Op Tree Node object.

Parameters
oper
child

Member Function Documentation

◆ evaluate()

double UnaryOpTreeNode::evaluate ( ) const
overridevirtual

evaluate the expressions

Returns
double

Implements TreeNodeBase.


The documentation for this class was generated from the following files: