9 #include "../BPy_Convert.h"
10 #include "../Iterator/BPy_Interface0DIterator.h"
48 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DId`\n"
50 "Base class for unary functions (functors) that work on\n"
51 ":class:`Interface0DIterator` and return an :class:`Id` object.\n"
53 ".. method:: __init__()\n"
55 " Default constructor.\n";
59 static const char *kwlist[] = {
nullptr};
61 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
65 self->uf0D_id->py_uf0D = (PyObject *)
self;
77 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_id);
84 static const char *kwlist[] = {
"it",
nullptr};
87 if (!PyArg_ParseTupleAndKeywords(
93 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
97 if (!PyErr_Occurred()) {
98 string class_name(Py_TYPE(
self)->tp_name);
99 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
109 PyVarObject_HEAD_INIT(
nullptr, 0)
"UnaryFunction0DId",
127 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyObject * BPy_Id_from_Id(Id &id)
PyTypeObject Interface0DIterator_Type
PyTypeObject ShapeIdF0D_Type
static void UnaryFunction0DId___dealloc__(BPy_UnaryFunction0DId *self)
static int UnaryFunction0DId___init__(BPy_UnaryFunction0DId *self, PyObject *args, PyObject *kwds)
static PyObject * UnaryFunction0DId___call__(BPy_UnaryFunction0DId *self, PyObject *args, PyObject *kwds)
static char UnaryFunction0DId___doc__[]
int UnaryFunction0DId_Init(PyObject *module)
PyTypeObject UnaryFunction0DId_Type
static PyObject * UnaryFunction0DId___repr__(BPy_UnaryFunction0DId *self)
PyTypeObject UnaryFunction0D_Type
static struct PyModuleDef module