PageRenderTime 27ms CodeModel.GetById 25ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Examples/test-suite/imports_b.h

#
C++ Header | 31 lines | 22 code | 9 blank | 0 comment | 0 complexity | 9181a68a48042601c4476fe41c80ad77 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1#include "imports_a.h"
 2
 3class B : public A 
 4{ 
 5 public: 
 6  B() {};
 7  
 8  void bye() {} ;
 9
10  virtual MemberEnum member_virtual_test(MemberEnum e) { return memberenum2; }
11  virtual GlobalEnum global_virtual_test(GlobalEnum e) { return globalenum2; }
12};
13
14A::MemberEnum global_test(A::MemberEnum e) { return e; }
15
16struct C : A
17{
18  typedef A a_type;
19
20  A* get_a(A* a)
21  {
22    return a;
23  }
24  
25  a_type* get_a_type(a_type* a)
26  {
27    return a;
28  }
29  
30};
31