Skip to content
Snippets Groups Projects
Commit 4645b03a authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Fixed transfer of ownership to python in FitSuite

parent 18e2fd50
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,11 @@ import_array();
%import(module="libBornAgainCore") "IParameterized.h"
%import(module="libBornAgainCore") "IObserver.h"
// ownership
%newobject FitSuite::getRealData(size_t i_item = 0) const;
%newobject FitSuite::getSimulationData(size_t i_item = 0) const;
%newobject FitSuite::getChiSquaredMap(size_t i_item = 0) const;
// The following goes verbatim from libBornAgainFit.i to libBornAgainFit_wrap.cxx.
// Note that the order matters, as base classes must be included before derived classes.
......
......@@ -24585,7 +24585,7 @@ SWIGINTERN PyObject *_wrap_FitSuite_getRealData__SWIG_0(PyObject *SWIGUNUSEDPARM
}
arg2 = static_cast< size_t >(val2);
result = (IHistogram *)((FitSuite const *)arg1)->getRealData(arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, 0 | 0 );
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
......@@ -24607,7 +24607,7 @@ SWIGINTERN PyObject *_wrap_FitSuite_getRealData__SWIG_1(PyObject *SWIGUNUSEDPARM
}
arg1 = reinterpret_cast< FitSuite * >(argp1);
result = (IHistogram *)((FitSuite const *)arg1)->getRealData();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, 0 | 0 );
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
......@@ -24684,7 +24684,7 @@ SWIGINTERN PyObject *_wrap_FitSuite_getSimulationData__SWIG_0(PyObject *SWIGUNUS
}
arg2 = static_cast< size_t >(val2);
result = (IHistogram *)((FitSuite const *)arg1)->getSimulationData(arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, 0 | 0 );
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
......@@ -24706,7 +24706,7 @@ SWIGINTERN PyObject *_wrap_FitSuite_getSimulationData__SWIG_1(PyObject *SWIGUNUS
}
arg1 = reinterpret_cast< FitSuite * >(argp1);
result = (IHistogram *)((FitSuite const *)arg1)->getSimulationData();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, 0 | 0 );
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
......@@ -24783,7 +24783,7 @@ SWIGINTERN PyObject *_wrap_FitSuite_getChiSquaredMap__SWIG_0(PyObject *SWIGUNUSE
}
arg2 = static_cast< size_t >(val2);
result = (IHistogram *)((FitSuite const *)arg1)->getChiSquaredMap(arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, 0 | 0 );
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
......@@ -24805,7 +24805,7 @@ SWIGINTERN PyObject *_wrap_FitSuite_getChiSquaredMap__SWIG_1(PyObject *SWIGUNUSE
}
arg1 = reinterpret_cast< FitSuite * >(argp1);
result = (IHistogram *)((FitSuite const *)arg1)->getChiSquaredMap();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, 0 | 0 );
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IHistogram, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment