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");
92 static const char *kwlist[] = {
nullptr};
94 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
98 self->uf0D_float->py_uf0D = (PyObject *)
self;
104 delete self->uf0D_float;
110 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_float);
117 static const char *kwlist[] = {
"it",
nullptr};
120 if (!PyArg_ParseTupleAndKeywords(
127 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
131 if (!PyErr_Occurred()) {
132 string class_name(Py_TYPE(
self)->tp_name);
133 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
137 return PyFloat_FromDouble(
self->uf0D_float->result);
143 PyVarObject_HEAD_INIT(
nullptr, 0)
144 "UnaryFunction0DFloat",
162 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
163 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