1 // SWIG file WhittleFactory.i
2 
3 // do not pass argument by reference, return it as tuple item
4 %typemap(in, numinputs=0) OT::Point & informationCriteriaOut ($*ltype temp) %{ temp = OT::Point(); $1 = &temp; %}
5 %typemap(argout) OT::Point & informationCriteriaOut %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(new OT::Point(*$1), SWIGTYPE_p_OT__Point, SWIG_POINTER_OWN |  0 )); %}
6 
7 %{
8 #include "openturns/WhittleFactory.hxx"
9 %}
10 
11 %template(WhittleFactoryStateCollection)           OT::Collection<OT::WhittleFactoryState>;
12 %template(WhittleFactoryStatePersistentCollection) OT::PersistentCollection<OT::WhittleFactoryState>;
13 
14 %include WhittleFactory_doc.i
15 
16 %include openturns/WhittleFactory.hxx
WhittleFactory(const WhittleFactory & other)17 namespace OT { %extend WhittleFactory { WhittleFactory(const WhittleFactory & other) { return new OT::WhittleFactory(other); } } }
18