9 #include "../BPy_Convert.h"
10 #include "../Iterator/BPy_Interface0DIterator.h"
111 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DDouble`\n"
113 "Base class for unary functions (functors) that work on\n"
114 ":class:`Interface0DIterator` and return a float value.\n"
116 ".. method:: __init__()\n"
118 " Default constructor.\n";
124 static const char *kwlist[] = {
nullptr};
126 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
130 self->uf0D_double->py_uf0D = (PyObject *)
self;
136 delete self->uf0D_double;
142 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_double);
149 static const char *kwlist[] = {
"it",
nullptr};
152 if (!PyArg_ParseTupleAndKeywords(
158 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
162 if (!PyErr_Occurred()) {
163 string class_name(Py_TYPE(
self)->tp_name);
164 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
168 return PyFloat_FromDouble(
self->uf0D_double->result);
174 PyVarObject_HEAD_INIT(
nullptr, 0)
"UnaryFunction0DDouble",
192 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyTypeObject Curvature2DAngleF0D_Type
PyTypeObject DensityF0D_Type
PyTypeObject GetProjectedXF0D_Type
PyTypeObject GetProjectedYF0D_Type
PyTypeObject GetProjectedZF0D_Type
PyTypeObject GetXF0D_Type
PyTypeObject GetYF0D_Type
PyTypeObject GetZF0D_Type
PyTypeObject Interface0DIterator_Type
PyTypeObject LocalAverageDepthF0D_Type
static PyObject * UnaryFunction0DDouble___repr__(BPy_UnaryFunction0DDouble *self)
static void UnaryFunction0DDouble___dealloc__(BPy_UnaryFunction0DDouble *self)
int UnaryFunction0DDouble_Init(PyObject *module)
static char UnaryFunction0DDouble___doc__[]
static PyObject * UnaryFunction0DDouble___call__(BPy_UnaryFunction0DDouble *self, PyObject *args, PyObject *kwds)
static int UnaryFunction0DDouble___init__(BPy_UnaryFunction0DDouble *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DDouble_Type
PyTypeObject UnaryFunction0D_Type
PyTypeObject ZDiscontinuityF0D_Type
static struct PyModuleDef module