3 #ifndef PYROOT_TEMPLATEPROXY_H 4 #define PYROOT_TEMPLATEPROXY_H 49 template<
typename T >
52 return object && PyObject_TypeCheck(
object, &TemplateProxy_Type );
55 template<
typename T >
66 pytmpl->
Set( name, pyclass );
72 #endif // !PYROOT_TEMPLATEPROXY_H void AddOverload(MethodProxy *mp)
Store overloads of this templated method.
MethodProxy * fNonTemplated
TemplateProxy * TemplateProxy_New(const std::string &name, PyObject *pyclass)
PyObject_HEAD PyObject * fSelf
Bool_t TemplateProxy_CheckExact(T *object)
void AddTemplate(PyCallable *pc)
PyTypeObject TemplateProxy_Type
void Set(const std::string &name, PyObject *pyclass)
Initialize the proxy for the given 'pyclass.'.
static constexpr double pc
Template proxy object to return functions and methods.
Bool_t TemplateProxy_Check(T *object)