Logo ROOT   6.10/09
Reference Guide
List of all members | Public Member Functions | Protected Attributes | List of all members
PyROOT::TCppObjectArrayConverter Class Reference

Definition at line 224 of file Converters.h.

Public Member Functions

 TCppObjectArrayConverter (Cppyy::TCppType_t klass, size_t size, Bool_t keepControl=kFALSE)
 
virtual PyObjectFromMemory (void *address)
 construct python tuple of instances from C++ array 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++ array of instances, write it at <address> More...
 
- Public Member Functions inherited from PyROOT::TCppObjectConverter
 TCppObjectConverter (Cppyy::TCppType_t klass, Bool_t keepControl=kFALSE)
 
- Public Member Functions inherited from PyROOT::TVoidArrayConverter
 TVoidArrayConverter (Bool_t keepControl=kTRUE)
 
- Public Member Functions inherited from PyROOT::TConverter
virtual ~TConverter ()
 

Protected Attributes

size_t m_size
 
- Protected Attributes inherited from PyROOT::TCppObjectConverter
Cppyy::TCppType_t fClass
 

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-v610/rootspi/rdoc/src/v6-10-00-patches/bindings/pyroot/src/Converters.h>

Inheritance diagram for PyROOT::TCppObjectArrayConverter:
[legend]

Constructor & Destructor Documentation

◆ TCppObjectArrayConverter()

PyROOT::TCppObjectArrayConverter::TCppObjectArrayConverter ( Cppyy::TCppType_t  klass,
size_t  size,
Bool_t  keepControl = kFALSE 
)
inline

Definition at line 226 of file Converters.h.

Member Function Documentation

◆ FromMemory()

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

construct python tuple of instances from C++ array read at <address>

Reimplemented from PyROOT::TCppObjectConverter.

Definition at line 1139 of file Converters.cxx.

◆ SetArg()

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

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

Reimplemented from PyROOT::TCppObjectConverter.

Definition at line 1111 of file Converters.cxx.

◆ ToMemory()

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

convert to C++ array of instances, write it at <address>

Reimplemented from PyROOT::TCppObjectConverter.

Definition at line 1150 of file Converters.cxx.

Member Data Documentation

◆ m_size

size_t PyROOT::TCppObjectArrayConverter::m_size
protected

Definition at line 235 of file Converters.h.


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