PageRenderTime 38ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Swig | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | 3a3c055006c56e1f3f43507430eca469 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module using_protected
  2. %inline %{
  3. class Foo {
  4. protected:
  5. int x;
  6. int blah(int xx) { return xx; }
  7. };
  8. class FooBar : public Foo {
  9. public:
  10. using Foo::blah;
  11. using Foo::x;
  12. };
  13. %}