Definition at line 45 of file CPPMethod.h.
Protected Member Functions | |
bool | ConvertAndSetArgs (CPyCppyy_PyArgs_t, size_t nargsf, CallContext *ctxt=nullptr) |
PyObject * | Execute (void *self, ptrdiff_t offset, CallContext *ctxt=nullptr) |
Executor * | GetExecutor () |
Cppyy::TCppMethod_t | GetMethod () |
std::string | GetReturnTypeName () |
Cppyy::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) |
Protected Attributes | |
int | fArgsRequired |
Private Member Functions | |
void | Copy_ (const CPPMethod &) |
void | Destroy_ () |
PyObject * | ExecuteFast (void *, ptrdiff_t, CallContext *) |
PyObject * | ExecuteProtected (void *, ptrdiff_t, CallContext *) |
bool | InitConverters_ () |
void | SetPyError_ (PyObject *msg) |
bool | VerifyArgCount_ (Py_ssize_t) |
Private Attributes | |
std::map< std::string, int > * | fArgIndices |
std::vector< Converter * > | fConverters |
Executor * | fExecutor |
Cppyy::TCppMethod_t | fMethod |
Cppyy::TCppScope_t | fScope |
CPyCppyy::CPPMethod::CPPMethod | ( | Cppyy::TCppScope_t | scope, |
Cppyy::TCppMethod_t | method | ||
) |
Definition at line 336 of file CPPMethod.cxx.
CPyCppyy::CPPMethod::CPPMethod | ( | const CPPMethod & | other | ) |
Definition at line 345 of file CPPMethod.cxx.
|
virtual |
Definition at line 365 of file CPPMethod.cxx.
|
virtual |
Implements CPyCppyy::PyCallable.
Reimplemented in CPyCppyy::CPPClassMethod, CPyCppyy::CPPConstructor, CPyCppyy::CPPMultiConstructor, CPyCppyy::CPPAbstractClassConstructor, CPyCppyy::CPPNamespaceConstructor, CPyCppyy::CPPIncompleteClassConstructor, CPyCppyy::CPPAllPrivateClassConstructor, CPyCppyy::CPPFunction, CPyCppyy::CPPReverseBinary, and CPyCppyy::CPPOperator.
Definition at line 981 of file CPPMethod.cxx.
|
inlinevirtual |
Implements CPyCppyy::PyCallable.
Reimplemented in CPyCppyy::CPPClassMethod, CPyCppyy::CPPConstructor, CPyCppyy::CPPMultiConstructor, CPyCppyy::CPPAbstractClassConstructor, CPyCppyy::CPPNamespaceConstructor, CPyCppyy::CPPIncompleteClassConstructor, CPyCppyy::CPPAllPrivateClassConstructor, CPyCppyy::CPPFunction, CPyCppyy::CPPReverseBinary, CPyCppyy::CPPSetItem, CPyCppyy::CPPGetItem, and CPyCppyy::CPPOperator.
Definition at line 70 of file CPPMethod.h.
|
protected |
Definition at line 933 of file CPPMethod.cxx.
|
inlineprivate |
Definition at line 88 of file CPPMethod.cxx.
|
inlineprivate |
Definition at line 99 of file CPPMethod.cxx.
|
protected |
Definition at line 960 of file CPPMethod.cxx.
|
inlineprivate |
Definition at line 115 of file CPPMethod.cxx.
|
inlineprivate |
Definition at line 194 of file CPPMethod.cxx.
Implements CPyCppyy::PyCallable.
Definition at line 596 of file CPPMethod.cxx.
Reimplemented from CPyCppyy::PyCallable.
Definition at line 699 of file CPPMethod.cxx.
|
virtual |
Implements CPyCppyy::PyCallable.
Definition at line 572 of file CPPMethod.cxx.
|
inlineprotected |
Definition at line 88 of file CPPMethod.h.
|
virtual |
Implements CPyCppyy::PyCallable.
Definition at line 692 of file CPPMethod.cxx.
|
virtual |
Implements CPyCppyy::PyCallable.
Definition at line 566 of file CPPMethod.cxx.
|
inlineprotected |
Definition at line 86 of file CPPMethod.h.
|
virtual |
Implements CPyCppyy::PyCallable.
Definition at line 441 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 CPyCppyy::PyCallable.
Definition at line 393 of file CPPMethod.cxx.
|
protected |
Definition at line 1041 of file CPPMethod.cxx.
|
inlineprotected |
Definition at line 87 of file CPPMethod.h.
|
virtual |
Implements CPyCppyy::PyCallable.
Definition at line 684 of file CPPMethod.cxx.
Implements CPyCppyy::PyCallable.
Definition at line 1034 of file CPPMethod.cxx.
|
protected |
Definition at line 268 of file CPPMethod.cxx.
|
virtual |
Reimplemented from CPyCppyy::PyCallable.
Definition at line 411 of file CPPMethod.cxx.
|
private |
Definition at line 232 of file CPPMethod.cxx.
|
protectedvirtual |
Reimplemented in CPyCppyy::CPPConstructor, and CPyCppyy::CPPSetItem.
Definition at line 254 of file CPPMethod.cxx.
|
protected |
Definition at line 733 of file CPPMethod.cxx.
|
virtual |
Reimplemented from CPyCppyy::PyCallable.
Definition at line 678 of file CPPMethod.cxx.
|
virtual |
Implements CPyCppyy::PyCallable.
Definition at line 547 of file CPPMethod.cxx.
CPyCppyy::CPPMethod & CPyCppyy::CPPMethod::operator= | ( | const CPPMethod & | other | ) |
Definition at line 352 of file CPPMethod.cxx.
|
protectedvirtual |
Reimplemented in CPyCppyy::CPPFunction, CPyCppyy::CPPReverseBinary, CPyCppyy::CPPSetItem, and CPyCppyy::CPPGetItem.
Definition at line 880 of file CPPMethod.cxx.
|
protected |
Definition at line 752 of file CPPMethod.cxx.
|
virtual |
Reimplemented from CPyCppyy::PyCallable.
Reimplemented in CPyCppyy::CPPConstructor.
Definition at line 419 of file CPPMethod.cxx.
|
private |
Definition at line 275 of file CPPMethod.cxx.
|
inlineprivate |
Definition at line 68 of file CPPMethod.cxx.
|
private |
Definition at line 114 of file CPPMethod.h.
|
protected |
Definition at line 118 of file CPPMethod.h.
|
private |
Definition at line 113 of file CPPMethod.h.
|
private |
Definition at line 110 of file CPPMethod.h.
|
private |
Definition at line 108 of file CPPMethod.h.
|
private |
Definition at line 109 of file CPPMethod.h.