Home | History | Annotate | Download | only in ADT

Lines Matching full:this

5 // This file is distributed under the University of Illinois Open Source
87 this->expectValues(this->V, this->testArray(0));
91 this->V.push_back(this->TestPtrs[0]);
92 this->expectValues(this->V, this->testArray(1));
93 this->V.push_back(this->TestPtrs[1]);
94 this->expectValues(this->V, this->testArray(2));
95 this->V.push_back(this->TestPtrs[2]);
96 this->expectValues(this->V, this->testArray(3));
97 this->V.push_back(this->TestPtrs[3]);
98 this->expectValues(this->V, this->testArray(4));
99 this->V.push_back(this->TestPtrs[4]);
100 this->expectValues(this->V, this->testArray(5));
103 this->V.pop_back();
104 this->expectValues(this->V, this->testArray(4));
105 this->V.pop_back();
106 this->expectValues(this->V, this->testArray(3));
107 this->TestPtrs[3] = &this->TestValues[42];
108 this->TestPtrs[4] = &this->TestValues[43];
109 this->V.push_back(this->TestPtrs[3]);
110 this->expectValues(this->V, this->testArray(4));
111 this->V.push_back(this->TestPtrs[4]);
112 this->expectValues(this->V, this->testArray(5));
114 this->V.pop_back();
115 this->expectValues(this->V, this->testArray(4));
116 this->V.pop_back();
117 this->expectValues(this->V, this->testArray(3));
118 this->V.pop_back();
119 this->expectValues(this->V, this->testArray(2));
120 this->V.pop_back();
121 this->expectValues(this->V, this->testArray(1));
122 this->V.pop_back();
123 this->expectValues(this->V, this->testArray(0));
125 this->appendValues(this->V, this->testArray(42));
126 this->expectValues(this->V, this->testArray(42));
130 this->expectValues(this->V, this->testArray(0));
131 this->V.clear();
132 this->expectValues(this->V, this->testArray(0));
134 this->appendValues(this->V, this->testArray(1));
135 this->expectValues(this->V, this->testArray(1));
136 this->V.clear();
137 this->expectValues(this->V, this->testArray(0));
139 this->appendValues(this->V, this->testArray(42));
140 this->expectValues(this->V, this->testArray(42));
141 this->V.clear();
142 this->expectValues(this->V, this->testArray(0));
146 this->appendValues(this->V, this->testArray(42));
147 TypeParam Copy(this->V);
148 this->expectValues(Copy, this->testArray(42));
150 // This is a separate copy, and so it shouldn't destroy the original.
152 this->expectValues(Copy, this->testArray(0));
153 this->expectValues(this->V, this->testArray(42));
155 TypeParam Copy2(this->V2);
156 this->appendValues(Copy2, this->testArray(42));
157 this->expectValues(Copy2, this->testArray(42));
158 this->expectValues(this->V2, this->testArray(0));
161 this->expectValues(Move, this->testArray(42));
162 this->expectValues(Copy2, this->testArray(0));
166 this->V = this->V2;
167 this->expectValues(this->V, this->testArray(0));
168 this->expectValues(this->V2, this->testArray(0));
169 this->V = std::move(this->V2);
170 this->expectValues(this->V, this->testArray(0));
172 this->setVectors(this->testArray(1), this->testArray(0));
173 this->V = this->V2;
174 this->expectValues(this->V, this->testArray(0));
175 this->expectValues(this->V2, this->testArray(0));
176 this->setVectors(this->testArray(1), this->testArray(0));
177 this->V = std::move(this->V2);
178 this->expectValues(this->V, this->testArray(0));
180 this->setVectors(this->testArray(2), this->testArray(0));
181 this->V = this->V2;
182 this->expectValues(this->V, this->testArray(0));
183 this->expectValues(this->V2, this->testArray(0));
184 this->setVectors(this->testArray(2), this->testArray(0));
185 this->V = std::move(this->V2);
186 this->expectValues(this->V, this->testArray(0));
188 this->setVectors(this->testArray(42), this->testArray(0));
189 this->V = this->V2;
190 this->expectValues(this->V, this->testArray(0));
191 this->expectValues(this->V2, this->testArray(0));
192 this->setVectors(this->testArray(42), this->testArray(0));
193 this->V = std::move(this->V2);
194 this->expectValues(this->V, this->testArray(0));
196 this->setVectors(this->testArray(0), this->testArray(1));
197 this->V = this->V2;
198 this->expectValues(this->V, this->testArray(1));
199 this->expectValues(this->V2, this->testArray(1));
200 this->setVectors(this->testArray(0), this->testArray(1));
201 this->V = std::move(this->V2);
202 this->expectValues(this->V, this->testArray(1));
204 this->setVectors(this->testArray(0), this->testArray(2));
205 this->V = this->V2;
206 this->expectValues(this->V, this->testArray(2));
207 this->expectValues(this->V2, this->testArray(2));
208 this->setVectors(this->testArray(0), this->testArray(2));
209 this->V = std::move(this->V2);
210 this->expectValues(this->V, this->testArray(2));
212 this->setVectors(this->testArray(0), this->testArray(42));
213 this->V = this->V2;
214 this->expectValues(this->V, this->testArray(42));
215 this->expectValues(this->V2, this->testArray(42));
216 this->setVectors(this->testArray(0), this->testArray(42));
217 this->V = std::move(this->V2);
218 this->expectValues(this->V, this->testArray(42));
220 this->setVectors(this->testArray(1), this->testArray(1));
221 this->V = this->V2;
222 this->expectValues(this->V, this->testArray(1));
223 this->expectValues(this->V2, this->testArray(1));
224 this->V = std::move(this->V2);
225 this->expectValues(this->V, this->testArray(1));
227 this->setVectors(this->testArray(1), this->testArray(2));
228 this->V = this->V2;
229 this->expectValues(this->V, this->testArray(2));
230 this->expectValues(this->V2, this->testArray(2));
231 this->setVectors(this->testArray(1), this->testArray(2));
232 this->V = std::move(this->V2);
233 this->expectValues(this->V, this->testArray(2));
235 this->setVectors(this->testArray(1), this->testArray(42));
236 this->V = this->V2;
237 this->expectValues(this->V, this->testArray(42));
238 this->expectValues(this->V2, this->testArray(42));
239 this->setVectors(this->testArray(1), this->testArray(42));
240 this->V = std::move(this->V2);
241 this->expectValues(this->V, this->testArray(42));
243 this->setVectors(this->testArray(2), this->testArray(1));
244 this->V = this->V2;
245 this->expectValues(this->V, this->testArray(1));
246 this->expectValues(this->V2, this->testArray(1));
247 this->setVectors(this->testArray(2), this->testArray(1));
248 this->V = std::move(this->V2);
249 this->expectValues(this->V, this->testArray(1));
251 this->setVectors(this->testArray(2), this->testArray(2));
252 this->V = this->V2;
253 this->expectValues(this->V, this->testArray(2));
254 this->expectValues(this->V2, this->testArray(2));
255 this->setVectors(this->testArray(2), this->testArray(2));
256 this->V = std::move(this->V2);
257 this->expectValues(this->V, this->testArray(2));
259 this->setVectors(this->testArray(2), this->testArray(42));
260 this->V = this->V2;
261 this->expectValues(this->V, this->testArray(42));
262 this->expectValues(this->V2, this->testArray(42));
263 this->setVectors(this->testArray(2), this->testArray(42));
264 this->V = std::move(this->V2);
265 this->expectValues(this->V, this->testArray(42));
267 this->setVectors(this->testArray(42), this->testArray(1));
268 this->V = this->V2;
269 this->expectValues(this->V, this->testArray(1));
270 this->expectValues(this->V2, this->testArray(1));
271 this->setVectors(this->testArray(42), this->testArray(1));
272 this->V = std::move(this->V2);
273 this->expectValues(this->V, this->testArray(1));
275 this->setVectors(this->testArray(42), this->testArray(2));
276 this->V = this->V2;
277 this->expectValues(this->V, this->testArray(2));
278 this->expectValues(this->V2, this->testArray(2));
279 this->setVectors(this->testArray(42), this->testArray(2));
280 this->V = std::move(this->V2);
281 this->expectValues(this->V, this->testArray(2));
283 this->setVectors(this->testArray(42), this->testArray(42));
284 this->V = this->V2;
285 this->expectValues(this->V, this->testArray(42));
286 this->expectValues(this->V2, this->testArray(42));
287 this->setVectors(this->testArray(42), this->testArray(42));
288 this->V = std::move(this->V2);
289 this->expectValues(this->V, this->testArray(42));
293 this->appendValues(this->V, this->testArray(1));
294 this->expectValues(this->V, this->testArray(1));
295 this->V.erase(this->V.begin());
296 this->expectValues(this->V, this->testArray(0));
298 this->appendValues(this->V, this->testArray(42));
299 this->expectValues(this->V, this->testArray(42));
300 this->V.erase(this->V.begin());
301 this->TestPtrs.erase(this->TestPtrs.begin());
302 this->expectValues(this->V, this->testArray(41));
303 this->V.erase(std::next(this->V.begin(), 1));
304 this->TestPtrs.erase(std::next(this->TestPtrs.begin(), 1));
305 this->expectValues(this->V, this->testArray(40));
306 this->V.erase(std::next(this->V.begin(), 2));
307 this->TestPtrs.erase(std::next(this->TestPtrs.begin(), 2));
308 this->expectValues(this->V, this->testArray(39));
309 this->V.erase(std::next(this->V.begin(), 5));
310 this->TestPtrs.erase(std::next(this->TestPtrs.begin(), 5));
311 this->expectValues(this->V, this->testArray(38));
312 this->V.erase(std::next(this->V.begin(), 13));
313 this->TestPtrs.erase(std::next(this->TestPtrs.begin(), 13));
314 this->expectValues(this->V, this->testArray(37));
316 typename TypeParam::iterator I = this->V.begin();
318 I = this->V.erase(I);
319 } while (I != this->V.end());
320 this->expectValues(this->V, this->testArray(0));
324 this->appendValues(this->V, this->testArray(1));
325 this->expectValues(this->V, this->testArray(1));
326 this->V.erase(this->V.begin(), this->V.begin());
327 this->expectValues(this->V, this->testArray(1));
328 this->V.erase(this->V.end(), this->V.end());
329 this->expectValues(this->V, this->testArray(1));
330 this->V.erase(this->V.begin(), this->V.end());
331 this->expectValues(this->V, this->testArray(0));
333 this->appendValues(this->V, this->testArray(42));
334 this->expectValues(this->V, this->testArray(42));
335 this->V.erase(this->V.begin(), std::next(this->V.begin(), 1));
336 this->TestPtrs.erase(this->TestPtrs.begin(),
337 std::next(this->TestPtrs.begin(), 1));
338 this->expectValues(this->V, this->testArray(41));
339 this->V.erase(std::next(this->V.begin(), 1), std::next(this->V.begin(), 2));
340 this->TestPtrs.erase(std::next(this->TestPtrs.begin(), 1),
341 std::next(this->TestPtrs.begin(), 2));
342 this->expectValues(this->V, this->testArray(40));
343 this->V.erase(std::next(this->V.begin(), 2), std::next(this->V.begin(), 4));
344 this->TestPtrs.erase(std::next(this->TestPtrs.begin(), 2),
345 std::next(this->TestPtrs.begin(), 4));
346 this->expectValues(this->V, this->testArray(38));
347 this->V.erase(std::next(this->V.begin(), 5), std::next(this->V.begin(), 10));
348 this->TestPtrs.erase(std::next(this->TestPtrs.begin(), 5),
349 std::next(this->TestPtrs.begin(), 10));
350 this->expectValues(this->V, this->testArray(33));
351 this->V.erase(std::next(this->V.begin(), 13), std::next(this->V.begin(), 26));
352 this->TestPtrs.erase(std::next(this->TestPtrs.begin(), 13),
353 std::next(this->TestPtrs.begin(), 26));
354 this->expectValues(this->V, this->testArray(20));
355 this->V.erase(std::next(this->V.begin(), 7), this->V.end());
356 this->expectValues(this->V, this->testArray(7));
357 this->V.erase(this->V.begin(), this->V.end());
358 this->expectValues(this->V, this->testArray(0));
362 this->V.insert(this->V.end(), this->TestPtrs[0]);
363 this->expectValues(this->V, this->testArray(1));
364 this->V.clear();
365 this->appendValues(this->V, this->testArray(4));
366 this->expectValues(this->V, this->testArray(4));
367 this->V.insert(this->V.end(), this->TestPtrs[4]);
368 this->expectValues(this->V, this->testArray(5));
369 this->V.insert(this->V.begin(), this->TestPtrs[42]);
370 this->TestPtrs.insert(this->TestPtrs.begin(), this->TestPtrs[42]);
371 this->expectValues(this->V, this->testArray(6));
372 this->V.insert(std::next(this->V.begin(), 3), this->TestPtrs[43]);
373 this->TestPtrs.insert(std::next(this->TestPtrs.begin(), 3),
374 this->TestPtrs[43]);
375 this->expectValues(this->V, this->testArray(7));
379 this->V.insert(this->V.end(), this->TestPtrs.begin(), this->TestPtrs.begin());
380 this->expectValues(this->V, this->testArray(0));
381 this->V.insert(this->V.begin(), this->TestPtrs.begin(),
382 this->TestPtrs.begin());
383 this->expectValues(this->V, this->testArray(0));
384 this->V.insert(this->V.end(), this->TestPtrs.end(), this->TestPtrs.end());
385 this->expectValues(this->V, this->testArray(0));
386 this->V.insert(this->V.end(), this->TestPtrs.begin(),
387 std::next(this->TestPtrs.begin()));
388 this->expectValues(this->V, this->testArray(1));
389 this->V.clear();
390 this->V.insert(this->V.end(), this->TestPtrs.begin(),
391 std::next(this->TestPtrs.begin(), 2));
392 this->expectValues(this->V, this->testArray(2));
393 this->V.clear();
394 this->V.insert(this->V.end(), this->TestPtrs.begin(),
395 std::next(this->TestPtrs.begin(), 42));
396 this->expectValues(this->V, this->testArray(42));
397 this->V.clear();
398 this->V.insert(this->V.end(),
399 std::next(this->TestPtrs.begin(), 5),
400 std::next(this->TestPtrs.begin(), 13));
401 this->V.insert(this->V.begin(),
402 std::next(this->TestPtrs.begin(), 0),
403 std::next(this->TestPtrs.begin(), 3));
404 this->V.insert(std::next(this->V.begin(), 2),
405 std::next(this->TestPtrs.begin(), 2),
406 std::next(this->TestPtrs.begin(), 4));
407 this->V.erase(std::next(this->V.begin(), 4));
408 this->V.insert(std::next(this->V.begin(), 4),
409 std::next(this->TestPtrs.begin(), 4),
410 std::next(this->TestPtrs.begin(), 5));
411 this->expectValues(this->V, this->testArray(13));