25#ifndef PYBEAMBLOCKAGE_H
26#define PYBEAMBLOCKAGE_H
37#define PyBeamBlockage_Type_NUM 0
39#define PyBeamBlockage_GetNative_NUM 1
40#define PyBeamBlockage_GetNative_RETURN BeamBlockage_t*
41#define PyBeamBlockage_GetNative_PROTO (PyBeamBlockage*)
43#define PyBeamBlockage_New_NUM 2
44#define PyBeamBlockage_New_RETURN PyBeamBlockage*
45#define PyBeamBlockage_New_PROTO (BeamBlockage_t*)
47#define PyBeamBlockage_API_pointers 3
49#define PyBeamBlockage_CAPSULE_NAME "_beamblockage._C_API"
51#ifdef PYBEAMBLOCKAGE_MODULE
53extern PyTypeObject PyBeamBlockage_Type;
56#define PyBeamBlockage_Check(op) ((op)->ob_type == &PyBeamBlockage_Type)
66static void **PyBeamBlockage_API;
72#define PyBeamBlockage_GetNative \
73 (*(PyBeamBlockage_GetNative_RETURN (*)PyBeamBlockage_GetNative_PROTO) PyBeamBlockage_API[PyBeamBlockage_GetNative_NUM])
82#define PyBeamBlockage_New \
83 (*(PyBeamBlockage_New_RETURN (*)PyBeamBlockage_New_PROTO) PyBeamBlockage_API[PyBeamBlockage_New_NUM])
88#define PyBeamBlockage_Check(op) \
89 (Py_TYPE(op) == &PyBeamBlockage_Type)
92#define PyBeamBlockage_Type (*(PyTypeObject*)PyBeamBlockage_API[PyBeamBlockage_Type_NUM])
98#define import_beamblockage() \
99 PyBeamBlockage_API = (void **)PyCapsule_Import(PyBeamBlockage_CAPSULE_NAME, 1);
#define PyBeamBlockage_GetNative_RETURN
return type for GetNative
Definition pybeamblockage.h:40
#define PyBeamBlockage_New
Creates a new beam blockage instance.
Definition pybeamblockage.h:82
#define PyBeamBlockage_New_RETURN
return type for New
Definition pybeamblockage.h:44
#define PyBeamBlockage_GetNative
Returns a pointer to the internal beam blockage, remember to release the reference when done with the...
Definition pybeamblockage.h:72
#define PyBeamBlockage_GetNative_PROTO
arguments for GetNative
Definition pybeamblockage.h:41
#define PyBeamBlockage_New_PROTO
arguments for New
Definition pybeamblockage.h:45
The beam blockage.
Definition pybeamblockage.h:32
PyObject_HEAD BeamBlockage_t * beamb
the native object
Definition pybeamblockage.h:34
Represents the beam blockage algorithm.
Definition beamblockage.c:44