CCIMXDesktop
 
Loading...
Searching...
No Matches
BinaryOpTreeNode Struct Reference

BinaryOpTreeNode is a derived node of TreeNodeBase, which handles the binary calc. More...

#include <BinaryOpTreeNode.h>

Inheritance diagram for BinaryOpTreeNode:
TreeNodeBase

Public Member Functions

 BinaryOpTreeNode (QChar op, TreeNodeBase *left_hand, TreeNodeBase *right_hand)
 Construct a new Binary Op Tree Node object.
 
double evaluate () const override
 evaluate the expressions
 

Detailed Description

BinaryOpTreeNode is a derived node of TreeNodeBase, which handles the binary calc.

Constructor & Destructor Documentation

◆ BinaryOpTreeNode()

BinaryOpTreeNode::BinaryOpTreeNode ( QChar  op,
TreeNodeBase left_hand,
TreeNodeBase right_hand 
)

Construct a new Binary Op Tree Node object.

Parameters
opoperations char
left_handleft expression
right_handright expression

Member Function Documentation

◆ evaluate()

double BinaryOpTreeNode::evaluate ( ) const
overridevirtual

evaluate the expressions

Returns
double

Implements TreeNodeBase.


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