PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 25 lines | 21 code | 4 blank | 0 comment | 0 complexity | 710f202b55dab80dd15ee1c433bac438 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module using_private
  2. %inline %{
  3. class Foo {
  4. public:
  5. virtual ~Foo() { }
  6. int x;
  7. int blah(int xx) { return xx; }
  8. int defaulted(int i = -1) { return i; }
  9. virtual void virtualmethod() {}
  10. virtual void anothervirtual() {}
  11. };
  12. class FooBar : private Foo {
  13. public:
  14. using Foo::blah;
  15. using Foo::x;
  16. using Foo::defaulted;
  17. using Foo::virtualmethod;
  18. virtual void anothervirtual() {}
  19. virtual ~FooBar() {}
  20. };
  21. %}