TODO.
More...
#include <MuParserScripting.h>
List of all members.
Public Member Functions |
bool | isRunning () const |
| whether asynchronuous execution is enabled (if supported by the implementation)
|
const QString | mathFunctionDoc (const QString &name) const |
| Return a documentation string for the given mathematical function.
|
const QStringList | mathFunctions () const |
| Return a list of supported mathematical functions. These should be imported into the global namespace.
|
| MuParserScripting (ApplicationWindow *parent) |
Script * | newScript (const QString &code, QObject *context, const QString &name="<input>") |
| Instantiate the Script subclass matching the ScriptEnv subclass.
|
bool | setDouble (double, const char *) |
bool | setInt (int, const char *) |
bool | setQObject (QObject *, const char *) |
virtual const QStringList | fileExtensions () const |
| Return a list of file extensions commonly used for this language.
|
const QString | fileFilter () const |
| Construct a filter expression from fileExtension(), suitable for QFileDialog.
|
virtual bool | initialize () |
| Part of the initialization is deferred from the constructor until after the signals have been connected.
|
bool | initialized () const |
| initialization of the interpreter may fail; or there could be other errors setting up the environment
|
| ScriptingEnv (ApplicationWindow *parent, const char *langName) |
virtual QString | stackTraceString () |
| If an exception / error occured, return a nicely formated stack backtrace.
|
Static Private Member Functions |
static double | bessel_J0 (double x) |
static double | bessel_J1 (double x) |
static double | bessel_Jn (double x, double n) |
static double | bessel_Jn_zero (double n, double s) |
static double | bessel_Y0 (double x) |
static double | bessel_Y1 (double x) |
static double | bessel_Yn (double x, double n) |
static double | beta (double a, double b) |
static double | ceil (double x) |
static double | erf (double x) |
static double | erf_Q (double x) |
static double | erf_Z (double x) |
static double | erfc (double x) |
static double | floor (double x) |
static double | gamma (double x) |
static double | hazard (double x) |
static double | lambert_W0 (double x) |
static double | lambert_Wm1 (double x) |
static double | lngamma (double x) |
static double | mod (double x, double y) |
static double | mypow (double x, double y) |
Additional Inherited Members |
virtual void | clear () |
| Clear the global environment. What exactly happens depends on the implementation.
|
void | decref () |
| Decrease the reference count. This should only be called by scripted and Script to avoid segfaults.
|
void | incref () |
| Increase the reference count. This should only be called by scripted and Script to avoid memory leaks.
|
virtual void | startExecution () |
| If the implementation supports asynchronuos execution, activate it.
|
virtual void | stopExecution () |
| If the implementation supports asynchronuos execution, deactivate it.
|
void | error (const QString &message, const QString &scriptName, int lineNumber) |
| signal an error condition / exception
|
void | print (const QString &output) |
| output that is not handled by a Script
|
bool | d_initialized |
| whether the interpreter has been successfully initialized
|
ApplicationWindow * | d_parent |
| the context in which we are running
|
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
static double MuParserScripting::bessel_J0 |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::bessel_J1 |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::bessel_Jn |
( |
double |
x, |
|
|
double |
n |
|
) |
| |
|
inlinestaticprivate |
static double MuParserScripting::bessel_Jn_zero |
( |
double |
n, |
|
|
double |
s |
|
) |
| |
|
inlinestaticprivate |
static double MuParserScripting::bessel_Y0 |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::bessel_Y1 |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::bessel_Yn |
( |
double |
x, |
|
|
double |
n |
|
) |
| |
|
inlinestaticprivate |
static double MuParserScripting::beta |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inlinestaticprivate |
static double MuParserScripting::ceil |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::erf |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::erf_Q |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::erf_Z |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::erfc |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::floor |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::gamma |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::hazard |
( |
double |
x | ) |
|
|
inlinestaticprivate |
bool MuParserScripting::isRunning |
( |
| ) |
const |
|
inlinevirtual |
whether asynchronuous execution is enabled (if supported by the implementation)
Reimplemented from ScriptingEnv.
static double MuParserScripting::lambert_W0 |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::lambert_Wm1 |
( |
double |
x | ) |
|
|
inlinestaticprivate |
static double MuParserScripting::lngamma |
( |
double |
x | ) |
|
|
inlinestaticprivate |
const QString MuParserScripting::mathFunctionDoc |
( |
const QString & |
| ) |
const |
|
virtual |
const QStringList MuParserScripting::mathFunctions |
( |
| ) |
const |
|
virtual |
static double MuParserScripting::mod |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inlinestaticprivate |
static double MuParserScripting::mypow |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inlinestaticprivate |
Script* MuParserScripting::newScript |
( |
const QString & |
, |
|
|
QObject * |
, |
|
|
const QString & |
= "<input>" |
|
) |
| |
|
inlinevirtual |
Instantiate the Script subclass matching the ScriptEnv subclass.
Reimplemented from ScriptingEnv.
bool MuParserScripting::setDouble |
( |
double |
, |
|
|
const char * |
|
|
) |
| |
|
inlinevirtual |
bool MuParserScripting::setInt |
( |
int |
, |
|
|
const char * |
|
|
) |
| |
|
inlinevirtual |
bool MuParserScripting::setQObject |
( |
QObject * |
, |
|
|
const char * |
|
|
) |
| |
|
inlinevirtual |
Member Data Documentation
const char * MuParserScripting::langName = "muParser" |
|
static |
The documentation for this class was generated from the following files: