COPASI API  4.40.278
CEvaluationParserBase Class Referenceabstract

#include <CEvaluationLexer.h>

Inheritance diagram for CEvaluationParserBase:
[legend]

Public Member Functions

 CEvaluationParserBase ()
 
size_t getErrorPosition ()
 
std::vector< CEvaluationNode * > * getNodeList ()
 
CEvaluationNodegetRootNode ()
 
const CEvaluationNode::ValueTypegetValueType () const
 
virtual int yylex ()=0
 
virtual int yyparse ()
 
virtual ~ CEvaluationParserBase ()
 

Protected Attributes

CEvaluationNodempNode
 
std::vector< CEvaluationNode * > * mpNodeList
 
size_t mPosition
 
CEvaluationNodempRootNode
 
CEvaluationNode::ValueType mValueType
 

Private Member Functions

void correctErrorPosition ()
 

Detailed Description

This is a base class for the CEvaluationLexer adding member attributes to enhance the internal functionality.

Constructor & Destructor Documentation

◆ CEvaluationParserBase()

CEvaluationParserBase::CEvaluationParserBase ( )
inline

Default constructor

◆ ~ CEvaluationParserBase()

virtual CEvaluationParserBase::~ CEvaluationParserBase ( )
inlinevirtual

Destructor

Member Function Documentation

◆ correctErrorPosition()

void CEvaluationParserBase::correctErrorPosition ( )
inlineprivate

◆ getErrorPosition()

size_t CEvaluationParserBase::getErrorPosition ( )
inline

Referenced by CEvaluationTree::parse().

◆ getNodeList()

std::vector< CEvaluationNode * >* CEvaluationParserBase::getNodeList ( )
inline

Retrieve the generated list of nodes. The user owns the list and is repsonsible for the destruction. To delete the list please use freeNodeList. Please note that each call to yylex() creates a new list which must be destoyed.

Returns
std::vector< CEvaluationNode * > * pNodeList

Referenced by CEvaluationTree::parse().

◆ getRootNode()

CEvaluationNode* CEvaluationParserBase::getRootNode ( )
inline

Referenced by CEvaluationTree::parse().

◆ getValueType()

const CEvaluationNode::ValueType& CEvaluationParserBase::getValueType ( ) const
inline

◆ yylex()

virtual int CEvaluationParserBase::yylex ( )
pure virtual

Implemented in CEvaluationLexer.

◆ yyparse()

Member Data Documentation

◆ mpNode

CEvaluationNode* CEvaluationParserBase::mpNode
protected

◆ mpNodeList

std::vector< CEvaluationNode * >* CEvaluationParserBase::mpNodeList
protected

◆ mPosition

size_t CEvaluationParserBase::mPosition
protected

◆ mpRootNode

CEvaluationNode* CEvaluationParserBase::mpRootNode
protected

◆ mValueType

CEvaluationNode::ValueType CEvaluationParserBase::mValueType
protected

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