|
RAVE
|
Python version of the Cartesian API. More...
#include "cartesian.h"Go to the source code of this file.
Classes | |
| struct | PyCartesian |
| A cartesian product. More... | |
Macros | |
| #define | PyCartesian_Type_NUM 0 |
| index of type | |
| #define | PyCartesian_GetNative_NUM 1 |
| index of GetNative | |
| #define | PyCartesian_GetNative_RETURN Cartesian_t* |
| return type for GetNative | |
| #define | PyCartesian_GetNative_PROTO (PyCartesian*) |
| arguments for GetNative | |
| #define | PyCartesian_New_NUM 2 |
| index of New | |
| #define | PyCartesian_New_RETURN PyCartesian* |
| return type for New | |
| #define | PyCartesian_New_PROTO (Cartesian_t*) |
| arguments for New | |
| #define | PyCartesian_API_pointers 3 |
| number of api pointers | |
| #define | PyCartesian_CAPSULE_NAME "_cartesian._C_API" |
| #define | PyCartesian_GetNative (*(PyCartesian_GetNative_RETURN (*)PyCartesian_GetNative_PROTO) PyCartesian_API[PyCartesian_GetNative_NUM]) |
| Returns a pointer to the internal cartesian, remember to release the reference when done with the object. | |
| #define | PyCartesian_New (*(PyCartesian_New_RETURN (*)PyCartesian_New_PROTO) PyCartesian_API[PyCartesian_New_NUM]) |
| Creates a new cartesian instance. | |
| #define | PyCartesian_Check(op) |
| Checks if the object is a python cartesian. | |
| #define | PyCartesian_Type (*(PyTypeObject*)PyCartesian_API[PyCartesian_Type_NUM]) |
| #define | import_pycartesian() |
| Imports the PyArea module (like import _area in python). | |
Python version of the Cartesian API.
| #define import_pycartesian | ( | ) |
Imports the PyArea module (like import _area in python).
| #define PyCartesian_API_pointers 3 |
number of api pointers
| #define PyCartesian_Check | ( | op | ) |
Checks if the object is a python cartesian.
| #define PyCartesian_GetNative (*(PyCartesian_GetNative_RETURN (*)PyCartesian_GetNative_PROTO) PyCartesian_API[PyCartesian_GetNative_NUM]) |
Returns a pointer to the internal cartesian, remember to release the reference when done with the object.
(RAVE_OBJECT_RELEASE).
| #define PyCartesian_GetNative_NUM 1 |
index of GetNative
| #define PyCartesian_GetNative_PROTO (PyCartesian*) |
arguments for GetNative
| #define PyCartesian_GetNative_RETURN Cartesian_t* |
return type for GetNative
| #define PyCartesian_New (*(PyCartesian_New_RETURN (*)PyCartesian_New_PROTO) PyCartesian_API[PyCartesian_New_NUM]) |
Creates a new cartesian instance.
Release this object with Py_DECREF. If a Cartesian_t instance is provided and this instance already is bound to a python instance, this instance will be increfed and returned.
| [in] | cartesian | - the Cartesian_t intance. |
| #define PyCartesian_New_NUM 2 |
index of New
| #define PyCartesian_New_PROTO (Cartesian_t*) |
arguments for New
| #define PyCartesian_New_RETURN PyCartesian* |
return type for New
| #define PyCartesian_Type_NUM 0 |
index of type