PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/template_arg_replace.i

#
Swig | 14 lines | 9 code | 5 blank | 0 comment | 0 complexity | 06d4ec569922438a0eb24f641ec2a145 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module template_arg_replace
  2. %warnfilter(SWIGWARN_RUBY_WRONG_NAME) test_Matrix<float, 3, 3>; /* Ruby, wrong class name */
  3. %inline %{
  4. template <typename T, int r, int c> class test_Matrix {
  5. public:
  6. void Func(const test_Matrix<T,r,c> &m) { };
  7. };
  8. %}
  9. %template (matrix33f) test_Matrix<float,3, 3>;