25#ifndef PYCARTESIANCOMPOSITE_H
26#define PYCARTESIANCOMPOSITE_H
37#define PyCartesianComposite_Type_NUM 0
39#define PyCartesianComposite_GetNative_NUM 1
40#define PyCartesianComposite_GetNative_RETURN CartesianComposite_t*
41#define PyCartesianComposite_GetNative_PROTO (PyCartesianComposite*)
43#define PyCartesianComposite_New_NUM 2
44#define PyCartesianComposite_New_RETURN PyCartesianComposite*
45#define PyCartesianComposite_New_PROTO (CartesianComposite_t*)
47#define PyCartesianComposite_API_pointers 3
49#define PyCartesianComposite_CAPSULE_NAME "_cartesiancomposite._C_API"
51#ifdef PYCARTESIANCOMPOSITE_MODULE
53extern PyTypeObject PyCartesianComposite_Type;
56#define PyCartesianComposite_Check(op) ((op)->ob_type == &PyCartesianComposite_Type)
66static void **PyCartesianComposite_API;
72#define PyCartesianComposite_GetNative \
73 (*(PyCartesianComposite_GetNative_RETURN (*)PyCartesianComposite_GetNative_PROTO) PyCartesianComposite_API[PyCartesianComposite_GetNative_NUM])
82#define PyCartesianComposite_New \
83 (*(PyCartesianComposite_New_RETURN (*)PyCartesianComposite_New_PROTO) PyCartesianComposite_API[PyCartesianComposite_New_NUM])
88#define PyCartesianComposite_Check(op) \
89 (Py_TYPE(op) == &PyCartesianComposite_Type)
91#define PyCartesianComposite_Type (*(PyTypeObject*)PyCartesianComposite_API[PyCartesianComposite_Type_NUM])
96#define import_pycartesiancomposite() \
97 PyCartesianComposite_API = (void **)PyCapsule_Import(PyCartesianComposite_CAPSULE_NAME, 1);
Defines the functions available when creating composites from cartesian products.
#define PyCartesianComposite_New
Creates a new cartesian instance.
Definition pycartesiancomposite.h:82
#define PyCartesianComposite_New_PROTO
arguments for New
Definition pycartesiancomposite.h:45
#define PyCartesianComposite_GetNative_PROTO
arguments for GetNative
Definition pycartesiancomposite.h:41
#define PyCartesianComposite_GetNative_RETURN
return type for GetNative
Definition pycartesiancomposite.h:40
#define PyCartesianComposite_New_RETURN
return type for New
Definition pycartesiancomposite.h:44
#define PyCartesianComposite_GetNative
Returns a pointer to the internal cartesian, remember to release the reference when done with the obj...
Definition pycartesiancomposite.h:72
A cartesian product.
Definition pycartesiancomposite.h:32
PyObject_HEAD CartesianComposite_t * generator
the cartesian composite generator
Definition pycartesiancomposite.h:34
Represents the cartesian composite generator.
Definition cartesiancomposite.c:40