30 lines
783 B
OpenEdge ABL
30 lines
783 B
OpenEdge ABL
/*
|
|
*
|
|
* C++ type : STL list
|
|
* Scilab type : matrix (for primitive types) or list (for pointer types)
|
|
*
|
|
*/
|
|
|
|
%fragment("StdListTraits", "header", fragment="StdSequenceTraits")
|
|
%{
|
|
namespace swig {
|
|
template <class T >
|
|
struct traits_asptr<std::list<T> > {
|
|
static int asptr(SwigSciObject obj, std::list<T> **lis) {
|
|
return traits_asptr_stdseq<std::list<T> >::asptr(obj, lis);
|
|
}
|
|
};
|
|
|
|
template <class T>
|
|
struct traits_from<std::list<T> > {
|
|
static SwigSciObject from(const std::list<T> &lis) {
|
|
return traits_from_stdseq<std::list<T> >::from(lis);
|
|
}
|
|
};
|
|
}
|
|
%}
|
|
|
|
#define %swig_list_methods(Type...) %swig_sequence_methods(Type)
|
|
#define %swig_list_methods_val(Type...) %swig_sequence_methods_val(Type);
|
|
|
|
%include <std/std_list.i>
|