/trunk/Examples/python/template/example.i

# · Swig · 17 lines · 9 code · 5 blank · 3 comment · 0 complexity · 6f3b6f9c159a080b8587b04600e147ff MD5 · raw file

  1. /* File : example.i */
  2. %module example
  3. %{
  4. #include "example.h"
  5. %}
  6. /* Let's just grab the original header file here */
  7. %include "example.h"
  8. /* Now instantiate some specific template declarations */
  9. %template(maxint) max<int>;
  10. %template(maxdouble) max<double>;
  11. %template(vecint) vector<int>;
  12. %template(vecdouble) vector<double>;