Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
CPyCppyy.h File Reference
#include "Python.h"
#include <sys/types.h>
#include "Cppyy.h"
#include "CPyCppyy/CommonDefs.h"
Include dependency graph for CPyCppyy.h:
This graph shows which files directly or indirectly include this file:

Macros

#define CPPYY__div__   "__div__"
 
#define CPPYY__idiv__   "__idiv__"
 
#define CPPYY__long__   "__long__"
 
#define CPPYY__next__   "next"
 
#define CPyCppyy_PyCapsule_CheckExact   PyCObject_Check
 
#define CPyCppyy_PyCFunction_Call   PyCFunction_Call
 
#define CPyCppyy_PySliceCast   PySliceObject*
 
#define CPyCppyy_PyText_Append   PyString_Concat
 
#define CPyCppyy_PyText_AppendAndDel   PyString_ConcatAndDel
 
#define CPyCppyy_PyText_AsString   PyString_AS_STRING
 
#define CPyCppyy_PyText_AsStringChecked   PyString_AsString
 
#define CPyCppyy_PyText_Check   PyString_Check
 
#define CPyCppyy_PyText_CheckExact   PyString_CheckExact
 
#define CPyCppyy_PyText_FromFormat   PyString_FromFormat
 
#define CPyCppyy_PyText_FromString   PyString_FromString
 
#define CPyCppyy_PyText_FromStringAndSize   PyString_FromStringAndSize
 
#define CPyCppyy_PyText_GET_SIZE   PyString_GET_SIZE
 
#define CPyCppyy_PyText_GetSize   PyString_Size
 
#define CPyCppyy_PyText_InternFromString   PyString_InternFromString
 
#define CPyCppyy_PyText_Type   PyString_Type
 
#define CPyCppyy_PyUnicode_GET_SIZE   PyUnicode_GET_SIZE
 
#define lenfunc   inquiry
 
#define Py_RETURN_FALSE   return Py_INCREF(Py_False), Py_False
 
#define Py_RETURN_NONE   return Py_INCREF(Py_None), Py_None
 
#define Py_RETURN_TRUE   return Py_INCREF(Py_True), Py_True
 
#define Py_SET_TYPE(ob, type)   _Py_SET_TYPE((PyObject*)(ob), type)
 
#define PY_SSIZE_T_FORMAT   "%d"
 
#define PY_SSIZE_T_MAX   INT_MAX
 
#define PY_SSIZE_T_MIN   INT_MIN
 
#define Py_TYPE(ob)   (((PyObject*)(ob))->ob_type)
 
#define PyBool_FromLong   PyInt_FromLong
 
#define PyBytes_AS_STRING   PyString_AS_STRING
 
#define PyBytes_AsString   PyString_AsString
 
#define PyBytes_Check   PyString_Check
 
#define PyBytes_CheckExact   PyString_CheckExact
 
#define PyBytes_FromFormat   PyString_FromFormat
 
#define PyBytes_FromString   PyString_FromString
 
#define PyBytes_FromStringAndSize   PyString_FromStringAndSize
 
#define PyBytes_GET_SIZE   PyString_GET_SIZE
 
#define PyBytes_Size   PyString_Size
 
#define PyBytes_Type   PyString_Type
 
#define PyIndex_Check(obj)    (PyInt_Check(obj) || PyLong_Check(obj))
 
#define PyInt_AsSsize_t   PyInt_AsLong
 
#define PyInt_FromSsize_t   PyInt_FromLong
 
#define PyVarObject_HEAD_INIT(type, size)    PyObject_HEAD_INIT(type) size,
 
#define ssizeargfunc   intargfunc
 
#define ssizeobjargproc   intobjargproc
 

Typedefs

typedef PyDictEntry *(* dict_lookup_func) (PyDictObject *, PyObject *, long)
 
typedef Py_ssize_t dim_t
 
typedef dim_tdims_t
 
typedef double Double32_t
 
typedef float Float16_t
 
typedef int Int_t
 
typedef long long Long64_t
 
typedef long Long_t
 
typedef long double LongDouble_t
 
typedef long Py_hash_t
 
typedef int Py_ssize_t
 
typedef unsigned int UInt_t
 
typedef unsigned long long ULong64_t
 
typedef unsigned long ULong_t
 

Functions

static void _Py_SET_TYPE (PyObject *ob, PyTypeObject *type)
 
static voidCPyCppyy_PyCapsule_GetPointer (PyObject *capsule, const char *)
 
static PyObjectCPyCppyy_PyCapsule_New (void *cobj, const char *, void(*destr)(void *))
 
static const char * CPyCppyy_PyText_AsStringAndSize (PyObject *pystr, Py_ssize_t *size)
 
static Py_ssize_t CPyCppyy_PyUnicode_AsWideChar (PyObject *pyobj, wchar_t *w, Py_ssize_t size)
 
Py_ssize_t PyNumber_AsSsize_t (PyObject *obj, PyObject *)
 

Macro Definition Documentation

◆ CPPYY__div__

#define CPPYY__div__   "__div__"

Definition at line 132 of file CPyCppyy.h.

◆ CPPYY__idiv__

#define CPPYY__idiv__   "__idiv__"

Definition at line 131 of file CPyCppyy.h.

◆ CPPYY__long__

#define CPPYY__long__   "__long__"

Definition at line 130 of file CPyCppyy.h.

◆ CPPYY__next__

#define CPPYY__next__   "next"

Definition at line 133 of file CPyCppyy.h.

◆ CPyCppyy_PyCapsule_CheckExact

#define CPyCppyy_PyCapsule_CheckExact   PyCObject_Check

Definition at line 124 of file CPyCppyy.h.

◆ CPyCppyy_PyCFunction_Call

#define CPyCppyy_PyCFunction_Call   PyCFunction_Call

Definition at line 304 of file CPyCppyy.h.

◆ CPyCppyy_PySliceCast

#define CPyCppyy_PySliceCast   PySliceObject*

Definition at line 210 of file CPyCppyy.h.

◆ CPyCppyy_PyText_Append

#define CPyCppyy_PyText_Append   PyString_Concat

Definition at line 104 of file CPyCppyy.h.

◆ CPyCppyy_PyText_AppendAndDel

#define CPyCppyy_PyText_AppendAndDel   PyString_ConcatAndDel

Definition at line 105 of file CPyCppyy.h.

◆ CPyCppyy_PyText_AsString

#define CPyCppyy_PyText_AsString   PyString_AS_STRING

Definition at line 97 of file CPyCppyy.h.

◆ CPyCppyy_PyText_AsStringChecked

#define CPyCppyy_PyText_AsStringChecked   PyString_AsString

Definition at line 98 of file CPyCppyy.h.

◆ CPyCppyy_PyText_Check

#define CPyCppyy_PyText_Check   PyString_Check

Definition at line 95 of file CPyCppyy.h.

◆ CPyCppyy_PyText_CheckExact

#define CPyCppyy_PyText_CheckExact   PyString_CheckExact

Definition at line 96 of file CPyCppyy.h.

◆ CPyCppyy_PyText_FromFormat

#define CPyCppyy_PyText_FromFormat   PyString_FromFormat

Definition at line 101 of file CPyCppyy.h.

◆ CPyCppyy_PyText_FromString

#define CPyCppyy_PyText_FromString   PyString_FromString

Definition at line 102 of file CPyCppyy.h.

◆ CPyCppyy_PyText_FromStringAndSize

#define CPyCppyy_PyText_FromStringAndSize   PyString_FromStringAndSize

Definition at line 106 of file CPyCppyy.h.

◆ CPyCppyy_PyText_GET_SIZE

#define CPyCppyy_PyText_GET_SIZE   PyString_GET_SIZE

Definition at line 99 of file CPyCppyy.h.

◆ CPyCppyy_PyText_GetSize

#define CPyCppyy_PyText_GetSize   PyString_Size

Definition at line 100 of file CPyCppyy.h.

◆ CPyCppyy_PyText_InternFromString

#define CPyCppyy_PyText_InternFromString   PyString_InternFromString

Definition at line 103 of file CPyCppyy.h.

◆ CPyCppyy_PyText_Type

#define CPyCppyy_PyText_Type   PyString_Type

Definition at line 115 of file CPyCppyy.h.

◆ CPyCppyy_PyUnicode_GET_SIZE

#define CPyCppyy_PyUnicode_GET_SIZE   PyUnicode_GET_SIZE

Definition at line 117 of file CPyCppyy.h.

◆ lenfunc

#define lenfunc   inquiry

Definition at line 245 of file CPyCppyy.h.

◆ Py_RETURN_FALSE

#define Py_RETURN_FALSE   return Py_INCREF(Py_False), Py_False

Definition at line 297 of file CPyCppyy.h.

◆ Py_RETURN_NONE

#define Py_RETURN_NONE   return Py_INCREF(Py_None), Py_None

Definition at line 289 of file CPyCppyy.h.

◆ Py_RETURN_TRUE

#define Py_RETURN_TRUE   return Py_INCREF(Py_True), Py_True

Definition at line 293 of file CPyCppyy.h.

◆ Py_SET_TYPE

#define Py_SET_TYPE (   ob,
  type 
)    _Py_SET_TYPE((PyObject*)(ob), type)

Definition at line 311 of file CPyCppyy.h.

◆ PY_SSIZE_T_FORMAT

#define PY_SSIZE_T_FORMAT   "%d"

Definition at line 239 of file CPyCppyy.h.

◆ PY_SSIZE_T_MAX

#define PY_SSIZE_T_MAX   INT_MAX

Definition at line 241 of file CPyCppyy.h.

◆ PY_SSIZE_T_MIN

#define PY_SSIZE_T_MIN   INT_MIN

Definition at line 242 of file CPyCppyy.h.

◆ Py_TYPE

#define Py_TYPE (   ob)    (((PyObject*)(ob))->ob_type)

Definition at line 217 of file CPyCppyy.h.

◆ PyBool_FromLong

#define PyBool_FromLong   PyInt_FromLong

Definition at line 272 of file CPyCppyy.h.

◆ PyBytes_AS_STRING

#define PyBytes_AS_STRING   PyString_AS_STRING

Definition at line 85 of file CPyCppyy.h.

◆ PyBytes_AsString

#define PyBytes_AsString   PyString_AsString

Definition at line 86 of file CPyCppyy.h.

◆ PyBytes_Check

#define PyBytes_Check   PyString_Check

Definition at line 83 of file CPyCppyy.h.

◆ PyBytes_CheckExact

#define PyBytes_CheckExact   PyString_CheckExact

Definition at line 84 of file CPyCppyy.h.

◆ PyBytes_FromFormat

#define PyBytes_FromFormat   PyString_FromFormat

Definition at line 89 of file CPyCppyy.h.

◆ PyBytes_FromString

#define PyBytes_FromString   PyString_FromString

Definition at line 90 of file CPyCppyy.h.

◆ PyBytes_FromStringAndSize

#define PyBytes_FromStringAndSize   PyString_FromStringAndSize

Definition at line 91 of file CPyCppyy.h.

◆ PyBytes_GET_SIZE

#define PyBytes_GET_SIZE   PyString_GET_SIZE

Definition at line 87 of file CPyCppyy.h.

◆ PyBytes_Size

#define PyBytes_Size   PyString_Size

Definition at line 88 of file CPyCppyy.h.

◆ PyBytes_Type

#define PyBytes_Type   PyString_Type

Definition at line 93 of file CPyCppyy.h.

◆ PyIndex_Check

#define PyIndex_Check (   obj)     (PyInt_Check(obj) || PyLong_Check(obj))

Definition at line 248 of file CPyCppyy.h.

◆ PyInt_AsSsize_t

#define PyInt_AsSsize_t   PyInt_AsLong

Definition at line 237 of file CPyCppyy.h.

◆ PyInt_FromSsize_t

#define PyInt_FromSsize_t   PyInt_FromLong

Definition at line 238 of file CPyCppyy.h.

◆ PyVarObject_HEAD_INIT

#define PyVarObject_HEAD_INIT (   type,
  size 
)     PyObject_HEAD_INIT(type) size,

Definition at line 215 of file CPyCppyy.h.

◆ ssizeargfunc

#define ssizeargfunc   intargfunc

Definition at line 246 of file CPyCppyy.h.

◆ ssizeobjargproc

#define ssizeobjargproc   intobjargproc

Definition at line 244 of file CPyCppyy.h.

Typedef Documentation

◆ dict_lookup_func

typedef PyDictEntry *(* dict_lookup_func) (PyDictObject *, PyObject *, long)

Definition at line 69 of file CPyCppyy.h.

◆ dim_t

typedef Py_ssize_t dim_t

Definition at line 64 of file CPyCppyy.h.

◆ dims_t

typedef dim_t* dims_t

Definition at line 65 of file CPyCppyy.h.

◆ Double32_t

typedef double Double32_t

Definition at line 54 of file CPyCppyy.h.

◆ Float16_t

typedef float Float16_t

Definition at line 53 of file CPyCppyy.h.

◆ Int_t

typedef int Int_t

Definition at line 43 of file CPyCppyy.h.

◆ Long64_t

typedef long long Long64_t

Definition at line 60 of file CPyCppyy.h.

◆ Long_t

typedef long Long_t

Definition at line 50 of file CPyCppyy.h.

◆ LongDouble_t

Definition at line 55 of file CPyCppyy.h.

◆ Py_hash_t

typedef long Py_hash_t

Definition at line 135 of file CPyCppyy.h.

◆ Py_ssize_t

typedef int Py_ssize_t

Definition at line 236 of file CPyCppyy.h.

◆ UInt_t

typedef unsigned int UInt_t

Definition at line 44 of file CPyCppyy.h.

◆ ULong64_t

typedef unsigned long long ULong64_t

Definition at line 61 of file CPyCppyy.h.

◆ ULong_t

typedef unsigned long ULong_t

Definition at line 51 of file CPyCppyy.h.

Function Documentation

◆ _Py_SET_TYPE()

static void _Py_SET_TYPE ( PyObject ob,
PyTypeObject *  type 
)
inlinestatic

Definition at line 310 of file CPyCppyy.h.

◆ CPyCppyy_PyCapsule_GetPointer()

static void * CPyCppyy_PyCapsule_GetPointer ( PyObject capsule,
const char *   
)
inlinestatic

Definition at line 125 of file CPyCppyy.h.

◆ CPyCppyy_PyCapsule_New()

static PyObject * CPyCppyy_PyCapsule_New ( void cobj,
const char *  ,
void(*)(void *)  destr 
)
inlinestatic

Definition at line 119 of file CPyCppyy.h.

◆ CPyCppyy_PyText_AsStringAndSize()

static const char * CPyCppyy_PyText_AsStringAndSize ( PyObject pystr,
Py_ssize_t size 
)
inlinestatic

Definition at line 108 of file CPyCppyy.h.

◆ CPyCppyy_PyUnicode_AsWideChar()

static Py_ssize_t CPyCppyy_PyUnicode_AsWideChar ( PyObject pyobj,
wchar_t *  w,
Py_ssize_t  size 
)
inlinestatic

Definition at line 222 of file CPyCppyy.h.

◆ PyNumber_AsSsize_t()

Py_ssize_t PyNumber_AsSsize_t ( PyObject obj,
PyObject  
)
inline

Definition at line 251 of file CPyCppyy.h.