Logo ROOT  
Reference Guide
TPyReturn Class Reference

Definition at line 30 of file TPyReturn.h.

Public Member Functions

 TPyReturn ()
 
 TPyReturn (const TPyReturn &)
 Copy constructor. Applies python object reference counting. More...
 
 TPyReturn (PyObject *pyobject)
 Construct a TPyReturn from a python object. More...
 
virtual ~TPyReturn ()
 Destructor. Reference counting for the held python object is in effect. More...
 
virtual TClassIsA () const
 
 operator char * () const
 
 operator Char_t () const
 Cast python return value to C++ char (may fail). More...
 
 operator const char * () const
 Cast python return value to C-style string (may fail). More...
 
 operator Double_t () const
 Cast python return value to C++ double (may fail). More...
 
 operator Float_t () const
 
 operator Int_t () const
 
 operator Long_t () const
 Cast python return value to C++ long (may fail). More...
 
 operator PyObject * () const
 Direct return of the held PyObject; note the new reference. More...
 
 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). More...
 
 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). More...
 
TPyReturnoperator= (const TPyReturn &)
 Assignment operator. Applies python object reference counting. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Attributes

PyObjectfPyObject
 

#include <TPyReturn.h>

Constructor & Destructor Documentation

◆ TPyReturn() [1/3]

TPyReturn::TPyReturn ( )

Definition at line 47 of file TPyReturn.cxx.

◆ TPyReturn() [2/3]

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 58 of file TPyReturn.cxx.

◆ TPyReturn() [3/3]

TPyReturn::TPyReturn ( const TPyReturn other)

Copy constructor. Applies python object reference counting.

Definition at line 70 of file TPyReturn.cxx.

◆ ~TPyReturn()

TPyReturn::~TPyReturn ( )
virtual

Destructor. Reference counting for the held python object is in effect.

Definition at line 93 of file TPyReturn.cxx.

Member Function Documentation

◆ Class()

static TClass * TPyReturn::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TPyReturn::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t TPyReturn::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 66 of file TPyReturn.h.

◆ DeclFileName()

static const char * TPyReturn::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 66 of file TPyReturn.h.

◆ IsA()

virtual TClass * TPyReturn::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 66 of file TPyReturn.h.

◆ operator char *()

TPyReturn::operator char * ( ) const

Definition at line 99 of file TPyReturn.cxx.

◆ operator Char_t()

TPyReturn::operator Char_t ( ) const

Cast python return value to C++ char (may fail).

Definition at line 125 of file TPyReturn.cxx.

◆ operator const char *()

TPyReturn::operator const char * ( ) const

Cast python return value to C-style string (may fail).

Definition at line 108 of file TPyReturn.cxx.

◆ operator Double_t()

TPyReturn::operator Double_t ( ) const

Cast python return value to C++ double (may fail).

Definition at line 163 of file TPyReturn.cxx.

◆ operator Float_t()

TPyReturn::operator Float_t ( ) const
inline

Definition at line 52 of file TPyReturn.h.

◆ operator Int_t()

TPyReturn::operator Int_t ( ) const
inline

Definition at line 44 of file TPyReturn.h.

◆ operator Long_t()

TPyReturn::operator Long_t ( ) const

Cast python return value to C++ long (may fail).

Definition at line 137 of file TPyReturn.cxx.

◆ operator PyObject *()

TPyReturn::operator PyObject * ( ) const

Direct return of the held PyObject; note the new reference.

Definition at line 192 of file TPyReturn.cxx.

◆ operator Short_t()

TPyReturn::operator Short_t ( ) const
inline

Definition at line 45 of file TPyReturn.h.

◆ operator T*()

template<class T >
TPyReturn::operator T* ( ) const
inline

Definition at line 58 of file TPyReturn.h.

◆ operator UInt_t()

TPyReturn::operator UInt_t ( ) const
inline

Definition at line 48 of file TPyReturn.h.

◆ operator ULong_t()

TPyReturn::operator ULong_t ( ) const

Cast python return value to C++ unsigned long (may fail).

Definition at line 150 of file TPyReturn.cxx.

◆ operator UShort_t()

TPyReturn::operator UShort_t ( ) const
inline

Definition at line 49 of file TPyReturn.h.

◆ operator void *()

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 177 of file TPyReturn.cxx.

◆ operator=()

TPyReturn & TPyReturn::operator= ( const TPyReturn other)

Assignment operator. Applies python object reference counting.

Definition at line 79 of file TPyReturn.cxx.

◆ Streamer()

virtual void TPyReturn::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TPyReturn::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 66 of file TPyReturn.h.

Member Data Documentation

◆ fPyObject

PyObject* TPyReturn::fPyObject
private

Definition at line 69 of file TPyReturn.h.

Libraries for TPyReturn:
[legend]

The documentation for this class was generated from the following files: