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 is the abstract base class for nodes. All allowed node types must inherit from jkmpNode. More...
#include <jkqtpmathparser.h>
Public Member Functions | |
jkmpNode (JKQTPMathParser *parser_=nullptr, jkmpNode *parent_=nullptr) | |
virtual | ~jkmpNode () |
virtual class destructor | |
virtual jkmpResult | evaluate ()=0 |
evaluate this node | |
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 | |
Protected Attributes | |
jkmpNode * | parent |
points to the parent node | |
JKQTPMathParser * | parser |
points to the parser object that is used to evaluate this node | |
This class is the abstract base class for nodes. All allowed node types must inherit from jkmpNode.
JKQTPMathParser::jkmpNode::jkmpNode | ( | JKQTPMathParser * | parser_ = nullptr , |
jkmpNode * | parent_ = nullptr |
||
) |
|
virtual |
virtual class destructor
|
pure virtual |
evaluate this node
Implemented in JKQTPMathParser::jkmpBinaryArithmeticNode, JKQTPMathParser::jkmpBinaryBoolNode, JKQTPMathParser::jkmpCompareNode, JKQTPMathParser::jkmpUnaryNode, JKQTPMathParser::jkmpVariableAssignNode, JKQTPMathParser::jkmpConstantNode, JKQTPMathParser::jkmpVariableNode, JKQTPMathParser::jkmpFunctionNode, and JKQTPMathParser::jkmpNodeList.
jkmpNode * JKQTPMathParser::jkmpNode::getParent | ( | ) |
returns a pointer to the parent node
JKQTPMathParser * JKQTPMathParser::jkmpNode::getParser | ( | ) |
return a pointer to the JKQTPMathParser
void JKQTPMathParser::jkmpNode::setParent | ( | jkmpNode * | par | ) |
sets the parent node
void JKQTPMathParser::jkmpNode::setParser | ( | JKQTPMathParser * | mp | ) |
set the JKQTPMathParser
|
protected |
points to the parent node
|
protected |
points to the parser object that is used to evaluate this node