Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Protected Attributes | List of all members
PyROOT::TCppObjectConverter Class Reference

Definition at line 170 of file Converters.h.

Public Member Functions

 TCppObjectConverter (Cppyy::TCppType_t klass, Bool_t keepControl=kFALSE)
 
virtual PyObjectFromMemory (void *address)
 construct python object from C++ instance read at <address> More...
 
virtual Bool_t SetArg (PyObject *, TParameter &, TCallContext *ctxt=0)
 convert pyobject to C++ instance*, set arg for call More...
 
virtual Bool_t ToMemory (PyObject *value, void *address)
 convert to C++ instance, write it at <address> More...
 
- Public Member Functions inherited from PyROOT::TVoidArrayConverter
 TVoidArrayConverter (Bool_t keepControl=kTRUE)
 
- Public Member Functions inherited from PyROOT::TConverter
virtual ~TConverter ()
 

Protected Attributes

Cppyy::TCppType_t fClass
 
ObjectProxyfObjProxy
 

Additional Inherited Members

- Protected Member Functions inherited from PyROOT::TVoidArrayConverter
virtual Bool_t GetAddressSpecialCase (PyObject *pyobject, void *&address)
 (1): "null pointer" or C++11 style nullptr More...
 
Bool_t KeepControl ()
 

#include </mnt/build/workspace/root-makedoc-v614/rootspi/rdoc/src/v6-14-00-patches/bindings/pyroot/src/Converters.h>

Inheritance diagram for PyROOT::TCppObjectConverter:
[legend]

Constructor & Destructor Documentation

◆ TCppObjectConverter()

PyROOT::TCppObjectConverter::TCppObjectConverter ( Cppyy::TCppType_t  klass,
Bool_t  keepControl = kFALSE 
)
inline

Definition at line 172 of file Converters.h.

Member Function Documentation

◆ FromMemory()

PyObject * PyROOT::TCppObjectConverter::FromMemory ( void address)
virtual

construct python object from C++ instance read at <address>

Reimplemented from PyROOT::TVoidArrayConverter.

Reimplemented in PyROOT::TCppObjectArrayConverter, and PyROOT::TCppObjectPtrConverter< ISREFERENCE >.

Definition at line 940 of file Converters.cxx.

◆ SetArg()

Bool_t PyROOT::TCppObjectConverter::SetArg ( PyObject pyobject,
TParameter para,
TCallContext ctxt = 0 
)
virtual

convert pyobject to C++ instance*, set arg for call

Reimplemented from PyROOT::TVoidArrayConverter.

Reimplemented in PyROOT::TCppObjectArrayConverter, PyROOT::TCppObjectPtrConverter< ISREFERENCE >, and PyROOT::TValueCppObjectConverter.

Definition at line 897 of file Converters.cxx.

◆ ToMemory()

Bool_t PyROOT::TCppObjectConverter::ToMemory ( PyObject value,
void address 
)
virtual

convert to C++ instance, write it at <address>

Reimplemented from PyROOT::TVoidArrayConverter.

Reimplemented in PyROOT::TCppObjectArrayConverter, and PyROOT::TCppObjectPtrConverter< ISREFERENCE >.

Definition at line 948 of file Converters.cxx.

Member Data Documentation

◆ fClass

Cppyy::TCppType_t PyROOT::TCppObjectConverter::fClass
protected

Definition at line 181 of file Converters.h.

◆ fObjProxy

ObjectProxy* PyROOT::TCppObjectConverter::fObjProxy
protected

Definition at line 182 of file Converters.h.

Libraries for PyROOT::TCppObjectConverter:
[legend]

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