PageRenderTime 63ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/ruby/overloading/example.h

#
C++ Header | 41 lines | 35 code | 6 blank | 0 comment | 0 complexity | 0663f3d7aceb1823ad9e06fde45ee829 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #ifndef EXAMPLE_H
  2. #define EXAMPLE_H
  3. class Bar {
  4. public:
  5. Bar();
  6. Bar(const Bar&);
  7. Bar(double);
  8. Bar(double, char *);
  9. Bar(int, int);
  10. Bar(char *);
  11. Bar(long);
  12. Bar(int);
  13. Bar(Bar *);
  14. void foo(const Bar&);
  15. void foo(double);
  16. void foo(double, char *);
  17. void foo(int, int);
  18. void foo(char *);
  19. void foo(long);
  20. void foo(int);
  21. void foo(Bar *);
  22. void spam(int x, int y=2, int z=3);
  23. void spam(double x, int y=2, int z=3);
  24. };
  25. void foo(const Bar&);
  26. void foo(double);
  27. void foo(double, char *);
  28. void foo(int, int);
  29. void foo(char *);
  30. void foo(int);
  31. void foo(long);
  32. void foo(Bar *);
  33. void spam(int x, int y=2, int z=3);
  34. void spam(double x, int y=2, int z=3);
  35. #endif