23 #include "../BPy_Convert.h"
24 #include "../Iterator/BPy_Interface0DIterator.h"
62 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DId`\n"
64 "Base class for unary functions (functors) that work on\n"
65 ":class:`Interface0DIterator` and return an :class:`Id` object.\n"
67 ".. method:: __init__()\n"
69 " Default constructor.\n";
73 static const char *kwlist[] = {
nullptr};
75 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
79 self->uf0D_id->py_uf0D = (PyObject *)
self;
91 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_id);
98 static const char *kwlist[] = {
"it",
nullptr};
101 if (!PyArg_ParseTupleAndKeywords(
107 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
111 if (!PyErr_Occurred()) {
112 string class_name(Py_TYPE(
self)->tp_name);
113 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
123 PyVarObject_HEAD_INIT(
nullptr, 0)
"UnaryFunction0DId",
141 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