#include <TPython.h>
Public Member Functions | |
virtual | ~TPython () |
Static Public Member Functions | |
static void | LoadMacro (const char *name) |
static void | ExecScript (const char *name, int argc=0, const char **argv=0) |
static Bool_t | Exec (const char *cmd) |
static const TPyReturn | Eval (const char *expr) |
static Bool_t | Bind (TObject *object, const char *label) |
static void | Prompt () |
static Bool_t | ObjectProxy_Check (PyObject *pyobject) |
static Bool_t | ObjectProxy_CheckExact (PyObject *pyobject) |
static void * | ObjectProxy_AsVoidPtr (PyObject *pyobject) |
static PyObject * | ObjectProxy_FromVoidPtr (void *addr, const char *classname) |
Static Private Member Functions | |
static Bool_t | Initialize () |
Definition at line 25 of file TPython.h.
Bool_t TPython::Initialize | ( | ) | [static, private] |
Definition at line 86 of file TPython.cxx.
References TROOT::AddClassGenerator(), gROOT, kFALSE, kTRUE, and RooFitShortHand::L().
Referenced by Bind(), Eval(), Exec(), ExecScript(), LoadMacro(), ObjectProxy_AsVoidPtr(), ObjectProxy_Check(), ObjectProxy_CheckExact(), ObjectProxy_FromVoidPtr(), and Prompt().
void TPython::LoadMacro | ( | const char * | name | ) | [static] |
Definition at line 135 of file TPython.cxx.
References Exec(), PyROOT::PyStrings::gBases, TClass::GetClass(), PyROOT::PyStrings::gModule, PyROOT::PyStrings::gName, i, Initialize(), kTRUE, PyBytes_Check, PyBytes_CheckExact, PyROOT_PyUnicode_AsString, and value.
void TPython::ExecScript | ( | const char * | name, | |
int | argc = 0 , |
|||
const char ** | argv = 0 | |||
) | [static] |
Bool_t TPython::Exec | ( | const char * | cmd | ) | [static] |
Definition at line 266 of file TPython.cxx.
References Initialize(), kFALSE, kTRUE, and result().
Referenced by ClassImp(), and LoadMacro().
const TPyReturn TPython::Eval | ( | const char * | expr | ) | [static] |
Definition at line 290 of file TPython.cxx.
References PyROOT::PyStrings::gClass, TClass::GetClass(), PyROOT::PyStrings::gModule, PyROOT::PyStrings::gName, Initialize(), name, PyROOT::ObjectProxy_Check(), PyBytes_Check, PyROOT_PyUnicode_AsString, and result().
Definition at line 347 of file TPython.cxx.
References PyROOT::BindRootObject(), Initialize(), kFALSE, and object.
void TPython::Prompt | ( | ) | [static] |
Definition at line 386 of file TPython.cxx.
References Initialize(), kFALSE, and PyROOT::ObjectProxy_Check().
Definition at line 400 of file TPython.cxx.
References Initialize(), kFALSE, and PyROOT::ObjectProxy_CheckExact().
void * TPython::ObjectProxy_AsVoidPtr | ( | PyObject * | pyobject | ) | [static] |
Definition at line 413 of file TPython.cxx.
References Initialize(), and PyROOT::ObjectProxy_Check().
PyObject * TPython::ObjectProxy_FromVoidPtr | ( | void * | addr, | |
const char * | classname | |||
) | [static] |
Definition at line 430 of file TPython.cxx.
References PyROOT::BindRootObjectNoCast(), TClass::GetClass(), Initialize(), and kFALSE.