32 PyModule_AddObjectRef(
47 UnaryFunction1DEdgeNature___doc__,
48 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DEdgeNature`\n"
50 "Base class for unary functions (functors) that work on\n"
51 ":class:`Interface1D` and return a :class:`Nature` object.\n"
53 ".. method:: __init__()\n"
54 " __init__(integration_type)\n"
56 " Builds a unary 1D function using the default constructor\n"
57 " or the integration method given as an argument.\n"
59 " :arg integration_type: An integration method.\n"
60 " :type integration_type: :class:`IntegrationType`\n");
66 static const char *kwlist[] = {
"integration",
nullptr};
67 PyObject *obj =
nullptr;
69 if (!PyArg_ParseTupleAndKeywords(
83 self->uf1D_edgenature->py_uf1D = (PyObject *)
self;
90 delete self->uf1D_edgenature;
96 return PyUnicode_FromFormat(
97 "type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf1D_edgenature);
104 static const char *kwlist[] = {
"inter",
nullptr};
105 PyObject *obj =
nullptr;
107 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
Interface1D_Type, &obj)) {
112 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
116 if (!PyErr_Occurred()) {
117 string class_name(Py_TYPE(
self)->tp_name);
118 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
129 integration_type_doc,
130 "The integration method.\n"
132 ":type: :class:`IntegrationType`");
144 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
155 integration_type_doc,
157 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
163 PyVarObject_HEAD_INIT(
nullptr, 0)
164 "UnaryFunction1DEdgeNature",
182 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
183 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
static PyObject * integration_type_get(BPy_UnaryFunction1DDouble *self, void *)
static int integration_type_set(BPy_UnaryFunction1DDouble *self, PyObject *value, void *)
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