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