PageRenderTime 40ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/template_whitespace.i

#
Swig | 22 lines | 15 code | 4 blank | 3 comment | 0 complexity | b3d6fabc95e505c6bf612003ef9b3968 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /* This interface file tests whether whitespace in angle brackets
  2. effects the SWIG types. SF Bug #221917, reported by
  3. burchanb@cs.tamu.edu. */
  4. %module template_whitespace
  5. %{
  6. template<class T> class vector {
  7. };
  8. template<class T, class U> class map {
  9. };
  10. %}
  11. //%typemap(in) vector<int> "$target = new vector<int>();";
  12. //%typemap(in) vector<unsigned int> "$target = new vector<unsigned int>();";
  13. //%typemap(in) map<int,int> "$target = new map<int, int>();";
  14. %inline %{
  15. void foo(vector<int > v) {}
  16. void var(vector<unsigned int> v) {}
  17. void baz(map < int , int > p) {}
  18. %}