ROOT
master
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
11
namespace
CPyCppyy
{
12
13
class
CPPOperator
:
public
CPPMethod
{
14
public
:
15
CPPOperator
(
Cppyy::TCppScope_t
scope,
Cppyy::TCppMethod_t
method,
const
std::string&
name
);
16
17
public
:
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
22
private
:
23
binaryfunc
fStub
;
24
};
25
26
}
// namespace CPyCppyy
27
28
#endif
// !CPYCPPYY_CPPOPERATOR_H
CPPMethod.h
CPyCppyy_PyArgs_t
PyObject * CPyCppyy_PyArgs_t
Definition
CPyCppyy.h:330
PyObject
_object PyObject
Definition
PyMethodBase.h:43
name
char name[80]
Definition
TGX11.cxx:110
CPyCppyy::CPPInstance
Definition
CPPInstance.h:26
CPyCppyy::CPPMethod
Definition
CPPMethod.h:45
CPyCppyy::CPPOperator
Definition
CPPOperator.h:13
CPyCppyy::CPPOperator::Call
virtual PyObject * Call(CPPInstance *&self, CPyCppyy_PyArgs_t args, size_t nargsf, PyObject *kwds, CallContext *ctxt=nullptr)
Definition
CPPOperator.cxx:30
CPyCppyy::CPPOperator::fStub
binaryfunc fStub
Definition
CPPOperator.h:23
CPyCppyy::CPPOperator::Clone
virtual PyCallable * Clone()
Definition
CPPOperator.h:18
CPyCppyy::PyCallable
Definition
PyCallable.h:15
CPyCppyy
Definition
callcontext.h:10
Cppyy::TCppMethod_t
intptr_t TCppMethod_t
Definition
cpp_cppyy.h:22
Cppyy::TCppScope_t
size_t TCppScope_t
Definition
cpp_cppyy.h:18
CPyCppyy::CallContext
Definition
CallContext.h:48
bindings
pyroot
cppyy
CPyCppyy
src
CPPOperator.h
ROOT master - Reference Guide Generated on Sat Nov 16 2024 09:37:14 (GVA Time) using Doxygen 1.9.8