Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Plot2d_AnalyticalParser Class Reference

#include <Plot2d_AnalyticalParser.h>

Public Member Functions

 ~Plot2d_AnalyticalParser ()
 
int calculate (const QString &, const double, const double, const int, double **, double **)
 

Static Public Member Functions

static Plot2d_AnalyticalParserparser ()
 Return the only instance of the Plot2d_AnalyticalParser. More...
 

Private Member Functions

 Plot2d_AnalyticalParser ()
 Constructor. More...
 
void initScript ()
 Initialize python script. More...
 

Private Attributes

PyObject * myMainMod
 main python module More...
 
PyObject * myMainDict
 main python dictionary More...
 

Static Private Attributes

static Plot2d_AnalyticalParsermyParser = 0
 instance of the Parser More...
 
static QString myScript = QString("")
 python script More...
 

Constructor & Destructor Documentation

Plot2d_AnalyticalParser::~Plot2d_AnalyticalParser ( )
Plot2d_AnalyticalParser::Plot2d_AnalyticalParser ( )
private

Construct the Parser and initialize python interpritator.

References initScript(), myMainDict, and myMainMod.

Member Function Documentation

int Plot2d_AnalyticalParser::calculate ( const QString &  theExpr,
const double  theMin,
const double  theMax,
const int  theNbStep,
double **  theX,
double **  theY 
)

References myMainDict, myMainMod, myScript, and obj.

void Plot2d_AnalyticalParser::initScript ( )
private

References myScript.

Plot2d_AnalyticalParser * Plot2d_AnalyticalParser::parser ( )
static
Returns
instance of the Plot2d_AnalyticalParser

References myParser, and Plot2d_AnalyticalParser().

Member Data Documentation

PyObject* Plot2d_AnalyticalParser::myMainDict
private
PyObject* Plot2d_AnalyticalParser::myMainMod
private
Plot2d_AnalyticalParser * Plot2d_AnalyticalParser::myParser = 0
staticprivate

The only one instance of Parser.

QString Plot2d_AnalyticalParser::myScript = QString("")
staticprivate

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