9 #include "../BPy_Convert.h"
10 #include "../Iterator/BPy_Interface0DIterator.h"
87 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DFloat`\n"
89 "Base class for unary functions (functors) that work on\n"
90 ":class:`Interface0DIterator` and return a float value.\n"
92 ".. method:: __init__()\n"
94 " Default constructor.\n";
100 static const char *kwlist[] = {
nullptr};
102 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
106 self->uf0D_float->py_uf0D = (PyObject *)
self;
112 delete self->uf0D_float;
118 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_float);
125 static const char *kwlist[] = {
"it",
nullptr};
128 if (!PyArg_ParseTupleAndKeywords(
134 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
138 if (!PyErr_Occurred()) {
139 string class_name(Py_TYPE(
self)->tp_name);
140 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
144 return PyFloat_FromDouble(
self->uf0D_float->result);
150 PyVarObject_HEAD_INIT(
nullptr, 0)
"UnaryFunction0DFloat",
168 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyTypeObject GetCurvilinearAbscissaF0D_Type
PyTypeObject GetParameterF0D_Type
PyTypeObject GetViewMapGradientNormF0D_Type
PyTypeObject Interface0DIterator_Type
PyTypeObject ReadCompleteViewMapPixelF0D_Type
PyTypeObject ReadMapPixelF0D_Type
PyTypeObject ReadSteerableViewMapPixelF0D_Type
static PyObject * UnaryFunction0DFloat___call__(BPy_UnaryFunction0DFloat *self, PyObject *args, PyObject *kwds)
static char UnaryFunction0DFloat___doc__[]
static PyObject * UnaryFunction0DFloat___repr__(BPy_UnaryFunction0DFloat *self)
static int UnaryFunction0DFloat___init__(BPy_UnaryFunction0DFloat *self, PyObject *args, PyObject *kwds)
static void UnaryFunction0DFloat___dealloc__(BPy_UnaryFunction0DFloat *self)
int UnaryFunction0DFloat_Init(PyObject *module)
PyTypeObject UnaryFunction0DFloat_Type
PyTypeObject UnaryFunction0D_Type
static struct PyModuleDef module