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
Loading...
Searching...
No Matches

This class represents a list of jkmpNode. More...

#include <jkqtpmathparser.h>

Inheritance diagram for JKQTPMathParser::jkmpNodeList:
[legend]
Collaboration diagram for JKQTPMathParser::jkmpNodeList:
[legend]

Public Member Functions

 jkmpNodeList (JKQTPMathParser *p)
 constructor for a jkmpNodeList
 
virtual ~jkmpNodeList () override
 standard destructor, also destroy the children (recursively)
 
void add (jkmpNode *n)
 add a jkmpNode n to the list
 
virtual jkmpResult evaluate () override
 evaluate the node
 
int getCount ()
 get the number of nodes in the list
 
- Public Member Functions inherited from JKQTPMathParser::jkmpNode
 jkmpNode (JKQTPMathParser *parser_=nullptr, jkmpNode *parent_=nullptr)
 
virtual ~jkmpNode ()
 virtual class destructor
 
jkmpNodegetParent ()
 returns a pointer to the parent node
 
JKQTPMathParsergetParser ()
 return a pointer to the JKQTPMathParser

 
void setParent (jkmpNode *par)
 sets the parent node

 
void setParser (JKQTPMathParser *mp)
 set the JKQTPMathParser

 

Private Attributes

std::vector< jkmpNode * > list
 

Additional Inherited Members

- Protected Attributes inherited from JKQTPMathParser::jkmpNode
jkmpNodeparent
 points to the parent node
 
JKQTPMathParserparser
 points to the parser object that is used to evaluate this node
 

Detailed Description

This class represents a list of jkmpNode.

when evaluating the result will be the result of the last node in the list.

Constructor & Destructor Documentation

◆ jkmpNodeList()

JKQTPMathParser::jkmpNodeList::jkmpNodeList ( JKQTPMathParser p)

constructor for a jkmpNodeList

Parameters
pa pointer to a JKQTPMathParser object

◆ ~jkmpNodeList()

virtual JKQTPMathParser::jkmpNodeList::~jkmpNodeList ( )
overridevirtual

standard destructor, also destroy the children (recursively)

Member Function Documentation

◆ add()

void JKQTPMathParser::jkmpNodeList::add ( jkmpNode n)

add a jkmpNode n to the list

◆ evaluate()

virtual jkmpResult JKQTPMathParser::jkmpNodeList::evaluate ( )
overridevirtual

evaluate the node

Implements JKQTPMathParser::jkmpNode.

◆ getCount()

int JKQTPMathParser::jkmpNodeList::getCount ( )

get the number of nodes in the list

Member Data Documentation

◆ list

std::vector<jkmpNode*> JKQTPMathParser::jkmpNodeList::list
private

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