Debian Codegraph @

examples/specific/functionOverload.h

raw symbols SCIP
1 #include <string>
2
3 //! Non overloaded function
4 void simplefunc();
5
6 //! Function which takes two int arguments
7 void f(int, int);
8
9 //! Function which takes two double arguments
10 void f(double, double);
11
12 namespace test {
13
14 //! Another function which takes two int arguments
15 void g(int, int);
16
17 //! Another function which takes two double arguments
18 void g(double, double);
19
20 }
21
22 /*! needed for references in global function parameters */
23 class MyType {};
24
25 /*! needed for references in global function parameters */
26 class MyOtherType {};
27
28 //! Another function which takes a custom type
29 void h(std::string, MyType);
30
31 //! Another function which takes another custom type
32 void h(std::string, MyOtherType o);
33
34 //! Another function which takes a basic type
35 void h(std::string, float myfloat);
36
37 //! Another function which takes a const custom type
38 void h(std::string, const MyType& mytype);
39
40 //! Another function which takes a const basic type
41 void h(std::string, const int myint);
42
43 //! Another function which takes a const basic type
44 template <typename T>
45 void h(std::string, const T myType);
46
47 //! Another function which takes a const basic type
48 template <typename T, typename U>
49 void h(std::string, const T m, const U n);
50
51
52 /**
53 * Test function 1.
54 */
55 void j(int);
56
57 /**
58 * Test function 2.
59 */
60 void j(char);