This file is indexed.

/usr/include/openturns/swig/UserDefined.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
30
31
32
33
34
35
36
37
// SWIG file UserDefined.i
// Author : $LastChangedBy: souchaud $
// Date : $LastChangedDate: 2011-04-05 17:50:07 +0200 (Tue, 05 Apr 2011) $
// Id : $Id: UserDefined.i 1855 2011-04-05 15:50:07Z souchaud $

%{
#include "UserDefined.hxx"
%}

%include UserDefined.hxx

%template(UserDefinedPairCollection_) OpenTURNS::Base::Type::Collection<OpenTURNS::Uncertainty::Distribution::UserDefinedPair>;
%template(UserDefinedPairCollection) OpenTURNS::Base::Type::PersistentCollection<OpenTURNS::Uncertainty::Distribution::UserDefinedPair>;

%extend OpenTURNS::Base::Type::PersistentCollection<OpenTURNS::Uncertainty::Distribution::UserDefinedPair>
{

OpenTURNS::Base::Type::PersistentCollection<OpenTURNS::Uncertainty::Distribution::UserDefinedPair> (PyObject * pyObj)
{
  OpenTURNS::Pointer<OpenTURNS::Base::Type::Collection<OpenTURNS::Uncertainty::Distribution::UserDefinedPair> > ptr = OpenTURNS::buildCollectionFromPySequence<OT::Uncertainty::Distribution::UserDefinedPair>( pyObj );
  return new OpenTURNS::Base::Type::PersistentCollection<OpenTURNS::Uncertainty::Distribution::UserDefinedPair>(ptr->begin(), ptr->end());
}

}

namespace OpenTURNS { namespace Uncertainty { namespace Distribution {

%extend UserDefined {
  UserDefined(const OpenTURNS::Base::Type::Collection<OpenTURNS::Uncertainty::Distribution::UserDefinedPair> & collection)
  {
    return new OpenTURNS::Uncertainty::Distribution::UserDefined(collection);
  }
}

}}}

namespace OpenTURNS { namespace Uncertainty { namespace Distribution { %extend UserDefined { UserDefined(const UserDefined & other) { return new OpenTURNS::Uncertainty::Distribution::UserDefined(other); } } }}}