/usr/include/openturns/swig/FittingAlgorithm.i is in libopenturns-dev 0.15-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | // SWIG file FittingAlgorithm.i
// Author : $LastChangedBy: dutka $
// Date : $LastChangedDate: 2009-11-09 17:38:15 +0100 (Mon, 09 Nov 2009) $
// Id : $Id: FittingAlgorithm.i 1403 2009-11-09 16:38:15Z dutka $
%{
#include "FittingAlgorithm.hxx"
%}
%template(FittingAlgorithmImplementationTypedInterfaceObject) OpenTURNS::Base::Common::TypedInterfaceObject<OpenTURNS::Base::Algo::FittingAlgorithmImplementation>;
%typemap(in) const OpenTURNS::Base::Algo::FittingAlgorithm & {
if (! SWIG_IsOK((SWIG_ConvertPtr($input, (void **) &$1, $1_descriptor, 0)))) {
const OpenTURNS::Base::Algo::FittingAlgorithmImplementation * temp;
if (! SWIG_IsOK(SWIG_ConvertPtr($input, (void **) &temp, SWIGTYPE_p_OpenTURNS__Base__Algo__FittingAlgorithmImplementation, 0))) {
return NULL;
}
$1 = new OpenTURNS::Base::Algo::FittingAlgorithm( *temp );
}
}
%typemap(typecheck,precedence=SWIG_TYPECHECK_POINTER) const OpenTURNS::Base::Algo::FittingAlgorithm & {
const OpenTURNS::Base::Algo::FittingAlgorithmImplementation * temp;
$1 = SWIG_IsOK(SWIG_ConvertPtr($input, NULL, $1_descriptor, 0)) || SWIG_IsOK(SWIG_ConvertPtr($input, (void **) &temp, SWIGTYPE_p_OpenTURNS__Base__Algo__FittingAlgorithmImplementation, 0));
}
%include FittingAlgorithm.hxx
namespace OpenTURNS { namespace Base { namespace Algo { %extend FittingAlgorithm { FittingAlgorithm(const FittingAlgorithm & other) { return new OpenTURNS::Base::Algo::FittingAlgorithm(other); } } }}}
|