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 int GetArgMatchScore (PyObject *args_tuple)
 
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 IsConst ()
 
virtual bool IsGreedy ()
 
CPPMethodoperator= (const CPPMethod &)
 
virtual PyObjectReflex (Cppyy::Reflex::RequestId_t request, Cppyy::Reflex::FormatId_t=Cppyy::Reflex::OPTIMAL)
 
- 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-v630/rootspi/rdoc/src/v6-30-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 736 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 775 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 514 of file CPPMethod.cxx.

◆ GetArgMatchScore()

int CPyCppyy::CPPMethod::GetArgMatchScore ( PyObject args_tuple)
virtual

Reimplemented from CPyCppyy::PyCallable.

Definition at line 557 of file CPPMethod.cxx.

◆ GetCoVarNames()

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

Implements CPyCppyy::PyCallable.

Definition at line 490 of file CPPMethod.cxx.

◆ GetExecutor()

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

Definition at line 62 of file CPPMethod.h.

◆ GetFunctionAddress()

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

Implements CPyCppyy::PyCallable.

Definition at line 550 of file CPPMethod.cxx.

◆ GetMaxArgs()

int CPyCppyy::CPPMethod::GetMaxArgs ( )
virtual

Implements CPyCppyy::PyCallable.

Definition at line 484 of file CPPMethod.cxx.

◆ GetMethod()

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

Definition at line 57 of file CPPMethod.h.

◆ GetPriority()

int CPyCppyy::CPPMethod::GetPriority ( )
virtual

Implements CPyCppyy::PyCallable.

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

◆ GetScope()

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

Definition at line 61 of file CPPMethod.h.

◆ GetScopeProxy()

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

Implements CPyCppyy::PyCallable.

Definition at line 542 of file CPPMethod.cxx.

◆ GetSignature()

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

Implements CPyCppyy::PyCallable.

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

◆ IsConst()

bool CPyCppyy::CPPMethod::IsConst ( )
virtual

Reimplemented from CPyCppyy::PyCallable.

Definition at line 537 of file CPPMethod.cxx.

◆ IsGreedy()

bool CPyCppyy::CPPMethod::IsGreedy ( )
virtual

Implements CPyCppyy::PyCallable.

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

◆ Reflex()

PyObject * CPyCppyy::CPPMethod::Reflex ( Cppyy::Reflex::RequestId_t  request,
Cppyy::Reflex::FormatId_t  format = Cppyy::Reflex::OPTIMAL 
)
virtual

Reimplemented from CPyCppyy::PyCallable.

Reimplemented in CPyCppyy::CPPConstructor.

Definition at line 341 of file CPPMethod.cxx.

◆ SetMethod()

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

Definition at line 60 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 87 of file CPPMethod.h.

◆ fArgsRequired

int CPyCppyy::CPPMethod::fArgsRequired
protected

Definition at line 91 of file CPPMethod.h.

◆ fConverters

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

Definition at line 86 of file CPPMethod.h.

◆ fExecutor

Executor* CPyCppyy::CPPMethod::fExecutor
private

Definition at line 83 of file CPPMethod.h.

◆ fMethod

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

Definition at line 81 of file CPPMethod.h.

◆ fScope

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

Definition at line 82 of file CPPMethod.h.

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