class TPyReturn

                        Python expression eval result

 Transport class for bringing objects from python (dynamically typed) to Cling
 (statically typed). It is best to immediately cast a TPyReturn to the real
 type, either implicitly (for builtin types) or explicitly (through a void*
 cast for pointers to ROOT objects).


  root [0] TBrowser* b = (void*)TPython::Eval( "ROOT.TBrowser()" );
  root [1] int i = TPython::Eval( "1+1" );
  root [2] i
  root [3] double d = TPython::Eval( "1+3.1415" );
  root [4] d

Function Members (Methods)

static TClass*Class()
virtual TClass*IsA() const
PyObject*operator _object *() const
Char_toperator char() const
char*operator char *() const
const char*operator const char *() const
Double_toperator double() const
Float_toperator float() const
Int_toperator int() const
Long_toperator long() const
Short_toperator short() const
UInt_toperator unsigned int() const
ULong_toperator unsigned long() const
UShort_toperator unsigned short() const
void*operator void *() const
TPyReturn&operator=(const TPyReturn&)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TPyReturn(PyObject* pyobject)
TPyReturn(const TPyReturn&)

Data Members

PyObject*fPyObject! actual python object

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

 Construct a TPyReturn object from Py_None.
TPyReturn(PyObject* pyobject)
 Construct a TPyReturn from a python object. The python object may represent
 a ROOT object. Steals reference to given python object.
TPyReturn(const TPyReturn& )
 Copy constructor. Applies python object reference counting.
TPyReturn& operator=(const TPyReturn& )
 Assignment operator. Applies python object reference counting.
 Destructor. Reference counting for the held python object is in effect.