PageRenderTime 30ms CodeModel.GetById 21ms app.highlight 7ms 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
 3%inline %{
 4class Foo {
 5public:
 6     virtual ~Foo() { }
 7     int x;
 8     int blah(int xx) { return xx; }
 9     int defaulted(int i = -1) { return i; }
10     virtual void virtualmethod() {}
11     virtual void anothervirtual() {}
12};
13
14class FooBar : private Foo {
15public:
16     using Foo::blah;
17     using Foo::x;
18     using Foo::defaulted;
19     using Foo::virtualmethod;
20     virtual void anothervirtual() {}
21     virtual ~FooBar() {}
22};
23
24%}
25