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

template<bool ISCONST>
class CPyCppyy::InstancePtrConverter< ISCONST >

Definition at line 63 of file Converters.h.

Public Member Functions

 InstancePtrConverter (Cppyy::TCppType_t klass, bool keepControl=false)
PyObjectFromMemory (void *address) 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

Cppyy::TCppType_t fClass

Private Attributes

bool fKeepControl

#include </home/stephan/code/root-2/bindings/pyroot/cppyy/CPyCppyy/src/Converters.h>

Inheritance diagram for CPyCppyy::InstancePtrConverter< ISCONST >:
CPyCppyy::VoidArrayConverter CPyCppyy::Converter

Constructor & Destructor Documentation

◆ InstancePtrConverter()

template<bool ISCONST>
CPyCppyy::InstancePtrConverter< ISCONST >::InstancePtrConverter ( Cppyy::TCppType_t klass,
bool keepControl = false )
inline

Definition at line 65 of file Converters.h.

Member Function Documentation

◆ FromMemory()

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

Reimplemented from CPyCppyy::Converter.

Definition at line 2281 of file Converters.cxx.

◆ GetAddressSpecialCase()

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

Reimplemented in CPyCppyy::StrictInstancePtrConverter.

Definition at line 1544 of file Converters.cxx.

◆ HasState()

bool CPyCppyy::VoidArrayConverter::HasState ( )
inlineoverridevirtualinherited

Reimplemented from CPyCppyy::Converter.

Definition at line 52 of file Converters.h.

◆ KeepControl()

bool CPyCppyy::VoidArrayConverter::KeepControl ( )
inlineprotectedinherited

Definition at line 56 of file Converters.h.

◆ SetArg()

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

Implements CPyCppyy::Converter.

Definition at line 2238 of file Converters.cxx.

◆ ToMemory()

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

Reimplemented from CPyCppyy::Converter.

Definition at line 2291 of file Converters.cxx.

Member Data Documentation

◆ fClass

template<bool ISCONST>
Cppyy::TCppType_t CPyCppyy::InstancePtrConverter< ISCONST >::fClass
protected

Definition at line 74 of file Converters.h.

◆ fKeepControl

bool CPyCppyy::VoidArrayConverter::fKeepControl
privateinherited

Definition at line 59 of file Converters.h.


The documentation for this class was generated from the following files: