|
MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <PyRun.h>
Collaboration diagram for PyRun:Public Member Functions | |
| PyObject * | getGlobals () const |
| string | getInitString () const |
| string | getInputVar () const |
| PyObject * | getLocals () const |
| int | getMode () const |
| string | getOutputVar () const |
| string | getRunString () const |
| void | process (const Eref &e, ProcPtr p) |
| PyRun () | |
| void | reinit (const Eref &e, ProcPtr p) |
| void | run (const Eref &e, string statement) |
| void | setGlobals (PyObject *globals) |
| void | setInitString (string str) |
| void | setInputVar (string name) |
| void | setLocals (PyObject *locals) |
| void | setMode (int flag) |
| void | setOutputVar (string name) |
| void | setRunString (string str) |
| void | trigger (const Eref &e, double input) |
| ~PyRun () | |
Static Public Member Functions | |
| static const Cinfo * | initCinfo () |
Static Public Attributes | |
| static const int | RUNBOTH = 0 |
| static const int | RUNPROC = 1 |
| static const int | RUNTRIG = 2 |
Protected Attributes | |
| PyObject * | globals_ |
| PYCODEOBJECT * | initcompiled_ |
| string | initstr_ |
| string | inputvar_ |
| PyObject * | locals_ |
| int | mode_ |
| string | outputvar_ |
| PYCODEOBJECT * | runcompiled_ |
| string | runstr_ |
| PyRun::PyRun | ( | ) |
| PyObject* PyRun::getGlobals | ( | ) | const |
| string PyRun::getInitString | ( | ) | const |
Definition at line 223 of file PyRun.cpp.
References initstr_.
Referenced by initCinfo().
Here is the caller graph for this function:| string PyRun::getInputVar | ( | ) | const |
Definition at line 234 of file PyRun.cpp.
References inputvar_.
Referenced by initCinfo().
Here is the caller graph for this function:| PyObject* PyRun::getLocals | ( | ) | const |
| int PyRun::getMode | ( | ) | const |
Definition at line 255 of file PyRun.cpp.
References mode_.
Referenced by initCinfo().
Here is the caller graph for this function:| string PyRun::getOutputVar | ( | ) | const |
Definition at line 245 of file PyRun.cpp.
References outputvar_.
Referenced by initCinfo().
Here is the caller graph for this function:| string PyRun::getRunString | ( | ) | const |
Definition at line 213 of file PyRun.cpp.
References runstr_.
Referenced by initCinfo().
Here is the caller graph for this function:
|
static |
Definition at line 67 of file PyRun.cpp.
References getInitString(), getInputVar(), getMode(), getOutputVar(), getRunString(), Neutral::initCinfo(), outputOut(), process(), pyRunCinfo, reinit(), run(), setInitString(), setInputVar(), setMode(), setOutputVar(), setRunString(), and trigger().
Here is the call graph for this function:Definition at line 309 of file PyRun.cpp.
References globals_, locals_, mode_, output(), outputOut(), outputvar_, runcompiled_, and value.
Referenced by initCinfo().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 357 of file PyRun.cpp.
References get_program_name(), globals_, handleError(), initcompiled_, initstr_, locals_, PYCODEOBJECT, runcompiled_, and runstr_.
Referenced by initCinfo().
Here is the call graph for this function:
Here is the caller graph for this function:| void PyRun::run | ( | const Eref & | e, |
| string | statement | ||
| ) |
Definition at line 295 of file PyRun.cpp.
References locals_, output(), outputOut(), outputvar_, and value.
Referenced by initCinfo().
Here is the call graph for this function:
Here is the caller graph for this function:| void PyRun::setGlobals | ( | PyObject * | globals | ) |
| void PyRun::setInitString | ( | string | str | ) |
Definition at line 218 of file PyRun.cpp.
References initstr_.
Referenced by initCinfo().
Here is the caller graph for this function:| void PyRun::setInputVar | ( | string | name | ) |
| void PyRun::setLocals | ( | PyObject * | locals | ) |
| void PyRun::setMode | ( | int | flag | ) |
Definition at line 250 of file PyRun.cpp.
References mode_.
Referenced by initCinfo().
Here is the caller graph for this function:| void PyRun::setOutputVar | ( | string | name | ) |
Definition at line 239 of file PyRun.cpp.
References locals_, name, and outputvar_.
Referenced by initCinfo().
Here is the caller graph for this function:| void PyRun::setRunString | ( | string | str | ) |
Definition at line 208 of file PyRun.cpp.
References runstr_.
Referenced by initCinfo().
Here is the caller graph for this function:| void PyRun::trigger | ( | const Eref & | e, |
| double | input | ||
| ) |
Definition at line 260 of file PyRun.cpp.
References globals_, inputvar_, locals_, mode_, output(), outputOut(), outputvar_, runcompiled_, and value.
Referenced by initCinfo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
|
protected |
|
protected |
Definition at line 119 of file PyRun.h.
Referenced by getInitString(), reinit(), and setInitString().
|
protected |
Definition at line 125 of file PyRun.h.
Referenced by getInputVar(), PyRun(), setInputVar(), and trigger().
|
protected |
Definition at line 122 of file PyRun.h.
Referenced by process(), PyRun(), reinit(), run(), setInputVar(), setOutputVar(), trigger(), and ~PyRun().
|
protected |
|
protected |
Definition at line 126 of file PyRun.h.
Referenced by getOutputVar(), process(), run(), setOutputVar(), and trigger().
|
protected |
|
protected |
Definition at line 120 of file PyRun.h.
Referenced by getRunString(), reinit(), and setRunString().