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

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

#
Swig | 25 lines | 17 code | 8 blank | 0 comment | 0 complexity | 8548e4358fe70a35382b9af4dfb974d2 MD5 | raw file
 1%module smart_pointer_rename
 2
 3%rename(ftest1) Foo::test(int);
 4%rename(ftest2) Foo::test(int,int);
 5
 6%inline %{
 7
 8class Foo {
 9public:
10    int   test(int) { return 1; }
11    int   test(int,int) { return 2; }
12};
13
14class Bar {
15    Foo *f;
16public:
17    Bar(Foo *_f) : f(_f) { }
18    Foo *operator->() { return f; }
19    int  test() { return 3; }
20};
21
22%}
23
24	
25