Morphing return type from evaluating python expressions.
Definition at line 23 of file TPyReturn.h.
Public Member Functions | |
TPyReturn () | |
TPyReturn (const TPyReturn &) | |
Copy constructor. Applies python object reference counting. | |
TPyReturn (PyObject *pyobject) | |
Construct a TPyReturn from a python object. | |
virtual | ~TPyReturn () |
Destructor. Reference counting for the held python object is in effect. | |
virtual TClass * | IsA () const |
operator char * () const | |
operator Char_t () const | |
Cast python return value to C++ char (may fail). | |
operator const char * () const | |
Cast python return value to C-style string (may fail). | |
operator Double_t () const | |
Cast python return value to C++ double (may fail). | |
operator Float_t () const | |
operator Int_t () const | |
operator Long_t () const | |
Cast python return value to C++ long (may fail). | |
operator PyObject * () const | |
Direct return of the held PyObject; note the new reference. | |
operator Short_t () const | |
template<class T > | |
operator T* () const | |
operator UInt_t () const | |
operator ULong_t () const | |
Cast python return value to C++ unsigned long (may fail). | |
operator UShort_t () const | |
operator void * () const | |
Cast python return value to ROOT object with dictionary (may fail; note that you have to use the void* converter, as CINT will not call any other). | |
TPyReturn & | operator= (const TPyReturn &) |
Assignment operator. Applies python object reference counting. | |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Private Attributes | |
PyObject * | fPyObject |
#include <TPyReturn.h>
TPyReturn::TPyReturn | ( | ) |
Definition at line 54 of file TPyReturn.cxx.
TPyReturn::TPyReturn | ( | PyObject * | pyobject | ) |
Construct a TPyReturn from a python object.
The python object may represent a ROOT object. Steals reference to given python object.
Definition at line 67 of file TPyReturn.cxx.
Copy constructor. Applies python object reference counting.
Definition at line 81 of file TPyReturn.cxx.
|
virtual |
Destructor. Reference counting for the held python object is in effect.
Definition at line 108 of file TPyReturn.cxx.
Definition at line 59 of file TPyReturn.h.
Definition at line 59 of file TPyReturn.h.
Definition at line 59 of file TPyReturn.h.
TPyReturn::operator char * | ( | ) | const |
Definition at line 116 of file TPyReturn.cxx.
TPyReturn::operator Char_t | ( | ) | const |
Cast python return value to C++ char (may fail).
Definition at line 146 of file TPyReturn.cxx.
TPyReturn::operator const char * | ( | ) | const |
Cast python return value to C-style string (may fail).
Definition at line 127 of file TPyReturn.cxx.
TPyReturn::operator Double_t | ( | ) | const |
Cast python return value to C++ double (may fail).
Definition at line 190 of file TPyReturn.cxx.
|
inline |
Definition at line 45 of file TPyReturn.h.
|
inline |
Definition at line 37 of file TPyReturn.h.
TPyReturn::operator Long_t | ( | ) | const |
Cast python return value to C++ long (may fail).
Definition at line 160 of file TPyReturn.cxx.
TPyReturn::operator PyObject * | ( | ) | const |
Direct return of the held PyObject; note the new reference.
Definition at line 219 of file TPyReturn.cxx.
|
inline |
Definition at line 38 of file TPyReturn.h.
|
inline |
Definition at line 51 of file TPyReturn.h.
|
inline |
Definition at line 41 of file TPyReturn.h.
TPyReturn::operator ULong_t | ( | ) | const |
Cast python return value to C++ unsigned long (may fail).
Definition at line 175 of file TPyReturn.cxx.
|
inline |
Definition at line 42 of file TPyReturn.h.
TPyReturn::operator void * | ( | ) | const |
Cast python return value to ROOT object with dictionary (may fail; note that you have to use the void* converter, as CINT will not call any other).
Definition at line 206 of file TPyReturn.cxx.
Assignment operator. Applies python object reference counting.
Definition at line 92 of file TPyReturn.cxx.
|
inline |
Definition at line 59 of file TPyReturn.h.
|
private |
Definition at line 62 of file TPyReturn.h.