45 PyModule_AddObjectRef(
56 PyModule_AddObjectRef(
62 PyModule_AddObjectRef(
73 PyModule_AddObjectRef(
83 UnaryFunction0DFloat___doc__,
84 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DFloat`\n"
86 "Base class for unary functions (functors) that work on\n"
87 ":class:`Interface0DIterator` and return a float value.\n"
89 ".. method:: __init__()\n"
91 " Default constructor.\n");
97 static const char *kwlist[] = {
nullptr};
99 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
103 self->uf0D_float->py_uf0D = (PyObject *)
self;
109 delete self->uf0D_float;
115 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_float);
122 static const char *kwlist[] = {
"it",
nullptr};
125 if (!PyArg_ParseTupleAndKeywords(
132 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
136 if (!PyErr_Occurred()) {
137 string class_name(Py_TYPE(
self)->tp_name);
138 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
142 return PyFloat_FromDouble(
self->uf0D_float->result);
148 PyVarObject_HEAD_INIT(
nullptr, 0)
149 "UnaryFunction0DFloat",
167 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
168 UnaryFunction0DFloat___doc__,
PyTypeObject GetCurvilinearAbscissaF0D_Type
PyTypeObject GetParameterF0D_Type
PyTypeObject GetViewMapGradientNormF0D_Type
PyTypeObject Interface0DIterator_Type
PyTypeObject ReadCompleteViewMapPixelF0D_Type
PyTypeObject ReadMapPixelF0D_Type
PyTypeObject ReadSteerableViewMapPixelF0D_Type
static int UnaryFunction0DFloat___init__(BPy_UnaryFunction0DFloat *self, PyObject *args, PyObject *kwds)
static PyObject * UnaryFunction0DFloat___repr__(BPy_UnaryFunction0DFloat *self)
static void UnaryFunction0DFloat___dealloc__(BPy_UnaryFunction0DFloat *self)
PyDoc_STRVAR(UnaryFunction0DFloat___doc__, "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DFloat`\n" "\n" "Base class for unary functions (functors) that work on\n" ":class:`Interface0DIterator` and return a float value.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.\n")
int UnaryFunction0DFloat_Init(PyObject *module)
static PyObject * UnaryFunction0DFloat___call__(BPy_UnaryFunction0DFloat *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DFloat_Type
PyTypeObject UnaryFunction0D_Type
static struct PyModuleDef module