Lines Matching refs:vector

2 // std::vector
9 %define %std_vector_methods(vector...)
10 %std_sequence_methods(vector)
17 %define %std_vector_methods_val(vector...)
18 %std_sequence_methods_val(vector)
26 // std::vector
28 // The aim of all that follows would be to integrate std::vector with
34 // -- f(std::vector<T>), f(const std::vector<T>&):
36 // previously wrapped std::vector<T> can be passed.
37 // -- f(std::vector<T>&), f(std::vector<T>*):
38 // the parameter may be modified; therefore, only a wrapped std::vector
40 // -- std::vector<T> f(), const std::vector<T>& f():
41 // the vector is returned by copy; therefore, a sequence of T:s
43 // -- std::vector<T>& f(), std::vector<T>* f():
44 // the vector is returned by reference; therefore, a wrapped std::vector
46 // -- const std::vector<T>* f(), f(const std::vector<T>*):
47 // for consistency, they expect and return a plain vector pointer.
51 #include <vector>
60 class vector {
73 %fragment(SWIG_Traits_frag(std::vector<_Tp, _Alloc >), "header",
77 template <> struct traits<std::vector<_Tp, _Alloc > > {
80 return "std::vector<" #_Tp "," #_Alloc " >";
86 %typemap_traits_ptr(SWIG_TYPECHECK_VECTOR, std::vector<_Tp, _Alloc >);
90 %swig_vector_methods(std::vector<_Tp, _Alloc >);
93 %std_vector_methods(vector);
101 class vector<_Tp*, _Alloc > {
114 %fragment(SWIG_Traits_frag(std::vector<_Tp*, _Alloc >), "header",
118 template <> struct traits<std::vector<_Tp*, _Alloc > > {
121 return "std::vector<" #_Tp " *," #_Alloc " >";
127 %typemap_traits_ptr(SWIG_TYPECHECK_VECTOR, std::vector<_Tp*, _Alloc >);
131 %swig_vector_methods_val(std::vector<_Tp*, _Alloc >);
134 %std_vector_methods_val(vector);
142 class vector<bool,_Alloc > {
155 %fragment(SWIG_Traits_frag(std::vector<bool, _Alloc >), "header",
159 template <> struct traits<std::vector<bool, _Alloc > > {
162 return "std::vector<bool, _Alloc >";
168 %typemap_traits_ptr(SWIG_TYPECHECK_VECTOR, std::vector<bool, _Alloc >);
173 %swig_vector_methods_val(std::vector<bool, _Alloc >);
176 %std_vector_methods_val(vector);