/usr/include/openturns/swig/EnumerateFunction.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 | // SWIG file EnumerateFunction.i
// Author : $LastChangedBy: schueller $
// Date : $LastChangedDate: 2010-12-15 18:09:41 +0100 (Wed, 15 Dec 2010) $
// Id : $Id: EnumerateFunction.i 1674 2010-12-15 17:09:41Z dutka $
%{
#include "EnumerateFunction.hxx"
%}
%template(EnumerateFunctionImplementationTypedInterfaceObject) OpenTURNS::Base::Common::TypedInterfaceObject<OpenTURNS::Uncertainty::Algorithm::EnumerateFunctionImplementation>;
%typemap(in) const OpenTURNS::Uncertainty::Algorithm::EnumerateFunction & {
if (! SWIG_IsOK((SWIG_ConvertPtr($input, (void **) &$1, $1_descriptor, 0)))) {
const OpenTURNS::Uncertainty::Algorithm::EnumerateFunctionImplementation * temp;
if (! SWIG_IsOK(SWIG_ConvertPtr($input, (void **) &temp, SWIGTYPE_p_OpenTURNS__Uncertainty__Algorithm__EnumerateFunctionImplementation, 0))) {
return NULL;
}
$1 = new OpenTURNS::Uncertainty::Algorithm::EnumerateFunction( *temp );
}
}
%typemap(typecheck,precedence=SWIG_TYPECHECK_POINTER) const OpenTURNS::Uncertainty::Algorithm::EnumerateFunction & {
const OpenTURNS::Uncertainty::Algorithm::EnumerateFunctionImplementation * temp;
$1 = SWIG_IsOK(SWIG_ConvertPtr($input, NULL, $1_descriptor, 0)) || SWIG_IsOK(SWIG_ConvertPtr($input, (void **) &temp, SWIGTYPE_p_OpenTURNS__Uncertainty__Algorithm__EnumerateFunctionImplementation, 0));
}
%include EnumerateFunction.hxx
namespace OpenTURNS { namespace Uncertainty { namespace Algorithm { %extend EnumerateFunction { EnumerateFunction(const EnumerateFunction & other) { return new OpenTURNS::Uncertainty::Algorithm::EnumerateFunction(other); } } }}}
|