25#ifndef PYBBTOPOGRAPHY_H
26#define PYBBTOPOGRAPHY_H
38#define PyBBTopography_Type_NUM 0
40#define PyBBTopography_GetNative_NUM 1
41#define PyBBTopography_GetNative_RETURN BBTopography_t*
42#define PyBBTopography_GetNative_PROTO (PyBBTopography*)
44#define PyBBTopography_New_NUM 2
45#define PyBBTopography_New_RETURN PyBBTopography*
46#define PyBBTopography_New_PROTO (BBTopography_t*)
48#define PyBBTopography_API_pointers 3
50#define PyBBTopography_CAPSULE_NAME "_bbtopography._C_API"
52#ifdef PYBBTOPOGRAPHY_MODULE
54extern PyTypeObject PyBBTopography_Type;
57#define PyBBTopography_Check(op) ((op)->ob_type == &PyBBTopography_Type)
67static void **PyBBTopography_API;
73#define PyBBTopography_GetNative \
74 (*(PyBBTopography_GetNative_RETURN (*)PyBBTopography_GetNative_PROTO) PyBBTopography_API[PyBBTopography_GetNative_NUM])
83#define PyBBTopography_New \
84 (*(PyBBTopography_New_RETURN (*)PyBBTopography_New_PROTO) PyBBTopography_API[PyBBTopography_New_NUM])
89#define PyBBTopography_Check(op) \
90 (Py_TYPE(op) == &PyBBTopography_Type)
92#define PyBBTopography_Type (*(PyTypeObject*)PyBBTopography_API[PyBBTopography_Type_NUM])
97#define import_bbtopography() \
98 PyBBTopography_API = (void **)PyCapsule_Import(PyBBTopography_CAPSULE_NAME, 1);
Beam-blockage topography field.
#define PyBBTopography_New
Creates a new instance.
Definition pybbtopography.h:83
#define PyBBTopography_New_RETURN
return type for New
Definition pybbtopography.h:45
#define PyBBTopography_GetNative_PROTO
arguments for GetNative
Definition pybbtopography.h:42
#define PyBBTopography_New_PROTO
arguments for New
Definition pybbtopography.h:46
#define PyBBTopography_GetNative_RETURN
return type for GetNative
Definition pybbtopography.h:41
#define PyBBTopography_GetNative
Returns a pointer to the internal object, remember to release the reference when done with the object...
Definition pybbtopography.h:73
The beam blockage.
Definition pybbtopography.h:33
PyObject_HEAD BBTopography_t * topo
the native object
Definition pybbtopography.h:35
Represents the beam blockage topography.
Definition bbtopography.c:34