~ubuntu-branches/ubuntu/hardy/swig1.3/hardy

« back to all changes in this revision

Viewing changes to Examples/test-suite/python/li_std_vector.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%module li_std_vector
2
2
 
 
3
%include "std_string.i"
3
4
%include "std_vector.i"
4
5
%include "cpointer.i"
5
6
%include "carrays.i"
14
15
    %template() vector<short>;
15
16
    %template(IntVector) vector<int>;
16
17
    %template(BoolVector) vector<bool>;
 
18
    %template() vector<string>;
17
19
}
18
20
 
19
21
%template(DoubleVector) std::vector<double>;
107
109
    return w;
108
110
}
109
111
 
 
112
 
 
113
std::vector<std::string>  vecStr(std::vector<std::string> v) {
 
114
  v[0] += v[1];
 
115
  return v;
 
116
}
 
117
 
110
118
%}
111
119
%template(VecB) std::vector<Test::B>; 
112
120
%template(VecA) std::vector<Test::A*>;