23 #include "../BPy_Convert.h"
24 #include "../Iterator/BPy_Interface0DIterator.h"
101 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DFloat`\n"
103 "Base class for unary functions (functors) that work on\n"
104 ":class:`Interface0DIterator` and return a float value.\n"
106 ".. method:: __init__()\n"
108 " Default constructor.\n";
114 static const char *kwlist[] = {
nullptr};
116 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
120 self->uf0D_float->py_uf0D = (PyObject *)
self;
126 delete self->uf0D_float;
132 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_float);
139 static const char *kwlist[] = {
"it",
nullptr};
142 if (!PyArg_ParseTupleAndKeywords(
148 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
152 if (!PyErr_Occurred()) {
153 string class_name(Py_TYPE(
self)->tp_name);
154 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
158 return PyFloat_FromDouble(
self->uf0D_float->result);
164 PyVarObject_HEAD_INIT(
nullptr, 0)
"UnaryFunction0DFloat",
182 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