PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 41 lines | 34 code | 7 blank | 0 comment | 0 complexity | cefcf3e5446990acee250e49c0682d07 MD5 | raw file
 1%module namespace_virtual_method
 2
 3%warnfilter(515);
 4
 5
 6%inline %{
 7
 8namespace A {
 9   namespace B {
10       class Foo;
11   }
12   namespace C {
13       class Foo {
14	public:
15           Foo() { };
16           virtual ~Foo() { };
17           virtual int bar(const A::B::Foo &x) = 0;
18       };
19   }
20}
21
22namespace A {
23   namespace C {
24        class Spam : public Foo {
25	public:
26            Spam() { }
27            virtual ~Spam() { }
28            virtual int bar(const B::Foo &x) { return 1; }
29        };
30   }
31}
32
33%}
34
35%{
36namespace A {
37   namespace B {
38         class Foo { };
39   }
40}
41%}