Home | History | Annotate | Download | only in octave
      1 // Deques
      2 
      3 %fragment("StdDequeTraits","header",fragment="StdSequenceTraits")
      4 %{
      5   namespace swig {
      6     template <class T>
      7     struct traits_asptr<std::deque<T> >  {
      8       static int asptr(octave_value obj, std::deque<T>  **vec) {
      9 	return traits_asptr_stdseq<std::deque<T> >::asptr(obj, vec);
     10       }
     11     };
     12 
     13     template <class T>
     14     struct traits_from<std::deque<T> > {
     15       static octave_value from(const std::deque<T> & vec) {
     16 	return traits_from_stdseq<std::deque<T> >::from(vec);
     17       }
     18     };
     19   }
     20 %}
     21 
     22 #define %swig_deque_methods(Type...) %swig_sequence_methods(Type)
     23 #define %swig_deque_methods_val(Type...) %swig_sequence_methods_val(Type);
     24 
     25 %include <std/std_deque.i>
     26