PageRenderTime 37ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/python/std_vector/example.i

#
Swig | 17 lines | 10 code | 4 blank | 3 comment | 0 complexity | ebab88acd8bca6d9f05062bdd7465bd0 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /* File : example.i */
  2. %module example
  3. %{
  4. #include "example.h"
  5. %}
  6. %include stl.i
  7. /* instantiate the required template specializations */
  8. namespace std {
  9. %template(IntVector) vector<int>;
  10. %template(DoubleVector) vector<double>;
  11. }
  12. /* Let's just grab the original header file here */
  13. %include "example.h"