36 PyModule_AddObjectRef(
51 UnaryFunction1DEdgeNature___doc__,
52 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DEdgeNature`\n"
54 "Base class for unary functions (functors) that work on\n"
55 ":class:`Interface1D` and return a :class:`Nature` object.\n"
57 ".. method:: __init__()\n"
58 " __init__(integration_type)\n"
60 " Builds a unary 1D function using the default constructor\n"
61 " or the integration method given as an argument.\n"
63 " :arg integration_type: An integration method.\n"
64 " :type integration_type: :class:`IntegrationType`\n");
70 static const char *kwlist[] = {
"integration",
nullptr};
71 PyObject *obj =
nullptr;
73 if (!PyArg_ParseTupleAndKeywords(
87 self->uf1D_edgenature->py_uf1D = (PyObject *)
self;
94 delete self->uf1D_edgenature;
100 return PyUnicode_FromFormat(
101 "type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf1D_edgenature);
108 static const char *kwlist[] = {
"inter",
nullptr};
109 PyObject *obj =
nullptr;
111 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
Interface1D_Type, &obj)) {
116 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
120 if (!PyErr_Occurred()) {
121 string class_name(Py_TYPE(
self)->tp_name);
122 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
133 integration_type_doc,
134 "The integration method.\n"
136 ":type: :class:`IntegrationType`");
148 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
159 integration_type_doc,
161 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
167 PyVarObject_HEAD_INIT(
nullptr, 0)
168 "UnaryFunction1DEdgeNature",
186 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
187 UnaryFunction1DEdgeNature___doc__,
PyObject * BPy_Nature_from_Nature(ushort n)
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyObject * BPy_IntegrationType_from_IntegrationType(IntegrationType i)
PyTypeObject CurveNatureF1D_Type
PyTypeObject IntegrationType_Type
#define BPy_IntegrationType_Check(v)
PyTypeObject Interface1D_Type
PyTypeObject UnaryFunction1DEdgeNature_Type
static void UnaryFunction1DEdgeNature___dealloc__(BPy_UnaryFunction1DEdgeNature *self)
static PyObject * integration_type_get(BPy_UnaryFunction1DEdgeNature *self, void *)
static PyGetSetDef BPy_UnaryFunction1DEdgeNature_getseters[]
int UnaryFunction1DEdgeNature_Init(PyObject *module)
static PyObject * UnaryFunction1DEdgeNature___repr__(BPy_UnaryFunction1DEdgeNature *self)
static int integration_type_set(BPy_UnaryFunction1DEdgeNature *self, PyObject *value, void *)
static PyObject * UnaryFunction1DEdgeNature___call__(BPy_UnaryFunction1DEdgeNature *self, PyObject *args, PyObject *kwds)
static int UnaryFunction1DEdgeNature___init__(BPy_UnaryFunction1DEdgeNature *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(UnaryFunction1DEdgeNature___doc__, "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DEdgeNature`\n" "\n" "Base class for unary functions (functors) that work on\n" ":class:`Interface1D` and return a :class:`Nature` object.\n" "\n" ".. method:: __init__()\n" " __init__(integration_type)\n" "\n" " Builds a unary 1D function using the default constructor\n" " or the integration method given as an argument.\n" "\n" " :arg integration_type: An integration method.\n" " :type integration_type: :class:`IntegrationType`\n")
PyTypeObject UnaryFunction1D_Type
static struct PyModuleDef module