PageRenderTime 33ms CodeModel.GetById 8ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1.3.35/Examples/test-suite/template_ref_type.i

#
Swig | 27 lines | 21 code | 6 blank | 0 comment | 0 complexity | ffa1112f4e452cde63343a19dba30fba MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module template_ref_type
  2. %inline %{
  3. class X {
  4. public:
  5. unsigned _i;
  6. };
  7. template <class T> class Container {
  8. public:
  9. Container () {}
  10. bool reset () { return false ;}
  11. };
  12. typedef Container<X> XC;
  13. %}
  14. %template(XC) Container<X>;
  15. %inline %{
  16. class Y {
  17. public:
  18. Y () {};
  19. bool find (XC &) { return false; }
  20. };
  21. %}