37#define PyRaveField_Type_NUM 0
39#define PyRaveField_GetNative_NUM 1
40#define PyRaveField_GetNative_RETURN RaveField_t*
41#define PyRaveField_GetNative_PROTO (PyRaveField*)
43#define PyRaveField_New_NUM 2
44#define PyRaveField_New_RETURN PyRaveField*
45#define PyRaveField_New_PROTO (RaveField_t*)
47#define PyRaveField_API_pointers 3
49#define PyRaveField_CAPSULE_NAME "_ravefield._C_API"
51#ifdef PYRAVEFIELD_MODULE
53extern PyTypeObject PyRaveField_Type;
56#define PyRaveField_Check(op) ((op)->ob_type == &PyRaveField_Type)
66static void **PyRaveField_API;
72#define PyRaveField_GetNative \
73 (*(PyRaveField_GetNative_RETURN (*)PyRaveField_GetNative_PROTO) PyRaveField_API[PyRaveField_GetNative_NUM])
82#define PyRaveField_New \
83 (*(PyRaveField_New_RETURN (*)PyRaveField_New_PROTO) PyRaveField_API[PyRaveField_New_NUM])
88#define PyRaveField_Check(op) \
89 (Py_TYPE(op) == &PyRaveField_Type)
91#define PyRaveField_Type (*(PyTypeObject*)PyRaveField_API[PyRaveField_Type_NUM])
96#define import_pyravefield() \
97 PyRaveField_API = (void **)PyCapsule_Import(PyRaveField_CAPSULE_NAME, 1);
#define PyRaveField_New_RETURN
return type for New
Definition pyravefield.h:44
#define PyRaveField_New_PROTO
arguments for New
Definition pyravefield.h:45
#define PyRaveField_GetNative
Returns a pointer to the internal field, remember to release the reference when done with the object.
Definition pyravefield.h:72
#define PyRaveField_GetNative_PROTO
arguments for GetNative
Definition pyravefield.h:41
#define PyRaveField_GetNative_RETURN
return type for GetNative
Definition pyravefield.h:40
#define PyRaveField_New
Creates a new rave field instance.
Definition pyravefield.h:82
Generic field that only provides a 2-dim data field and a number of dynamic attributes.
The rave field object.
Definition pyravefield.h:32
PyObject_HEAD RaveField_t * field
the rave field
Definition pyravefield.h:34
Represents the cartesian volume.
Definition rave_field.c:36