JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
This class represents a binary arithmetic operation: add (+), subtract (-), multiply (*), divide (/), a to the power of b (a^b) More...
#include <jkqtpmathparser.h>
Public Member Functions | |
jkmpBinaryArithmeticNode (char op, jkmpNode *l, jkmpNode *r, JKQTPMathParser *p, jkmpNode *par) | |
constructor for a jkmpBinaryArithmeticNode | |
virtual | ~jkmpBinaryArithmeticNode () override |
standard destructor, also destroy the children (recursively) | |
virtual jkmpResult | evaluate () override |
evaluate this node | |
Public Member Functions inherited from JKQTPMathParser::jkmpNode | |
jkmpNode (JKQTPMathParser *parser_=nullptr, jkmpNode *parent_=nullptr) | |
virtual | ~jkmpNode () |
virtual class destructor | |
jkmpNode * | getParent () |
returns a pointer to the parent node | |
JKQTPMathParser * | getParser () |
return a pointer to the JKQTPMathParser | |
void | setParent (jkmpNode *par) |
sets the parent node | |
void | setParser (JKQTPMathParser *mp) |
set the JKQTPMathParser | |
Private Attributes | |
jkmpNode * | left |
char | operation |
jkmpNode * | right |
Additional Inherited Members | |
Protected Attributes inherited from JKQTPMathParser::jkmpNode | |
jkmpNode * | parent |
points to the parent node | |
JKQTPMathParser * | parser |
points to the parser object that is used to evaluate this node | |
This class represents a binary arithmetic operation: add (+), subtract (-), multiply (*), divide (/), a to the power of b (a^b)
JKQTPMathParser::jkmpBinaryArithmeticNode::jkmpBinaryArithmeticNode | ( | char | op, |
jkmpNode * | l, | ||
jkmpNode * | r, | ||
JKQTPMathParser * | p, | ||
jkmpNode * | par | ||
) |
constructor for a jkmpBinaryArithmeticNode
op | the operation to be performed: add (+), subtract (-), multiply (*), divide (/), a to the power of b (a^b) |
l | left child node/operand |
r | right child node/operand |
p | a pointer to a JKQTPMathParser object |
par | a pointer to the parent node |
|
overridevirtual |
standard destructor, also destroy the children (recursively)
|
overridevirtual |
evaluate this node
Implements JKQTPMathParser::jkmpNode.
|
private |
|
private |
|
private |