9 #include "../BPy_Convert.h"
10 #include "../Iterator/BPy_Interface0DIterator.h"
56 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DViewShape`\n"
58 "Base class for unary functions (functors) that work on\n"
59 ":class:`Interface0DIterator` and return a :class:`ViewShape` object.\n"
61 ".. method:: __init__()\n"
63 " Default constructor.\n";
69 static const char *kwlist[] = {
nullptr};
71 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
75 self->uf0D_viewshape->py_uf0D = (PyObject *)
self;
81 delete self->uf0D_viewshape;
87 return PyUnicode_FromFormat(
88 "type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_viewshape);
95 static const char *kwlist[] = {
"it",
nullptr};
98 if (!PyArg_ParseTupleAndKeywords(
104 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
108 if (!PyErr_Occurred()) {
109 string class_name(Py_TYPE(
self)->tp_name);
110 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
120 PyVarObject_HEAD_INIT(
nullptr, 0)
"UnaryFunction0DViewShape",
138 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyObject * BPy_ViewShape_from_ViewShape(ViewShape &vs)
PyTypeObject GetOccludeeF0D_Type
PyTypeObject GetShapeF0D_Type
PyTypeObject Interface0DIterator_Type
static int UnaryFunction0DViewShape___init__(BPy_UnaryFunction0DViewShape *self, PyObject *args, PyObject *kwds)
static void UnaryFunction0DViewShape___dealloc__(BPy_UnaryFunction0DViewShape *self)
static PyObject * UnaryFunction0DViewShape___repr__(BPy_UnaryFunction0DViewShape *self)
int UnaryFunction0DViewShape_Init(PyObject *module)
static char UnaryFunction0DViewShape___doc__[]
PyTypeObject UnaryFunction0DViewShape_Type
static PyObject * UnaryFunction0DViewShape___call__(BPy_UnaryFunction0DViewShape *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0D_Type
static struct PyModuleDef module