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
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
char name[80]
Definition TGX11.cxx:110

Definition at line 929 of file Pythonize.cxx.

◆ CPPYY_IMPL_STRING_PYTHONIZATION

#define CPPYY_IMPL_STRING_PYTHONIZATION (   type,
  name 
)

Definition at line 796 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); \
}
#define CPPYY_IMPL_STRING_PYTHONIZATION(type, name)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type

Definition at line 845 of file Pythonize.cxx.

◆ PyObject_LengthHint

#define PyObject_LengthHint   _PyObject_LengthHint

Definition at line 196 of file Pythonize.cxx.