PageRenderTime 35ms CodeModel.GetById 33ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 24 lines | 20 code | 4 blank | 0 comment | 0 complexity | 5040c86db8b6bc679a1cc056094469d3 MD5 | raw file
 1%module smart_pointer_static
 2%inline %{
 3class Foo2;
 4
 5class  MyHandle_Foo2 { 
 6 public: 
 7  Foo2 * operator -> (); 
 8}; 
 9
10class Foo2 { 
11 public: 
12  virtual ~Foo2() {}
13  virtual int sum(int i, int j) { return i+j; }
14  static int sum(int i, int j, int k); 
15}; 
16
17%}
18
19%{
20int Foo2::sum(int i, int j, int k) {
21  return i+j+k;
22}
23Foo2 * MyHandle_Foo2::operator -> () { return new Foo2(); }
24%}