1 /* 2 * 3 * C++ type : STL multiset 4 * Scilab type : matrix (for primitive types) or list (for pointer types) 5 * 6 */ 7 8 %fragment("StdMultisetTraits", "header", fragment="StdSequenceTraits") 9 %{ 10 namespace swig { 11 template <class T> 12 struct traits_asptr<std::multiset<T> > { 13 static int asptr(const SwigSciObject &obj, std::multiset<T> **multiset) { 14 return traits_asptr_stdseq<std::multiset<T> >::asptr(obj, multiset); 15 } 16 }; 17 18 template <class T> 19 struct traits_from<std::multiset<T> > { 20 static SwigSciObject from(const std::multiset<T>& multiset) { 21 return traits_from_stdseq<std::multiset<T> >::from(multiset); 22 } 23 }; 24 } 25 %} 26 27 #define %swig_multiset_methods(Set...) %swig_sequence_methods(Type) 28 #define %swig_multiset_methods_val(Type...) %swig_sequence_methods_val(Type); 29 30 %include <std/std_multiset.i> 31