1 // SWIG file MultiFORMResult.i
2 
3 %{
4 #include "openturns/MultiFORMResult.hxx"
5 
6 namespace OT {
7   template <>
8   struct traitsPythonType<OT::FORMResult>
9   {
10     typedef _PyObject_ Type;
11   };
12 
13   template <>
14   inline
15   OT::FORMResult
16   convert< _PyObject_, OT::FORMResult >(PyObject * pyObj)
17   {
18     void * ptr = 0;
19     if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIG_TypeQuery("OT::FORMResult *"), SWIG_POINTER_NO_NULL))) {
20       OT::FORMResult * p_it = reinterpret_cast< OT::FORMResult * >(ptr);
21       return *p_it;
22     }
23     else {
24       throw OT::InvalidArgumentException(HERE) << "Object passed as argument is not convertible to a FORMResult";
25     }
26     return OT::FORMResult();
27   }
28 }
29 %}
30 
31 %include MultiFORMResult_doc.i
32 
33 %template(FORMResultCollection) OT::Collection<OT::FORMResult>;
34 
35 %include openturns/MultiFORMResult.hxx
36 
37 namespace OT { %extend MultiFORMResult { MultiFORMResult(const MultiFORMResult & other) { return new OT::MultiFORMResult(other); } } }
38