Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
cppjit::cpyrt::InstancePtrConverter< ISCONST > Class Template Reference

template<bool ISCONST>
class cppjit::cpyrt::InstancePtrConverter< ISCONST >

Definition at line 76 of file Converters.h.

Public Member Functions

 InstancePtrConverter (interop::TCppScope_t klass, bool keepControl=false, const std::string &failureMsg=std::string())
 
PyObject * FromMemory (void *address) override
 
std::string GetFailureMsg () override
 
bool HasState () override
 
bool SetArg (PyObject *, Parameter &, CallContext *=nullptr) override
 
bool ToMemory (PyObject *value, void *address, PyObject *ctxt=nullptr) override
 

Protected Member Functions

virtual bool GetAddressSpecialCase (PyObject *pyobject, void *&address)
 
bool KeepControl ()
 

Protected Attributes

interop::TCppScope_t fClass
 
const std::string fFailureMsg
 

Private Attributes

bool fKeepControl
 

#include </github/home/ROOT-CI/src/bindings/pyroot/cppjit/src/cpyrt/Converters.h>

Inheritance diagram for cppjit::cpyrt::InstancePtrConverter< ISCONST >:
[legend]

Constructor & Destructor Documentation

◆ InstancePtrConverter()

template<bool ISCONST>
cppjit::cpyrt::InstancePtrConverter< ISCONST >::InstancePtrConverter ( interop::TCppScope_t klass,
bool keepControl = false,
const std::string & failureMsg = std::string() )
inline

Definition at line 78 of file Converters.h.

Member Function Documentation

◆ FromMemory()

template<bool ISCONST>
PyObject * cpyrt::InstancePtrConverter::FromMemory ( void * address)
overridevirtual

Reimplemented from cppjit::cpyrt::Converter.

Definition at line 2358 of file Converters.cxx.

◆ GetAddressSpecialCase()

bool cpyrt::VoidArrayConverter::GetAddressSpecialCase ( PyObject * pyobject,
void *& address )
protectedvirtualinherited

Reimplemented in cppjit::cpyrt::StrictInstancePtrConverter.

Definition at line 1616 of file Converters.cxx.

◆ GetFailureMsg()

std::string cppjit::cpyrt::VoidArrayConverter::GetFailureMsg ( )
inlineoverridevirtualinherited

Reimplemented from cppjit::cpyrt::Converter.

Definition at line 63 of file Converters.h.

◆ HasState()

bool cppjit::cpyrt::VoidArrayConverter::HasState ( )
inlineoverridevirtualinherited

Reimplemented from cppjit::cpyrt::Converter.

Definition at line 62 of file Converters.h.

◆ KeepControl()

bool cppjit::cpyrt::VoidArrayConverter::KeepControl ( )
inlineprotectedinherited

Definition at line 69 of file Converters.h.

◆ SetArg()

template<bool ISCONST>
bool cpyrt::InstancePtrConverter::SetArg ( PyObject * pyobject,
Parameter & para,
CallContext * ctxt = nullptr )
overridevirtual

Implements cppjit::cpyrt::Converter.

Definition at line 2312 of file Converters.cxx.

◆ ToMemory()

template<bool ISCONST>
bool cpyrt::InstancePtrConverter::ToMemory ( PyObject * value,
void * address,
PyObject * ctxt = nullptr )
overridevirtual

Reimplemented from cppjit::cpyrt::Converter.

Definition at line 2379 of file Converters.cxx.

Member Data Documentation

◆ fClass

template<bool ISCONST>
interop::TCppScope_t cppjit::cpyrt::InstancePtrConverter< ISCONST >::fClass
protected

Definition at line 90 of file Converters.h.

◆ fFailureMsg

const std::string cppjit::cpyrt::VoidArrayConverter::fFailureMsg
protectedinherited

Definition at line 70 of file Converters.h.

◆ fKeepControl

bool cppjit::cpyrt::VoidArrayConverter::fKeepControl
privateinherited

Definition at line 73 of file Converters.h.

  • bindings/pyroot/cppjit/src/cpyrt/Converters.h
  • bindings/pyroot/cppjit/src/cpyrt/Converters.cxx