67 Py_INCREF( other.fPyObject );
68 fPyObject = other.fPyObject;
76 if (
this != &other ) {
77 Py_INCREF( other.fPyObject );
78 Py_DECREF( fPyObject );
79 fPyObject = other.fPyObject;
90 Py_DECREF( fPyObject );
95 TPyReturn::operator
char*()
const
98 return (
char*)((
const char*)*
this);
104 TPyReturn::operator
const char*()
const
106 if ( fPyObject == Py_None )
110 if ( PyErr_Occurred() ) {
123 std::string s =
operator const char*();
135 Long_t l = PyLong_AsLong( fPyObject );
137 if ( PyErr_Occurred() )
148 ULong_t ul = PyLong_AsUnsignedLong( fPyObject );
150 if ( PyErr_Occurred() )
162 Double_t d = PyFloat_AsDouble( fPyObject );
164 if ( PyErr_Occurred() )
174 TPyReturn::operator
void*()
const
176 if ( fPyObject == Py_None )
191 if ( fPyObject == Py_None )
194 Py_INCREF( fPyObject );
TPyReturn & operator=(const TPyReturn &)
Assignment operator. Applies python object reference counting.
ClassImp(TPyReturn) TPyReturn
virtual ~TPyReturn()
Destructor. Reference counting for the held python object is in effect.
Bool_t ObjectProxy_Check(T *object)