/usr/include/openturns/swig/Collection.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 | // SWIG file Collection.i
// Author : $LastChangedBy: dutka $
// Date : $LastChangedDate: 2010-09-14 16:35:33 +0200 (Tue, 14 Sep 2010) $
// Id : $Id: Collection.i 1617 2010-09-14 14:35:33Z dutka $
%{
#include "Collection.hxx"
%}
%include Collection.hxx
%copyctor Collection;
namespace OpenTURNS { namespace Base { namespace Type {
%extend Collection {
Collection(PyObject * pyObj)
{
return OpenTURNS::buildCollectionFromPySequence< T >( pyObj );
}
template <class T> Collection(const Collection<T> & other)
{
return new OpenTURNS::Base::Type::Collection<T>(other);
}
} // %extend
}}}
|