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_ () const
 
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-v624/rootspi/rdoc/src/v6-24-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 290 of file CPPMethod.cxx.

◆ CPPMethod() [2/2]

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

Definition at line 299 of file CPPMethod.cxx.

◆ ~CPPMethod()

CPyCppyy::CPPMethod::~CPPMethod ( )
virtual

Definition at line 319 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 673 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_ ( ) const
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 712 of file CPPMethod.cxx.

◆ ExecuteFast()

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

Definition at line 61 of file CPPMethod.cxx.

◆ ExecuteProtected()

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

Definition at line 135 of file CPPMethod.cxx.

◆ GetArgDefault()

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

Implements CPyCppyy::PyCallable.

Definition at line 488 of file CPPMethod.cxx.

◆ GetCoVarNames()

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

Implements CPyCppyy::PyCallable.

Definition at line 464 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 520 of file CPPMethod.cxx.

◆ GetMaxArgs()

int CPyCppyy::CPPMethod::GetMaxArgs ( )
virtual

Implements CPyCppyy::PyCallable.

Definition at line 458 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 337 of file CPPMethod.cxx.

◆ GetPrototype()

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

Implements CPyCppyy::PyCallable.

Definition at line 326 of file CPPMethod.cxx.

◆ GetReturnTypeName()

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

Definition at line 800 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 512 of file CPPMethod.cxx.

◆ GetSignature()

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

Implements CPyCppyy::PyCallable.

Definition at line 793 of file CPPMethod.cxx.

◆ GetSignatureString()

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

Definition at line 202 of file CPPMethod.cxx.

◆ InitConverters_()

bool CPyCppyy::CPPMethod::InitConverters_ ( )
private

Definition at line 166 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 188 of file CPPMethod.cxx.

◆ Initialize()

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

Definition at line 528 of file CPPMethod.cxx.

◆ IsGreedy()

bool CPyCppyy::CPPMethod::IsGreedy ( )
virtual

Implements CPyCppyy::PyCallable.

Definition at line 439 of file CPPMethod.cxx.

◆ operator=()

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

Definition at line 306 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 547 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 229 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