diff options
author | Xavier Delacour <xavier.delacour@gmail.com> | 2012-02-27 18:29:50 +0000 |
---|---|---|
committer | Xavier Delacour <xavier.delacour@gmail.com> | 2012-02-27 18:29:50 +0000 |
commit | 65942bd224c3e5dbe2d2d03400489c5a9437fde2 (patch) | |
tree | c3c5b85f00896ce7ec616391821e016c2cea4182 /Lib/octave | |
parent | b8304b6f42aa458fc6cb9e39665ffb982b477942 (diff) | |
download | swig-65942bd224c3e5dbe2d2d03400489c5a9437fde2.tar.gz |
add missing file Lib/octave/std_list.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12914 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/octave')
-rw-r--r-- | Lib/octave/std_list.i | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Lib/octave/std_list.i b/Lib/octave/std_list.i new file mode 100644 index 000000000..1421efaee --- /dev/null +++ b/Lib/octave/std_list.i @@ -0,0 +1,26 @@ +// Lists + +%fragment("StdListTraits","header",fragment="StdSequenceTraits") +%{ + namespace swig { + template <class T > + struct traits_asptr<std::list<T> > { + static int asptr(const octave_value& 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 octave_value *from(const std::list<T> & vec) { + return traits_from_stdseq<std::list<T> >::from(vec); + } + }; + } +%} + +#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> + |