ObjectProxy.cxx File Reference

#include "PyROOT.h"
#include "PyStrings.h"
#include "ObjectProxy.h"
#include "Utility.h"
#include "TObject.h"
#include "TBufferFile.h"

Go to the source code of this file.

Namespaces

namespace  PyROOT

Defines

#define PYROOT_STUB(name, op, pystring)

Functions

void PyROOT::op_dealloc_nofree (ObjectProxy *pyobj)
PyObjectPyROOT::op_nonzero (ObjectProxy *self)
PyObjectPyROOT::op_reduce (ObjectProxy *self)
ObjectProxy * PyROOT::op_new (PyTypeObject *subtype, PyObject *, PyObject *)
void PyROOT::op_dealloc (ObjectProxy *pyobj)
PyObjectPyROOT::op_richcompare (ObjectProxy *self, ObjectProxy *other, int op)
PyObjectPyROOT::op_repr (ObjectProxy *pyobj)

Variables

R__EXTERN PyObjectgRootModule
PyMethodDef PyROOT::op_methods []
PyNumberMethods PyROOT::op_as_number
PyTypeObject PyROOT::ObjectProxy_Type


Define Documentation

#define PYROOT_STUB ( name,
op,
pystring   ) 

Value:

PyObject* op_##name##_stub( PyObject* self, PyObject* other )              \
   {                                                                          \
   /* place holder to lazily install __name__ if a global overload is available */ \
      if ( ! Utility::AddBinaryOperator( self, other, #op, "__"#name"__" ) ) {\
         Py_INCREF( Py_NotImplemented );                                      \
         return Py_NotImplemented;                                            \
      }                                                                       \
                                                                              \
   /* redo the call, which will now go to the newly installed method */       \
      return PyObject_CallMethodObjArgs( self, pystring, other, NULL );       \
   }

Definition at line 174 of file ObjectProxy.cxx.


Variable Documentation

R__EXTERN PyObject* gRootModule

Definition at line 16 of file ObjectProxy.cxx.


Generated on Tue Jul 5 15:55:33 2011 for ROOT_528-00b_version by  doxygen 1.5.1