Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
CPPOperator.h
Go to the documentation of this file.
1#ifndef CPYCPPYY_CPPOPERATOR_H
2#define CPYCPPYY_CPPOPERATOR_H
3
4// Bindings
5#include "CPPMethod.h"
6
7// Standard
8#include <string>
9
10
11namespace CPyCppyy {
12
13class CPPOperator : public CPPMethod {
14public:
15 CPPOperator(Cppyy::TCppScope_t scope, Cppyy::TCppMethod_t method, const std::string& name);
16
17public:
18 virtual PyCallable* Clone() { return new CPPOperator(*this); }
19 virtual PyObject* Call(CPPInstance*& self,
20 CPyCppyy_PyArgs_t args, size_t nargsf, PyObject* kwds, CallContext* ctxt = nullptr);
21
22private:
23 binaryfunc fStub;
24};
25
26} // namespace CPyCppyy
27
28#endif // !CPYCPPYY_CPPOPERATOR_H
PyObject * CPyCppyy_PyArgs_t
Definition CPyCppyy.h:330
_object PyObject
char name[80]
Definition TGX11.cxx:110
virtual PyObject * Call(CPPInstance *&self, CPyCppyy_PyArgs_t args, size_t nargsf, PyObject *kwds, CallContext *ctxt=nullptr)
virtual PyCallable * Clone()
Definition CPPOperator.h:18
intptr_t TCppMethod_t
Definition cpp_cppyy.h:22
size_t TCppScope_t
Definition cpp_cppyy.h:18