/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. %inline %{
  3. class RealA
  4. {
  5. public:
  6. int a;
  7. };
  8. class B
  9. {
  10. public:
  11. typedef RealA A2;
  12. int testA (const A2& a) {return a.a;}
  13. };
  14. namespace Space {
  15. typedef class AAA {
  16. public:
  17. AAA() {}
  18. } BBB;
  19. }
  20. typedef class AA {
  21. public:
  22. AA() {}
  23. AA(int x) {}
  24. int aa_var;
  25. int *aa_method(double d) { return 0; }
  26. static int *aa_static_method(bool b) { return 0; }
  27. } BB;
  28. %}