PssMathParser  1.0.0
Parser of mathemathical expressions
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
PssMathParser::MathParser Class Referenceabstract

The export point of this library. More...

#include <pssmathparser.h>

Inheritance diagram for PssMathParser::MathParser:
[legend]

Public Member Functions

virtual ~MathParser ()=0
 Virtual destructor because this class is pure virtual.
 
virtual const string expression () const =0
 
virtual void setExpression (const string &a_expression)=0
 
virtual void setMath (const string &a_expression)=0
 
virtual const string reversePolish () const =0
 
virtual bool setArgumentMap (const string &a_reversePolish)=0
 
virtual bool setArgumentMap ()=0
 
virtual bool expressionToReversePolish ()=0
 
virtual const string mathToString () const =0
 
virtual const string mathToStringFull () const =0
 
virtual void setVariableDouble (const string &a_name, const double a_value)=0
 
virtual bool expandMathExpression ()=0
 
virtual double calculateExpression ()=0
 
virtual void setMathPrintPrecision (const uint16_t &mathPrintPrecision)=0
 
virtual uint16_t getMathPrintPrecision () const =0
 
virtual uint16_t getVariableSize () const =0
 
virtual void clear ()=0
 

Static Public Member Functions

static MathParsermakeMathParser ()
 Factory constructor. More...
 

Detailed Description

The export point of this library.

Class is used to be implemented by other class internal to the mathparser lib. Only this class has the export point to be used in other programs.

Member Function Documentation

MathParser * MathParser::makeMathParser ( )
static

Factory constructor.

We use the factory method to construct an object inside this library. The exit point is the MathParser class. All functions that are meant to be used are given in MathParser and later overloaded by this library classes.

Returns
*MathParser This is a pointer to the constructed MathParser through its child MathExpression.

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