4 #ifndef PYROOT_PROPERTYPROXY_H 5 #define PYROOT_PROPERTYPROXY_H 49 template<
typename T >
52 return object && PyObject_TypeCheck(
object, &PropertyProxy_Type );
55 template<
typename T >
67 (
PropertyProxy*)PropertyProxy_Type.tp_new( &PropertyProxy_Type, 0, 0 );
68 pyprop->
Set( scope, idata );
77 (
PropertyProxy*)PropertyProxy_Type.tp_new( &PropertyProxy_Type, 0, 0 );
78 pyprop->
Set( scope, name, address );
84 #endif // !PYROOT_PROPERTYPROXY_H
All ROOT classes may have RTTI (run time type identification) support added.
PyTypeObject PropertyProxy_Type
void * GetAddress(ObjectProxy *pyobj)
class attributes, global properties
PropertyProxy * PropertyProxy_NewConstant(Cppyy::TCppScope_t scope, const std::string &name, void *address)
Bool_t PropertyProxy_Check(T *object)
The TEnumConstant class implements the constants of the enum type.
Global variables class (global variables are obtained from CINT).
void Set(Cppyy::TCppScope_t scope, Cppyy::TCppIndex_t idata)
PyObject_HEAD ptrdiff_t fOffset
PropertyProxy * PropertyProxy_New(Cppyy::TCppScope_t scope, Cppyy::TCppIndex_t idata)
Bool_t PropertyProxy_CheckExact(T *object)
Cppyy::TCppScope_t fEnclosingScope