Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Pythonize.cxx File Reference
#include "CPyCppyy.h"
#include "Pythonize.h"
#include "Converters.h"
#include "CPPInstance.h"
#include "CPPOverload.h"
#include "CustomPyTypes.h"
#include "LowLevelViews.h"
#include "ProxyWrappers.h"
#include "PyCallable.h"
#include "PyStrings.h"
#include "TypeManip.h"
#include "Utility.h"
#include <algorithm>
#include <complex>
#include <set>
#include <stdexcept>
#include <sstream>
#include <string>
#include <utility>
Include dependency graph for Pythonize.cxx:

Namespaces

namespace  CPyCppyy
 Set of helper functions that are invoked from the pythonizors, on the Python side.
 

Macros

#define COMPLEX_METH_GETSET(name, cppname)
 
#define CPPYY_IMPL_STRING_PYTHONIZATION(type, name)
 
#define CPPYY_IMPL_STRING_PYTHONIZATION_CMP(type, name)
 
#define PyObject_LengthHint   _PyObject_LengthHint
 

Macro Definition Documentation

◆ COMPLEX_METH_GETSET

#define COMPLEX_METH_GETSET (   name,
  cppname 
)
Value:
static PyObject* name##ComplexGet(PyObject* self, void*) { \
return PyObject_CallMethodObjArgs(self, cppname, nullptr); \
} \
static int name##ComplexSet(PyObject* self, PyObject* value, void*) { \
PyObject* result = PyObject_CallMethodObjArgs(self, cppname, value, nullptr);\
if (result) { \
Py_DECREF(result); \
return 0; \
} \
return -1; \
} \
PyGetSetDef name##Complex{(char*)#name, (getter)name##ComplexGet, (setter)name##ComplexSet, nullptr, nullptr};
_object PyObject
char name[80]
Definition TGX11.cxx:110

Definition at line 907 of file Pythonize.cxx.

◆ CPPYY_IMPL_STRING_PYTHONIZATION

#define CPPYY_IMPL_STRING_PYTHONIZATION (   type,
  name 
)

Definition at line 777 of file Pythonize.cxx.

◆ CPPYY_IMPL_STRING_PYTHONIZATION_CMP

#define CPPYY_IMPL_STRING_PYTHONIZATION_CMP (   type,
  name 
)
Value:
PyObject* name##StringCompare(PyObject* self, PyObject* obj) \
{ \
PyObject* data = name##StringGetData(self); \
int result = 0; \
if (data) { \
result = PyObject_Compare(data, obj); \
Py_DECREF(data); \
} \
if (PyErr_Occurred()) \
return nullptr; \
return PyInt_FromLong(result); \
}
PyInt_FromLong
#define CPPYY_IMPL_STRING_PYTHONIZATION(type, name)
int type
Definition TGX11.cxx:121

Definition at line 826 of file Pythonize.cxx.

◆ PyObject_LengthHint

#define PyObject_LengthHint   _PyObject_LengthHint

Definition at line 196 of file Pythonize.cxx.