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

base class for all math markup parsers used by JKQTMathText More...

#include <jkqtmathtextparser.h>

Inheritance diagram for JKQTMathTextParser:
[legend]
Collaboration diagram for JKQTMathTextParser:
[legend]

Public Member Functions

 JKQTMathTextParser (JKQTMathText *parent=nullptr)
 class constructor
 
virtual ~JKQTMathTextParser ()
 class destructor
 
JKQTMathTextgetParentMathText ()
 parentMathText
 
const JKQTMathTextgetParentMathText () const
 parentMathText
 
virtual JKQTMathTextNodeparse (const QString &text, JKQTMathText::ParseOptions options=JKQTMathText::DefaultParseOptions)=0
 parse the given mathematical markup string.
 

Protected Member Functions

void addToErrorList (const QString &error)
 adds a new error to the JKQTMathText referenced by parentMathText
 
void clearErrorList ()
 clears the error list in the JKQTMathText referenced by parentMathText
 

Protected Attributes

JKQTMathTextparentMathText
 JKQTMathText that instanciated and uses this parser.
 

Detailed Description

base class for all math markup parsers used by JKQTMathText

See also
JKQTMathTextLatexParser for an implementation of a JKQTMathTextParser that parses LaTeX markup.

Constructor & Destructor Documentation

◆ JKQTMathTextParser()

JKQTMathTextParser::JKQTMathTextParser ( JKQTMathText parent = nullptr)

class constructor

◆ ~JKQTMathTextParser()

virtual JKQTMathTextParser::~JKQTMathTextParser ( )
virtual

class destructor

Member Function Documentation

◆ addToErrorList()

void JKQTMathTextParser::addToErrorList ( const QString &  error)
protected

adds a new error to the JKQTMathText referenced by parentMathText

See also
JKQTMathText::addToErrorList()

◆ clearErrorList()

void JKQTMathTextParser::clearErrorList ( )
protected

clears the error list in the JKQTMathText referenced by parentMathText

See also
JKQTMathText::clearErrorList()

◆ getParentMathText() [1/2]

JKQTMathText * JKQTMathTextParser::getParentMathText ( )

parentMathText

◆ getParentMathText() [2/2]

const JKQTMathText * JKQTMathTextParser::getParentMathText ( ) const

parentMathText

◆ parse()

virtual JKQTMathTextNode * JKQTMathTextParser::parse ( const QString &  text,
JKQTMathText::ParseOptions  options = JKQTMathText::DefaultParseOptions 
)
pure virtual

parse the given mathematical markup string.

Parameters
textthe markup to be parsed
optionsOptions for parsing,
See also
ParseOptions
Returns
the memory representation of the markup nullptr on failure.

Implemented in JKQTMathTextLatexParser.

Member Data Documentation

◆ parentMathText

JKQTMathText* JKQTMathTextParser::parentMathText
protected

JKQTMathText that instanciated and uses this parser.


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