import source from 1.3.40
[external/swig.git] / Examples / test-suite / smart_pointer_rename.i
1 %module smart_pointer_rename
2
3 %rename(ftest1) Foo::test(int);
4 %rename(ftest2) Foo::test(int,int);
5
6 %inline %{
7
8 class Foo {
9 public:
10     int   test(int) { return 1; }
11     int   test(int,int) { return 2; }
12 };
13
14 class Bar {
15     Foo *f;
16 public:
17     Bar(Foo *_f) : f(_f) { }
18     Foo *operator->() { return f; }
19     int  test() { return 3; }
20 };
21
22 %}
23
24         
25