41 PyModule_AddObjectRef(
52 PyModule_AddObjectRef(
58 PyModule_AddObjectRef(
69 PyModule_AddObjectRef(
79 UnaryFunction0DFloat___doc__,
80 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DFloat`\n"
82 "Base class for unary functions (functors) that work on\n"
83 ":class:`Interface0DIterator` and return a float value.\n"
85 ".. method:: __init__()\n"
87 " Default constructor.\n");
93 static const char *kwlist[] = {
nullptr};
95 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
99 self->uf0D_float->py_uf0D = (PyObject *)
self;
105 delete self->uf0D_float;
111 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_float);
118 static const char *kwlist[] = {
"it",
nullptr};
121 if (!PyArg_ParseTupleAndKeywords(
128 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
132 if (!PyErr_Occurred()) {
133 string class_name(Py_TYPE(
self)->tp_name);
134 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
138 return PyFloat_FromDouble(
self->uf0D_float->result);
144 PyVarObject_HEAD_INIT(
nullptr, 0)
145 "UnaryFunction0DFloat",
163 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
164 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