PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 21 lines | 16 code | 5 blank | 0 comment | 0 complexity | 774d10c28cf4d6ec50c67152db9aab49 MD5 | raw file
 1%module smart_pointer_typedef
 2
 3%inline %{
 4struct Foo {
 5   int x;
 6   int getx() { return x; }
 7};
 8
 9typedef Foo *FooPtr;
10
11class Bar {
12   Foo *f;
13public:
14   Bar(Foo *f) : f(f) { }
15   FooPtr operator->() {
16      return f;
17   }
18};
19%}
20
21