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");
65 static const char *kwlist[] = {
"integration",
nullptr};
66 PyObject *obj =
nullptr;
68 if (!PyArg_ParseTupleAndKeywords(
82 self->uf1D_edgenature->py_uf1D = (PyObject *)
self;
89 delete self->uf1D_edgenature;
95 return PyUnicode_FromFormat(
96 "type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf1D_edgenature);
103 static const char *kwlist[] = {
"inter",
nullptr};
104 PyObject *obj =
nullptr;
106 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
Interface1D_Type, &obj)) {
111 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
115 if (!PyErr_Occurred()) {
116 string class_name(Py_TYPE(
self)->tp_name);
117 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
128 integration_type_doc,
129 "The integration method.\n"
131 ":type: :class:`IntegrationType`\n");
142 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
153 integration_type_doc,
155 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
161 PyVarObject_HEAD_INIT(
nullptr, 0)
162 "UnaryFunction1DEdgeNature",
180 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
181 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