4 #ifndef PYROOT_METHODPROXY_H 5 #define PYROOT_METHODPROXY_H 43 void Set(
const std::string&
name, std::vector< PyCallable* >& methods );
62 template<
typename T >
65 return object && PyObject_TypeCheck(
object, &MethodProxy_Type );
68 template<
typename T >
76 const std::string&
name, std::vector< PyCallable* >& methods )
80 pymeth->
Set( name, methods );
87 std::vector< PyCallable* > p;
88 p.push_back( method );
94 #endif // !PYROOT_METHODPROXY_H MethodInfo_t & operator=(const MethodInfo_t &)=delete
void Set(const std::string &name, std::vector< PyCallable * > &methods)
MethodProxy * MethodProxy_New(const std::string &name, std::vector< PyCallable * > &methods)
std::vector< PyCallable *> Methods_t
PyObject_HEAD ObjectProxy * fSelf
MethodProxy::Methods_t fMethods
MethodProxy::DispatchMap_t fDispatchMap
std::map< Long_t, Int_t > DispatchMap_t
PyTypeObject MethodProxy_Type
MethodInfo_t * fMethodInfo
const std::string & GetName() const
void AddMethod(PyCallable *pc)
Fill in the data of a freshly created method proxy.
~MethodInfo_t()
Destructor (this object is reference counted).
Bool_t MethodProxy_Check(T *object)
static constexpr double pc
Bool_t MethodProxy_CheckExact(T *object)