3 #ifndef PYROOT_TCUSTOMPYTYPES_H
4 #define PYROOT_TCUSTOMPYTYPES_H
19 R__EXTERN PyTypeObject TCustomFloat_Type;
21 template<
typename T >
22 inline Bool_t TCustomFloat_Check( T*
object )
24 return object && PyObject_TypeCheck(
object, &TCustomFloat_Type );
27 template<
typename T >
28 inline Bool_t TCustomFloat_CheckExact( T*
object )
30 return object && Py_TYPE(
object) == &TCustomFloat_Type;
34 R__EXTERN PyTypeObject TCustomInt_Type;
36 template<
typename T >
37 inline Bool_t TCustomInt_Check( T*
object )
39 return object && PyObject_TypeCheck(
object, &TCustomInt_Type );
42 template<
typename T >
43 inline Bool_t TCustomInt_CheckExact( T*
object )
45 return object && Py_TYPE(
object) == &TCustomInt_Type;
49 R__EXTERN PyTypeObject TCustomInstanceMethod_Type;
51 template<
typename T >
52 inline Bool_t TCustomInstanceMethod_Check( T*
object )
54 return object && PyObject_TypeCheck(
object, &TCustomInstanceMethod_Type );
57 template<
typename T >
58 inline Bool_t TCustomInstanceMethod_CheckExact( T*
object )
60 return object && Py_TYPE(
object) == &TCustomInstanceMethod_Type;
63 PyObject* TCustomInstanceMethod_New( PyObject* func, PyObject*
self, PyObject* pyclass );
67 #endif // !PYROOT_TCUSTOMPYTYPES_H