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