TPython Class Reference

#include <TPython.h>

List of all members.

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 PyObjectObjectProxy_FromVoidPtr (void *addr, const char *classname)

Static Private Member Functions

static Bool_t Initialize ()


Detailed Description

Definition at line 25 of file TPython.h.


Constructor & Destructor Documentation

virtual TPython::~TPython (  )  [inline, virtual]

Definition at line 59 of file TPython.h.


Member Function Documentation

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]

Definition at line 197 of file TPython.cxx.

References fopen, fp, i, Initialize(), l, and result().

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().

Bool_t TPython::Bind ( TObject object,
const char *  label 
) [static]

Definition at line 347 of file TPython.cxx.

References PyROOT::BindRootObject(), Initialize(), kFALSE, and object.

void TPython::Prompt (  )  [static]

Definition at line 372 of file TPython.cxx.

References Initialize().

Bool_t TPython::ObjectProxy_Check ( PyObject pyobject  )  [static]

Definition at line 386 of file TPython.cxx.

References Initialize(), kFALSE, and PyROOT::ObjectProxy_Check().

Bool_t TPython::ObjectProxy_CheckExact ( PyObject pyobject  )  [static]

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.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:45:37 2011 for ROOT_528-00b_version by  doxygen 1.5.1