103 UnaryFunction0DDouble___doc__,
104 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DDouble`\n"
106 "Base class for unary functions (functors) that work on\n"
107 ":class:`Interface0DIterator` and return a float value.\n"
109 ".. method:: __init__()\n"
111 " Default constructor.\n");
117 static const char *kwlist[] = {
nullptr};
119 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
123 self->uf0D_double->py_uf0D = (PyObject *)
self;
129 delete self->uf0D_double;
135 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_double);
142 static const char *kwlist[] = {
"it",
nullptr};
145 if (!PyArg_ParseTupleAndKeywords(
152 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
156 if (!PyErr_Occurred()) {
157 string class_name(Py_TYPE(
self)->tp_name);
158 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
162 return PyFloat_FromDouble(
self->uf0D_double->result);
168 PyVarObject_HEAD_INIT(
nullptr, 0)
169 "UnaryFunction0DDouble",
187 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
188 UnaryFunction0DDouble___doc__,
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
PyDoc_STRVAR(UnaryFunction0DDouble___doc__, "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DDouble`\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")
static PyObject * UnaryFunction0DDouble___call__(BPy_UnaryFunction0DDouble *self, PyObject *args, PyObject *kwds)
static void UnaryFunction0DDouble___dealloc__(BPy_UnaryFunction0DDouble *self)
int UnaryFunction0DDouble_Init(PyObject *module)
static int UnaryFunction0DDouble___init__(BPy_UnaryFunction0DDouble *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DDouble_Type
static PyObject * UnaryFunction0DDouble___repr__(BPy_UnaryFunction0DDouble *self)
PyTypeObject UnaryFunction0D_Type
PyTypeObject ZDiscontinuityF0D_Type
static struct PyModuleDef module