Logo ROOT   6.07/09
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
TPyReturn Class Reference

Definition at line 26 of file TPyReturn.h.

Public Member Functions

 TPyReturn ()
 
 TPyReturn (PyObject *pyobject)
 Construct a TPyReturn from a python object. More...
 
 TPyReturn (const TPyReturn &)
 Copy constructor. Applies python object reference counting. More...
 
virtual ~TPyReturn ()
 Destructor. Reference counting for the held python object is in effect. More...
 
 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...
 

Private Attributes

PyObjectfPyObject
 

#include <TPyReturn.h>

Constructor & Destructor Documentation

TPyReturn::TPyReturn ( )

Definition at line 42 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 53 of file TPyReturn.cxx.

TPyReturn::TPyReturn ( const TPyReturn other)

Copy constructor. Applies python object reference counting.

Definition at line 65 of file TPyReturn.cxx.

TPyReturn::~TPyReturn ( )
virtual

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

Definition at line 88 of file TPyReturn.cxx.

Member Function Documentation

TPyReturn::operator char * ( ) const

Definition at line 95 of file TPyReturn.cxx.

TPyReturn::operator Char_t ( ) const

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

Definition at line 121 of file TPyReturn.cxx.

TPyReturn::operator const char * ( ) const

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

Definition at line 104 of file TPyReturn.cxx.

TPyReturn::operator Double_t ( ) const

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

Definition at line 160 of file TPyReturn.cxx.

TPyReturn::operator Float_t ( ) const
inline

Definition at line 48 of file TPyReturn.h.

TPyReturn::operator Int_t ( ) const
inline

Definition at line 40 of file TPyReturn.h.

TPyReturn::operator Long_t ( ) const

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

Definition at line 133 of file TPyReturn.cxx.

TPyReturn::operator PyObject * ( ) const

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

Definition at line 189 of file TPyReturn.cxx.

TPyReturn::operator Short_t ( ) const
inline

Definition at line 41 of file TPyReturn.h.

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

Definition at line 54 of file TPyReturn.h.

TPyReturn::operator UInt_t ( ) const
inline

Definition at line 44 of file TPyReturn.h.

TPyReturn::operator ULong_t ( ) const

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

Definition at line 146 of file TPyReturn.cxx.

TPyReturn::operator UShort_t ( ) const
inline

Definition at line 45 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 174 of file TPyReturn.cxx.

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

Assignment operator. Applies python object reference counting.

Definition at line 74 of file TPyReturn.cxx.

Member Data Documentation

PyObject* TPyReturn::fPyObject
private

Definition at line 62 of file TPyReturn.h.


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