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

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

#
Swig | 32 lines | 28 code | 4 blank | 0 comment | 0 complexity | 8504bbb3393e0712d03b48c79ba25d5b MD5 | raw file
 1%module typedef_class
 2
 3%inline %{ 
 4class RealA 
 5{ 
 6 public: 
 7   int a; 
 8}; 
 9 
10class B 
11{ 
12 public: 
13   typedef RealA A2; 
14   int testA (const A2& a) {return a.a;} 
15}; 
16
17namespace Space {
18  typedef class AAA {
19  public:
20    AAA() {}
21  } BBB;
22}
23
24typedef class AA {
25public:
26  AA() {}
27  AA(int x) {}
28  int aa_var;
29  int *aa_method(double d) { return 0; }
30  static int *aa_static_method(bool b) { return 0; }
31} BB;
32%}