PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms 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
 1#ifndef EXAMPLE_H
 2#define EXAMPLE_H
 3
 4class Bar {
 5public:
 6    Bar();
 7    Bar(const Bar&);
 8    Bar(double);
 9    Bar(double, char *);
10    Bar(int, int);
11    Bar(char *);
12    Bar(long);
13    Bar(int);
14    Bar(Bar *);
15
16    void foo(const Bar&);
17    void foo(double);
18    void foo(double, char *);
19    void foo(int, int);
20    void foo(char *);
21    void foo(long);
22    void foo(int);
23    void foo(Bar *);
24    
25    void spam(int x, int y=2, int z=3);
26    void spam(double x, int y=2, int z=3);
27};
28
29void foo(const Bar&);
30void foo(double);
31void foo(double, char *);
32void foo(int, int);
33void foo(char *);
34void foo(int);
35void foo(long);
36void foo(Bar *);
37
38void spam(int x, int y=2, int z=3);
39void spam(double x, int y=2, int z=3);
40
41#endif