3 #ifndef PYROOT_TCUSTOMPYTYPES_H 4 #define PYROOT_TCUSTOMPYTYPES_H 21 template<
typename T >
24 return object && PyObject_TypeCheck(
object, &TCustomFloat_Type );
27 template<
typename T >
36 template<
typename T >
39 return object && PyObject_TypeCheck(
object, &TCustomInt_Type );
42 template<
typename T >
51 template<
typename T >
54 return object && PyObject_TypeCheck(
object, &TCustomInstanceMethod_Type );
57 template<
typename T >
67 #endif // !PYROOT_TCUSTOMPYTYPES_H Bool_t TCustomFloat_Check(T *object)
PyObject * TCustomInstanceMethod_New(PyObject *func, PyObject *self, PyObject *pyclass)
Bool_t TCustomInt_Check(T *object)
Bool_t TCustomInstanceMethod_CheckExact(T *object)
PyTypeObject TCustomInt_Type
Bool_t TCustomFloat_CheckExact(T *object)
Bool_t TCustomInstanceMethod_Check(T *object)
PyTypeObject TCustomInstanceMethod_Type
PyTypeObject TCustomFloat_Type
Custom builtins, detectable by type, for pass by ref.
Bool_t TCustomInt_CheckExact(T *object)