#include "CPyCppyy.h"
#include "CPPInstance.h"
#include "TClass.h"
#include "RConfig.h"
#include <string>
Functions | |
PyObject * | BoolNot (PyObject *value) |
PyObject * | CallPyObjMethod (PyObject *obj, const char *meth) |
Set of helper functions that are invoked from the C++ implementation of pythonizations. | |
PyObject * | CallPyObjMethod (PyObject *obj, const char *meth, PyObject *arg1) |
bool | CheckEndianessFromTypestr (const std::string &typestr) |
Check whether endianess in type string matches the endianess of ROOT. | |
PyObject * | GetArrayInterface (PyObject *obj) |
Get Numpy array interface and perform error handling. | |
std::string | GetCppTypeFromNumpyType (const std::string &dtype) |
Convert Numpy data-type string to the according C++ data-type string. | |
unsigned long long | GetDataPointerFromArrayInterface (PyObject *obj) |
Get data pointer from Numpy array interface and perform error handling. | |
unsigned int | GetDatatypeSizeFromTypestr (const std::string &typestr) |
Get size of data type in bytes from Numpy type string. | |
TClass * | GetTClass (const CPyCppyy::CPPInstance *pyobj) |
std::string | GetTypestrFromArrayInterface (PyObject *obj) |
Get type string from Numpy array interface and perform error handling. | |
Definition at line 32 of file PyzCppHelpers.cxx.
Set of helper functions that are invoked from the C++ implementation of pythonizations.
Definition at line 20 of file PyzCppHelpers.cxx.
Definition at line 26 of file PyzCppHelpers.cxx.
bool CheckEndianessFromTypestr | ( | const std::string & | typestr | ) |
Check whether endianess in type string matches the endianess of ROOT.
[in] | typestr | Numpy type string |
Definition at line 142 of file PyzCppHelpers.cxx.
Get Numpy array interface and perform error handling.
[in] | obj | PyObject with array interface dictionary |
Definition at line 78 of file PyzCppHelpers.cxx.
std::string GetCppTypeFromNumpyType | ( | const std::string & | dtype | ) |
Convert Numpy data-type string to the according C++ data-type string.
[in] | dtype | Numpy data-type string |
If the input data-tyep is not known, the function returns an empty string.
Definition at line 55 of file PyzCppHelpers.cxx.
Get data pointer from Numpy array interface and perform error handling.
[in] | obj | Array interface dictionary |
Definition at line 96 of file PyzCppHelpers.cxx.
unsigned int GetDatatypeSizeFromTypestr | ( | const std::string & | typestr | ) |
Get size of data type in bytes from Numpy type string.
[in] | typestr | Numpy type string |
Definition at line 131 of file PyzCppHelpers.cxx.
TClass * GetTClass | ( | const CPyCppyy::CPPInstance * | pyobj | ) |
Definition at line 44 of file PyzCppHelpers.cxx.
std::string GetTypestrFromArrayInterface | ( | PyObject * | obj | ) |
Get type string from Numpy array interface and perform error handling.
[in] | obj | Array interface dictionary |
Definition at line 110 of file PyzCppHelpers.cxx.