siplasplas
invoke.hpp
1 #ifndef SIPLASPLAS_TEST_TYPEERASURE_MOCKS_INVOKE_HPP
2 #define SIPLASPLAS_TEST_TYPEERASURE_MOCKS_INVOKE_HPP
3 
4 #include <string>
5 
6 inline int addIntsByValue(int a, int b)
7 {
8  return a + b;
9 }
10 
11 inline std::string addStringsByConstReference(const std::string& a, const std::string& b)
12 {
13  return a + b;
14 }
15 
16 class Class
17 {
18 public:
19  int addIntsByValue(int a, int b)
20  {
21  return a + b;
22  }
23 
24  int addIntsByValueConst(int a, int b) const
25  {
26  return a + b;
27  }
28 
29  std::string addStringsByConstReference(const std::string& a, const std::string& b)
30  {
31  return a + b;
32  }
33 
34  std::string addStringsByConstReferenceConst(const std::string& a, const std::string& b) const
35  {
36  return a + b;
37  }
38 
39  int i = 42;
40  std::string str = "hello";
41 };
42 
43 #endif // SIPLASPLAS_TEST_TYPEERASURE_MOCKS_INVOKE_HPP
Definition: astexamples.hpp:2