#include <muParserScript.h>
Public Slots | |
bool | compile (bool asFunction=true) |
Compile the Code. Return true if the implementation doesn't support compilation. | |
QVariant | eval () |
Evaluate the Code, returning QVariant() on an error / exception. | |
bool | exec () |
Execute the Code, returning false on an error / exception. | |
bool | setDouble (double val, const char *name) |
bool | setInt (int val, const char *name) |
bool | setQObject (QObject *val, const char *name) |
Public Member Functions | |
muParserScript (ScriptingEnv *env, const QString &code, QObject *context=0, const QString &name="<input>") | |
Static Public Attributes | |
static muParserScript * | current = NULL |
Private Member Functions | |
double * | addVariable (const char *name) |
double * | addVariableR (const char *name) |
double | cell (int row, int col) |
double | col (const QString &arg) |
double | tableCell (int col, int row) |
double | tablecol (const QString &arg) |
Static Private Member Functions | |
static QString | compileColArg (const QString &in) |
static double * | mu_addVariable (const char *name, void *) |
static double * | mu_addVariableR (const char *name, void *) |
static double * | mu_addVariableR (const char *name) |
static double | mu_cell (double row, double col) |
static double | mu_col (const char *arg) |
static double | mu_tableCell (double col, double row) |
static double | mu_tablecol (const char *arg) |
Private Attributes | |
QStringList | muCode |
mu::Parser | parser |
mu::Parser | rparser |
Q3AsciiDict< double > | rvariables |
Q3AsciiDict< double > | variables |
muParserScript::muParserScript | ( | ScriptingEnv * | env, | |
const QString & | code, | |||
QObject * | context = 0 , |
|||
const QString & | name = "<input>" | |||
) |
double * muParserScript::addVariable | ( | const char * | name | ) | [private] |
double * muParserScript::addVariableR | ( | const char * | name | ) | [private] |
double muParserScript::cell | ( | int | row, | |
int | col | |||
) | [private] |
double muParserScript::col | ( | const QString & | arg | ) | [private] |
bool muParserScript::compile | ( | bool | for_eval = true |
) | [virtual, slot] |
Compile the Code. Return true if the implementation doesn't support compilation.
Reimplemented from Script.
QString muParserScript::compileColArg | ( | const QString & | in | ) | [static, private] |
QVariant muParserScript::eval | ( | ) | [virtual, slot] |
bool muParserScript::exec | ( | ) | [virtual, slot] |
static double* muParserScript::mu_addVariable | ( | const char * | name, | |
void * | ||||
) | [inline, static, private] |
static double* muParserScript::mu_addVariableR | ( | const char * | name, | |
void * | ||||
) | [inline, static, private] |
static double* muParserScript::mu_addVariableR | ( | const char * | name | ) | [inline, static, private] |
static double muParserScript::mu_cell | ( | double | row, | |
double | col | |||
) | [inline, static, private] |
static double muParserScript::mu_col | ( | const char * | arg | ) | [inline, static, private] |
static double muParserScript::mu_tableCell | ( | double | col, | |
double | row | |||
) | [inline, static, private] |
static double muParserScript::mu_tablecol | ( | const char * | arg | ) | [inline, static, private] |
bool muParserScript::setDouble | ( | double | val, | |
const char * | name | |||
) | [virtual, slot] |
Reimplemented from Script.
bool muParserScript::setInt | ( | int | val, | |
const char * | name | |||
) | [virtual, slot] |
Reimplemented from Script.
bool muParserScript::setQObject | ( | QObject * | val, | |
const char * | name | |||
) | [slot] |
double muParserScript::tableCell | ( | int | col, | |
int | row | |||
) | [private] |
double muParserScript::tablecol | ( | const QString & | arg | ) | [private] |
muParserScript * muParserScript::current = NULL [static] |
QStringList muParserScript::muCode [private] |
mu::Parser muParserScript::parser [private] |
mu::Parser muParserScript::rparser [private] |
Q3AsciiDict<double> muParserScript::rvariables [private] |
Q3AsciiDict<double> muParserScript::variables [private] |