Lines Matching refs:theVector
199 VectorT theVector;
215 this->assertEmpty(this->theVector);
216 EXPECT_TRUE(this->theVector.rbegin() == this->theVector.rend());
226 bool RequiresGrowth = this->theVector.capacity() < 3;
229 this->theVector.push_back(Constructable(1));
232 this->assertValuesInOrder(this->theVector, 1u, 1);
233 EXPECT_FALSE(this->theVector.begin() == this->theVector.end());
234 EXPECT_FALSE(this->theVector.empty());
237 this->theVector.push_back(Constructable(2));
238 this->assertValuesInOrder(this->theVector, 2u, 1, 2);
241 this->theVector.insert(this->theVector.begin(), this->theVector[1]);
242 this->assertValuesInOrder(this->theVector, 3u, 2, 1, 2);
245 this->theVector.pop_back();
246 this->assertValuesInOrder(this->theVector, 2u, 2, 1);
249 this->theVector.pop_back();
250 this->theVector.pop_back();
251 this->assertEmpty(this->theVector);
272 this->theVector.reserve(2);
273 this->makeSequence(this->theVector, 1, 2);
274 this->theVector.clear();
276 this->assertEmpty(this->theVector);
285 this->theVector.reserve(3);
286 this->makeSequence(this->theVector, 1, 3);
287 this->theVector.resize(1);
289 this->assertValuesInOrder(this->theVector, 1u, 1);
298 this->theVector.resize(2);
302 EXPECT_EQ(2u, this->theVector.size());
306 this->theVector.resize(2);
310 this->theVector.resize(4);
324 this->theVector.resize(3, Constructable(77));
325 this->assertValuesInOrder(this->theVector, 3u, 77, 77, 77);
333 this->makeSequence(this->theVector, 1, 10);
336 EXPECT_EQ(10u, this->theVector.size());
338 EXPECT_EQ(i+1, this->theVector[i].getValue());
342 this->theVector.resize(1);
344 this->assertValuesInOrder(this->theVector, 1u, 1);
349 this->makeSequence(this->theVector, 1, 2);
352 typename TypeParam::iterator it = this->theVector.begin();
353 EXPECT_TRUE(*it == this->theVector.front());
354 EXPECT_TRUE(*it == this->theVector[0]);
357 EXPECT_TRUE(*it == this->theVector[1]);
358 EXPECT_TRUE(*it == this->theVector.back());
361 EXPECT_TRUE(it == this->theVector.end());
363 EXPECT_TRUE(*it == this->theVector[1]);
366 EXPECT_TRUE(*it == this->theVector[0]);
370 typename TypeParam::reverse_iterator rit = this->theVector.rbegin();
371 EXPECT_TRUE(*rit == this->theVector[1]);
374 EXPECT_TRUE(*rit == this->theVector[0]);
377 EXPECT_TRUE(rit == this->theVector.rend());
379 EXPECT_TRUE(*rit == this->theVector[0]);
382 EXPECT_TRUE(*rit == this->theVector[1]);
390 this->makeSequence(this->theVector, 1, 2);
391 std::swap(this->theVector, this->otherVector);
393 this->assertEmpty(this->theVector);
403 this->theVector.push_back(Constructable(1));
404 this->theVector.append(this->otherVector.begin(), this->otherVector.end());
406 this->assertValuesInOrder(this->theVector, 3u, 1, 2, 3);
413 this->theVector.push_back(Constructable(1));
414 this->theVector.append(2, Constructable(77));
415 this->assertValuesInOrder(this->theVector, 3u, 1, 77, 77);
422 this->theVector.push_back(Constructable(1));
423 this->theVector.assign(2, Constructable(77));
424 this->assertValuesInOrder(this->theVector, 2u, 77, 77);
432 this->theVector.reserve(4);
433 this->theVector.push_back(Constructable(1));
440 this->theVector = std::move(this->otherVector);
443 this->assertValuesInOrder(this->theVector, 2u, 2, 3);
452 this->theVector.clear();
461 this->makeSequence(this->theVector, 1, 3);
462 const auto &theConstVector = this->theVector;
463 this->theVector.erase(theConstVector.begin());
464 this->assertValuesInOrder(this->theVector, 2u, 2, 3);
471 this->makeSequence(this->theVector, 1, 3);
472 const auto &theConstVector = this->theVector;
473 this->theVector.erase(theConstVector.begin(), theConstVector.begin() + 2);
474 this->assertValuesInOrder(this->theVector, 1u, 3);
481 this->makeSequence(this->theVector, 1, 3);
483 this->theVector.insert(this->theVector.begin() + 1, Constructable(77));
484 EXPECT_EQ(this->theVector.begin() + 1, I);
485 this->assertValuesInOrder(this->theVector, 4u, 1, 77, 2, 3);
492 this->makeSequence(this->theVector, 1, 3);
495 this->theVector.insert(this->theVector.begin() + 1, C);
496 EXPECT_EQ(this->theVector.begin() + 1, I);
497 this->assertValuesInOrder(this->theVector, 4u, 1, 77, 2, 3);
504 this->makeSequence(this->theVector, 1, 4);
507 this->theVector.insert(this->theVector.begin() + 1, 2, Constructable(16));
521 EXPECT_EQ(this->theVector.begin() + 1, I);
522 this->assertValuesInOrder(this->theVector, 6u, 1, 16, 16, 2, 3, 4);
529 this->makeSequence(this->theVector, 1, 4);
531 auto I = this->theVector.insert(this->theVector.end(), 2, Constructable(16));
541 EXPECT_EQ(this->theVector.begin() + 4, I);
542 this->assertValuesInOrder(this->theVector, 6u, 1, 2, 3, 4, 16, 16);
548 this->makeSequence(this->theVector, 10, 15);
551 EXPECT_EQ(this->theVector.end(),
552 this->theVector.insert(this->theVector.end(),
554 EXPECT_EQ(this->theVector.begin() + 1,
555 this->theVector.insert(this->theVector.begin() + 1,
566 this->makeSequence(this->theVector, 1, 3);
568 auto I = this->theVector.insert(this->theVector.begin() + 1, Arr, Arr + 3);
580 EXPECT_EQ(this->theVector.begin() + 1, I);
581 this->assertValuesInOrder(this->theVector, 6u, 1, 77, 77, 77, 2, 3);
591 this->makeSequence(this->theVector, 1, 3);
595 auto I = this->theVector.insert(this->theVector.end(), Arr, Arr+3);
605 EXPECT_EQ(this->theVector.begin() + 3, I);
606 this->assertValuesInOrder(this->theVector, 6u,
613 this->makeSequence(this->theVector, 1, 3);
616 EXPECT_EQ(this->theVector.end(),
617 this->theVector.insert(this->theVector.end(),
618 this->theVector.begin(),
619 this->theVector.begin()));
620 EXPECT_EQ(this->theVector.begin() + 1,
621 this->theVector.insert(this->theVector.begin() + 1,
622 this->theVector.begin(),
623 this->theVector.begin()));
630 this->makeSequence(this->theVector, 1, 3);
633 EXPECT_TRUE(this->theVector == this->otherVector);
634 EXPECT_FALSE(this->theVector != this->otherVector);
639 EXPECT_FALSE(this->theVector == this->otherVector);
640 EXPECT_TRUE(this->theVector != this->otherVector);
654 EXPECT_EQ(0u, this->theVector.size());
655 this->theVector.reserve(4);
656 EXPECT_LE(4u, this->theVector.capacity());
658 this->theVector.push_back(1);
659 this->theVector.push_back(2);
660 this->theVector.push_back(3);
661 this->theVector.push_back(4);
662 EXPECT_EQ(4u, this->theVector.size());
664 EXPECT_EQ(1, this->theVector[0].getValue());
665 EXPECT_EQ(2, this->theVector[1].getValue());
666 EXPECT_EQ(3, this->theVector[2].getValue());
667 EXPECT_EQ(4, this->theVector[3].getValue());
672 this->theVector.insert(this->theVector.end(), L.begin(), L.end());
680 VectorT1 theVector;
710 this->theVector =
714 this->assertValuesInOrder(this->theVector, 4u, 0, 1, 2, 3);
725 this->theVector.data() == OrigDataPtr);
728 this->theVector.clear();