Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
CPyCppyy::CPPMethod Class Reference

Definition at line 18 of file CPPMethod.h.

Public Member Functions

 CPPMethod (const CPPMethod &)
 
 CPPMethod (Cppyy::TCppScope_t scope, Cppyy::TCppMethod_t method)
 
virtual ~CPPMethod ()
 
virtual PyObjectCall (CPPInstance *&self, PyObject *args, PyObject *kwds, CallContext *ctxt=nullptr)
 
virtual PyCallableClone ()
 
virtual PyObjectGetArgDefault (int iarg)
 
virtual PyObjectGetCoVarNames ()
 
virtual Cppyy::TCppFuncAddr_t GetFunctionAddress ()
 
virtual int GetMaxArgs ()
 
virtual int GetPriority ()
 
virtual PyObjectGetPrototype (bool show_formalargs=true)
 
virtual PyObjectGetScopeProxy ()
 
virtual PyObjectGetSignature (bool show_formalargs=true)
 
virtual bool IsGreedy ()
 
CPPMethodoperator= (const CPPMethod &)
 
- Public Member Functions inherited from CPyCppyy::PyCallable
virtual ~PyCallable ()
 
virtual PyObjectGetDocString ()
 

Protected Member Functions

bool ConvertAndSetArgs (PyObject *args, CallContext *ctxt=nullptr)
 
PyObjectExecute (void *self, ptrdiff_t offset, CallContext *ctxt=nullptr)
 
ExecutorGetExecutor ()
 
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 PyObjectPreProcessArgs (CPPInstance *&self, PyObject *args, PyObject *kwds)
 
PyObjectProcessKeywords (PyObject *self, PyObject *args, PyObject *kwds)
 
void SetMethod (Cppyy::TCppMethod_t m)
 

Protected Attributes

int fArgsRequired
 

Private Member Functions

void Copy_ (const CPPMethod &)
 
void Destroy_ ()
 
PyObjectExecuteFast (void *, ptrdiff_t, CallContext *)
 
PyObjectExecuteProtected (void *, ptrdiff_t, CallContext *)
 
bool InitConverters_ ()
 
void SetPyError_ (PyObject *msg)
 

Private Attributes

std::map< std::string, int > * fArgIndices
 
std::vector< Converter * > fConverters
 
ExecutorfExecutor
 
Cppyy::TCppMethod_t fMethod
 
Cppyy::TCppScope_t fScope
 

#include </home/sftnight/build/workspace/root-makedoc-v628/rootspi/rdoc/src/v6-28-00-patches/bindings/pyroot/cppyy/CPyCppyy/src/CPPMethod.h>

Inheritance diagram for CPyCppyy::CPPMethod:
[legend]

Constructor & Destructor Documentation

◆ CPPMethod() [1/2]

CPyCppyy::CPPMethod::CPPMethod ( Cppyy::TCppScope_t  scope,
Cppyy::TCppMethod_t  method 
)

Definition at line 295 of file CPPMethod.cxx.

◆ CPPMethod() [2/2]

CPyCppyy::CPPMethod::CPPMethod ( const CPPMethod other)

Definition at line 304 of file CPPMethod.cxx.

◆ ~CPPMethod()

CPyCppyy::CPPMethod::~CPPMethod ( )
virtual

Definition at line 324 of file CPPMethod.cxx.

Member Function Documentation

◆ Call()

◆ Clone()

virtual PyCallable * CPyCppyy::CPPMethod::Clone ( )
inlinevirtual

◆ ConvertAndSetArgs()

bool CPyCppyy::CPPMethod::ConvertAndSetArgs ( PyObject args,
CallContext ctxt = nullptr 
)
protected

Definition at line 678 of file CPPMethod.cxx.

◆ Copy_()

void CPyCppyy::CPPMethod::Copy_ ( const CPPMethod )
inlineprivate

Definition at line 37 of file CPPMethod.cxx.

◆ Destroy_()

void CPyCppyy::CPPMethod::Destroy_ ( )
inlineprivate

Definition at line 48 of file CPPMethod.cxx.

◆ Execute()

PyObject * CPyCppyy::CPPMethod::Execute ( void *  self,
ptrdiff_t  offset,
CallContext ctxt = nullptr 
)
protected

Definition at line 717 of file CPPMethod.cxx.

◆ ExecuteFast()

PyObject * CPyCppyy::CPPMethod::ExecuteFast ( void *  self,
ptrdiff_t  offset,
CallContext ctxt 
)
inlineprivate

Definition at line 66 of file CPPMethod.cxx.

◆ ExecuteProtected()

PyObject * CPyCppyy::CPPMethod::ExecuteProtected ( void *  self,
ptrdiff_t  offset,
CallContext ctxt 
)
inlineprivate

Definition at line 140 of file CPPMethod.cxx.

◆ GetArgDefault()

PyObject * CPyCppyy::CPPMethod::GetArgDefault ( int  iarg)
virtual

Implements CPyCppyy::PyCallable.

Definition at line 493 of file CPPMethod.cxx.

◆ GetCoVarNames()

PyObject * CPyCppyy::CPPMethod::GetCoVarNames ( )
virtual

Implements CPyCppyy::PyCallable.

Definition at line 469 of file CPPMethod.cxx.

◆ GetExecutor()

Executor * CPyCppyy::CPPMethod::GetExecutor ( )
inlineprotected

Definition at line 56 of file CPPMethod.h.

◆ GetFunctionAddress()

Cppyy::TCppFuncAddr_t CPyCppyy::CPPMethod::GetFunctionAddress ( )
virtual

Implements CPyCppyy::PyCallable.

Definition at line 525 of file CPPMethod.cxx.

◆ GetMaxArgs()

int CPyCppyy::CPPMethod::GetMaxArgs ( )
virtual

Implements CPyCppyy::PyCallable.

Definition at line 463 of file CPPMethod.cxx.

◆ GetMethod()

Cppyy::TCppMethod_t CPyCppyy::CPPMethod::GetMethod ( )
inlineprotected

Definition at line 51 of file CPPMethod.h.

◆ GetPriority()

int CPyCppyy::CPPMethod::GetPriority ( )
virtual

Implements CPyCppyy::PyCallable.

Definition at line 342 of file CPPMethod.cxx.

◆ GetPrototype()

PyObject * CPyCppyy::CPPMethod::GetPrototype ( bool  show_formalargs = true)
virtual

Implements CPyCppyy::PyCallable.

Definition at line 331 of file CPPMethod.cxx.

◆ GetReturnTypeName()

std::string CPyCppyy::CPPMethod::GetReturnTypeName ( )
protected

Definition at line 805 of file CPPMethod.cxx.

◆ GetScope()

Cppyy::TCppScope_t CPyCppyy::CPPMethod::GetScope ( )
inlineprotected

Definition at line 55 of file CPPMethod.h.

◆ GetScopeProxy()

PyObject * CPyCppyy::CPPMethod::GetScopeProxy ( )
virtual

Implements CPyCppyy::PyCallable.

Definition at line 517 of file CPPMethod.cxx.

◆ GetSignature()

PyObject * CPyCppyy::CPPMethod::GetSignature ( bool  show_formalargs = true)
virtual

Implements CPyCppyy::PyCallable.

Definition at line 798 of file CPPMethod.cxx.

◆ GetSignatureString()

std::string CPyCppyy::CPPMethod::GetSignatureString ( bool  show_formalargs = true)
protected

Definition at line 207 of file CPPMethod.cxx.

◆ InitConverters_()

bool CPyCppyy::CPPMethod::InitConverters_ ( )
private

Definition at line 171 of file CPPMethod.cxx.

◆ InitExecutor_()

bool CPyCppyy::CPPMethod::InitExecutor_ ( Executor *&  executor,
CallContext ctxt = nullptr 
)
protectedvirtual

Reimplemented in CPyCppyy::CPPConstructor, and CPyCppyy::CPPSetItem.

Definition at line 193 of file CPPMethod.cxx.

◆ Initialize()

bool CPyCppyy::CPPMethod::Initialize ( CallContext ctxt = nullptr)
protected

Definition at line 533 of file CPPMethod.cxx.

◆ IsGreedy()

bool CPyCppyy::CPPMethod::IsGreedy ( )
virtual

Implements CPyCppyy::PyCallable.

Definition at line 444 of file CPPMethod.cxx.

◆ operator=()

CPyCppyy::CPPMethod & CPyCppyy::CPPMethod::operator= ( const CPPMethod other)

Definition at line 311 of file CPPMethod.cxx.

◆ PreProcessArgs()

PyObject * CPyCppyy::CPPMethod::PreProcessArgs ( CPPInstance *&  self,
PyObject args,
PyObject kwds 
)
protectedvirtual

◆ ProcessKeywords()

PyObject * CPyCppyy::CPPMethod::ProcessKeywords ( PyObject self,
PyObject args,
PyObject kwds 
)
protected

Definition at line 552 of file CPPMethod.cxx.

◆ SetMethod()

void CPyCppyy::CPPMethod::SetMethod ( Cppyy::TCppMethod_t  m)
inlineprotected

Definition at line 54 of file CPPMethod.h.

◆ SetPyError_()

void CPyCppyy::CPPMethod::SetPyError_ ( PyObject msg)
private

Definition at line 234 of file CPPMethod.cxx.

Member Data Documentation

◆ fArgIndices

std::map<std::string, int>* CPyCppyy::CPPMethod::fArgIndices
private

Definition at line 81 of file CPPMethod.h.

◆ fArgsRequired

int CPyCppyy::CPPMethod::fArgsRequired
protected

Definition at line 85 of file CPPMethod.h.

◆ fConverters

std::vector<Converter*> CPyCppyy::CPPMethod::fConverters
private

Definition at line 80 of file CPPMethod.h.

◆ fExecutor

Executor* CPyCppyy::CPPMethod::fExecutor
private

Definition at line 77 of file CPPMethod.h.

◆ fMethod

Cppyy::TCppMethod_t CPyCppyy::CPPMethod::fMethod
private

Definition at line 75 of file CPPMethod.h.

◆ fScope

Cppyy::TCppScope_t CPyCppyy::CPPMethod::fScope
private

Definition at line 76 of file CPPMethod.h.

  • bindings/pyroot/cppyy/CPyCppyy/src/CPPMethod.h
  • bindings/pyroot/cppyy/CPyCppyy/src/CPPMethod.cxx