MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <PyRun.h>
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().
string PyRun::getInputVar | ( | ) | const |
Definition at line 234 of file PyRun.cpp.
References inputvar_.
Referenced by initCinfo().
PyObject* PyRun::getLocals | ( | ) | const |
int PyRun::getMode | ( | ) | const |
Definition at line 255 of file PyRun.cpp.
References mode_.
Referenced by initCinfo().
string PyRun::getOutputVar | ( | ) | const |
Definition at line 245 of file PyRun.cpp.
References outputvar_.
Referenced by initCinfo().
string PyRun::getRunString | ( | ) | const |
Definition at line 213 of file PyRun.cpp.
References runstr_.
Referenced by initCinfo().
|
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().
Definition at line 309 of file PyRun.cpp.
References globals_, locals_, mode_, output(), outputOut(), outputvar_, runcompiled_, and value.
Referenced by initCinfo().
Definition at line 357 of file PyRun.cpp.
References get_program_name(), globals_, handleError(), initcompiled_, initstr_, locals_, PYCODEOBJECT, runcompiled_, and runstr_.
Referenced by initCinfo().
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().
void PyRun::setGlobals | ( | PyObject * | globals | ) |
void PyRun::setInitString | ( | string | str | ) |
Definition at line 218 of file PyRun.cpp.
References initstr_.
Referenced by initCinfo().
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().
void PyRun::setOutputVar | ( | string | name | ) |
Definition at line 239 of file PyRun.cpp.
References locals_, name, and outputvar_.
Referenced by initCinfo().
void PyRun::setRunString | ( | string | str | ) |
Definition at line 208 of file PyRun.cpp.
References runstr_.
Referenced by initCinfo().
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().
|
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().