This source file includes following definitions.
- getVal
- setVal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 namespace moose {
23
24 class Point;
25
26 class MyClass;
27
28 }
29
30
31 namespace moose {
32
33 class Point;
34
35 class MyClass {
36 public:
37 MyClass() : fVal(0) {
38 }
39
40 ~MyClass() {};
41
42
43
44
45
46 int getVal() const {
47 return fVal;
48 }
49 void setVal(int Val) const {
50 fVal = Val;
51 }
52
53
54
55
56 private:
57 int fVal;
58 };
59
60 }
61
62 namespace togglemoose {
63
64 class MyOtherClass {
65 public:
66 int testToggle1();
67 int testToggle2();
68 int testToggle3();
69 };
70 }
71
72 namespace deer {
73
74 class Pickle;
75
76 };
77
78
79
80 #ifndef BREAD_H
81 #define BREAD_H
82
83 namespace bread_name {
84 class bread
85 {
86 public:
87 void geta();
88 private:
89 int m_a;
90 int m_b;
91 };
92 }
93
94 #endif
95
96
97
98
99 namespace somestuff {
100 class OneClass {
101 public:
102 void aFunc();
103 int anInt;
104 };
105 struct aStruct {
106 int foo;
107 int bar;
108 };
109 }
110
111 namespace otherstuff {
112
113 using somestuff::OneClass;
114 }
115
116 namespace morestuff {
117
118 using namespace somestuff;
119
120 struct aStruct {
121 int anotherFoo;
122 int anotherBar;
123 };
124 }
125
126
127 namespace evenmorestuff {
128 using otherstuff::OneClass;
129 }
130
131
132 namespace outer {
133 namespace inner {
134 struct StructNested {
135 int one;
136 int two;
137 };
138 struct AnotherStruct {
139 int three;
140 int four;
141 };
142 }
143 }
144
145
146 namespace first {
147 class AAA1;
148 namespace second {
149 class AAA2;
150 }
151
152 using namespace second;
153 }
154
155 namespace third {
156 using namespace first;
157 class AAA3;
158 }
159
160
161
162
163 namespace outer {
164 using outer::inner::StructNested;
165 }
166
167
168 namespace outerinner {
169
170 using namespace outer::inner;
171 }
172
173
174 namespace alias_for_somestuff = somestuff;
175
176 namespace alias_for_outerinner = outer::inner;