Definition at line 9 of file CPPClassMethod.h.
Public Member Functions | |
| PyObject * | Call (CPPInstance *&self, cpyrt_PyArgs_t args, size_t nargsf, PyObject *kwds, CallContext *ctxt=nullptr) override |
| PyCallable * | Clone () override |
| CPPMethod (const CPPMethod &) | |
| CPPMethod (interop::TCppScope_t scope, interop::TCppMethod_t method) | |
| PyObject * | GetArgDefault (int iarg, bool silent=true) override |
| int | GetArgMatchScore (PyObject *args_tuple) override |
| PyObject * | GetCoVarNames () override |
| virtual PyObject * | GetDocString () |
| interop::TCppFuncAddr_t | GetFunctionAddress () override |
| int | GetMaxArgs () override |
| int | GetPriority () override |
| PyObject * | GetPrototype (bool show_formalargs=true) override |
| Construct a Python string from the method's prototype. | |
| PyObject * | GetScopeProxy () override |
| PyObject * | GetSignature (bool show_formalargs=true) override |
| PyObject * | GetSignatureNames () override |
| Returns a tuple with the names of the input parameters of this method. | |
| PyObject * | GetSignatureTypes () override |
| Returns a dictionary with the types of the signature of this method. | |
| PyObject * | GetTypeName () override |
| bool | IsConst () override |
| bool | IsGreedy () override |
| bool | IsSimilarFnType (cppjit::interop::TCppType_t fn_type) override |
| PyObject * | Reflex (interop::Reflex::RequestId_t request, interop::Reflex::FormatId_t=interop::Reflex::OPTIMAL) override |
Protected Member Functions | |
| bool | ConvertAndSetArgs (cpyrt_PyArgs_t, size_t nargsf, CallContext *ctxt=nullptr) |
| PyObject * | Execute (void *self, ptrdiff_t offset, CallContext *ctxt=nullptr) |
| Executor * | GetExecutor () |
| interop::TCppMethod_t | GetMethod () |
| std::string | GetReturnTypeName () |
| interop::TCppScope_t | GetScope () |
| std::string | GetSignatureString (bool show_formalargs=true) |
| virtual bool | InitExecutor_ (Executor *&, CallContext *ctxt=nullptr) |
| bool | Initialize (CallContext *ctxt=nullptr) |
| virtual bool | ProcessArgs (PyCallArgs &args) |
| bool | ProcessKwds (PyObject *self_in, PyCallArgs &args) |
| virtual bool | ResultIsPyObject () const |
Protected Attributes | |
| int | fArgsRequired |
Private Member Functions | |
| void | Copy_ (const CPPMethod &) |
| void | Destroy_ () |
| PyObject * | ExecuteFast (void *, ptrdiff_t, CallContext *) |
| bool | InitConverters_ () |
| void | SetPyError_ (PyObject *msg) |
| bool | VerifyArgCount_ (Py_ssize_t) |
Private Attributes | |
| std::unordered_map< std::string, int > * | fArgIndices |
| std::vector< Converter * > | fConverters |
| Executor * | fExecutor |
| interop::TCppMethod_t | fMethod |
| interop::TCppScope_t | fScope |
#include </github/home/ROOT-CI/src/bindings/pyroot/cppjit/src/cpyrt/CPPClassMethod.h>
|
overridevirtual |
Implements cppjit::cpyrt::PyCallable.
Definition at line 10 of file CPPClassMethod.cxx.
|
inlineoverridevirtual |
Implements cppjit::cpyrt::PyCallable.
Definition at line 17 of file CPPClassMethod.h.
|
protectedinherited |
Definition at line 936 of file CPPMethod.cxx.
|
inlineprivateinherited |
Definition at line 80 of file CPPMethod.cxx.
| cpyrt::CPPMethod::CPPMethod | ( | const CPPMethod & | other | ) |
Definition at line 44 of file CPPMethod.cxx.
| cpyrt::CPPMethod::CPPMethod | ( | interop::TCppScope_t | scope, |
| interop::TCppMethod_t | method ) |
Definition at line 43 of file CPPMethod.cxx.
|
inlineprivateinherited |
Definition at line 90 of file CPPMethod.cxx.
|
protectedinherited |
Definition at line 966 of file CPPMethod.cxx.
|
inlineprivateinherited |
Definition at line 108 of file CPPMethod.cxx.
|
overridevirtualinherited |
Implements cppjit::cpyrt::PyCallable.
Definition at line 616 of file CPPMethod.cxx.
Reimplemented from cppjit::cpyrt::PyCallable.
Definition at line 720 of file CPPMethod.cxx.
|
overridevirtualinherited |
Implements cppjit::cpyrt::PyCallable.
Definition at line 593 of file CPPMethod.cxx.
|
inlinevirtualinherited |
Reimplemented in cppjit::cpyrt::CPPConstructor.
Definition at line 25 of file PyCallable.h.
|
inlineprotectedinherited |
Definition at line 94 of file CPPMethod.h.
|
overridevirtualinherited |
Implements cppjit::cpyrt::PyCallable.
Definition at line 713 of file CPPMethod.cxx.
|
overridevirtualinherited |
Implements cppjit::cpyrt::PyCallable.
Definition at line 588 of file CPPMethod.cxx.
|
inlineprotectedinherited |
Definition at line 92 of file CPPMethod.h.
|
overridevirtualinherited |
Implements cppjit::cpyrt::PyCallable.
Definition at line 450 of file CPPMethod.cxx.
Construct a Python string from the method's prototype.
| fa | Show formal arguments of the method |
For example, given:
int foo(int x);
namespace a { namespace b { namespace c { int foo(int x); }}}
This function returns:
'int foo(int x)' 'int a::b::c::foo(int x)'
Implements cppjit::cpyrt::PyCallable.
Definition at line 398 of file CPPMethod.cxx.
|
protectedinherited |
Definition at line 1120 of file CPPMethod.cxx.
|
inlineprotectedinherited |
Definition at line 93 of file CPPMethod.h.
|
overridevirtualinherited |
Implements cppjit::cpyrt::PyCallable.
Definition at line 707 of file CPPMethod.cxx.
Implements cppjit::cpyrt::PyCallable.
Definition at line 1044 of file CPPMethod.cxx.
|
overridevirtualinherited |
Returns a tuple with the names of the input parameters of this method.
For example given a function with prototype:
double foo(int a, float b, double c)
this function returns:
('a', 'b', 'c')
Implements cppjit::cpyrt::PyCallable.
Definition at line 1060 of file CPPMethod.cxx.
|
protectedinherited |
Definition at line 233 of file CPPMethod.cxx.
|
overridevirtualinherited |
Returns a dictionary with the types of the signature of this method.
This dictionary will store both the return type and the input parameter types of this method, respectively with keys "return_type" and "input_types", for example given a function with prototype:
double foo(int a, float b, double c)
this function returns:
{'input_types': ('int', 'float', 'double'), 'return_type': 'double'}
Implements cppjit::cpyrt::PyCallable.
Definition at line 1087 of file CPPMethod.cxx.
|
overridevirtual |
Reimplemented from cppjit::cpyrt::PyCallable.
Definition at line 54 of file CPPClassMethod.cxx.
|
privateinherited |
Definition at line 197 of file CPPMethod.cxx.
|
protectedvirtualinherited |
Reimplemented in cppjit::cpyrt::CPPConstructor, and cppjit::cpyrt::CPPSetItem.
Definition at line 219 of file CPPMethod.cxx.
|
protectedinherited |
Definition at line 754 of file CPPMethod.cxx.
|
overridevirtualinherited |
Reimplemented from cppjit::cpyrt::PyCallable.
Definition at line 704 of file CPPMethod.cxx.
|
overridevirtualinherited |
Implements cppjit::cpyrt::PyCallable.
Definition at line 570 of file CPPMethod.cxx.
|
inlineoverridevirtualinherited |
Reimplemented from cppjit::cpyrt::PyCallable.
Definition at line 73 of file CPPMethod.h.
|
protectedvirtualinherited |
Reimplemented in cppjit::cpyrt::CPPFunction, cppjit::cpyrt::CPPReverseBinary, cppjit::cpyrt::CPPSetItem, and cppjit::cpyrt::CPPGetItem.
Definition at line 887 of file CPPMethod.cxx.
|
protectedinherited |
Definition at line 773 of file CPPMethod.cxx.
|
overridevirtualinherited |
Reimplemented from cppjit::cpyrt::PyCallable.
Definition at line 424 of file CPPMethod.cxx.
|
inlineprotectedvirtualinherited |
Reimplemented in cppjit::cpyrt::CPPConstructor.
Definition at line 102 of file CPPMethod.h.
|
privateinherited |
Definition at line 239 of file CPPMethod.cxx.
|
inlineprivateinherited |
Definition at line 61 of file CPPMethod.cxx.
|
privateinherited |
Definition at line 123 of file CPPMethod.h.
|
protectedinherited |
Definition at line 127 of file CPPMethod.h.
|
privateinherited |
Definition at line 122 of file CPPMethod.h.
|
privateinherited |
Definition at line 119 of file CPPMethod.h.
|
privateinherited |
Definition at line 117 of file CPPMethod.h.
|
privateinherited |
Definition at line 118 of file CPPMethod.h.