1 #include "BPy_LocalAverageDepthF0D.h"
3 #include "../../../stroke/AdvancedFunctions0D.h"
9 ///////////////////////////////////////////////////////////////////////////////////////////
11 /*--------------- Python API function prototypes for LocalAverageDepthF0D instance -----------*/
12 static int LocalAverageDepthF0D___init__(BPy_LocalAverageDepthF0D* self, PyObject *args);
14 /*-----------------------BPy_LocalAverageDepthF0D type definition ------------------------------*/
16 PyTypeObject LocalAverageDepthF0D_Type = {
17 PyObject_HEAD_INIT(NULL)
18 "LocalAverageDepthF0D", /* tp_name */
19 sizeof(BPy_LocalAverageDepthF0D), /* tp_basicsize */
28 0, /* tp_as_sequence */
29 0, /* tp_as_mapping */
36 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
37 "LocalAverageDepthF0D objects", /* tp_doc */
40 0, /* tp_richcompare */
41 0, /* tp_weaklistoffset */
47 &UnaryFunction0DDouble_Type, /* tp_base */
51 0, /* tp_dictoffset */
52 (initproc)LocalAverageDepthF0D___init__, /* tp_init */
57 //------------------------INSTANCE METHODS ----------------------------------
59 int LocalAverageDepthF0D___init__( BPy_LocalAverageDepthF0D* self, PyObject *args)
63 if( !PyArg_ParseTuple(args, "|d", &d) )
65 self->py_uf0D_double.uf0D_double = new Functions0D::LocalAverageDepthF0D(d);
66 self->py_uf0D_double.uf0D_double->py_uf0D = (PyObject *)self;
70 ///////////////////////////////////////////////////////////////////////////////////////////