reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/BitVectorTest.cpp
  308   Vec.resize(200);
  309   Vec.set(3, 7);
  310   Vec.set(24, 35);
  311   Vec.set(50, 70);
  312   Vec.set(150);
  313   Vec.set(152);
  314   Vec.set(154);
  317   EXPECT_EQ(-1, Vec.find_first_in(0, 0));
  318   EXPECT_EQ(-1, Vec.find_first_in(24, 24));
  319   EXPECT_EQ(-1, Vec.find_first_in(7, 24));
  321   EXPECT_EQ(3, Vec.find_first_in(0, 10));
  322   EXPECT_EQ(4, Vec.find_first_in(4, 10));
  323   EXPECT_EQ(150, Vec.find_first_in(100, 200));
  324   EXPECT_EQ(152, Vec.find_first_in(151, 200));
  325   EXPECT_EQ(154, Vec.find_first_in(153, 200));
  327   EXPECT_EQ(-1, Vec.find_first_in(155, 200));
  328   Vec.set(199);
  329   EXPECT_EQ(199, Vec.find_first_in(199, 200));
  330   Vec.reset(199);
  333   EXPECT_EQ(-1, Vec.find_last_in(0, 0));
  334   EXPECT_EQ(-1, Vec.find_last_in(24, 24));
  335   EXPECT_EQ(-1, Vec.find_last_in(7, 24));
  337   EXPECT_EQ(6, Vec.find_last_in(0, 10));
  338   EXPECT_EQ(5, Vec.find_last_in(0, 6));
  339   EXPECT_EQ(154, Vec.find_last_in(100, 155));
  340   EXPECT_EQ(152, Vec.find_last_in(100, 154));
  341   EXPECT_EQ(150, Vec.find_last_in(100, 152));
  342   EXPECT_EQ(-1, Vec.find_last_in(100, 150));
  343   Vec.set(199);
  344   EXPECT_EQ(199, Vec.find_last_in(199, 200));
  345   Vec.reset(199);
  348   EXPECT_EQ(-1, Vec.find_first_unset_in(0, 0));
  349   EXPECT_EQ(-1, Vec.find_first_unset_in(23, 23));
  350   EXPECT_EQ(-1, Vec.find_first_unset_in(24, 35));
  352   EXPECT_EQ(0, Vec.find_first_unset_in(0, 10));
  353   EXPECT_EQ(1, Vec.find_first_unset_in(1, 10));
  354   EXPECT_EQ(7, Vec.find_first_unset_in(5, 25));
  355   EXPECT_EQ(151, Vec.find_first_unset_in(150, 200));
  356   EXPECT_EQ(151, Vec.find_first_unset_in(151, 200));
  357   EXPECT_EQ(153, Vec.find_first_unset_in(152, 200));
  358   EXPECT_EQ(153, Vec.find_first_unset_in(153, 200));
  359   EXPECT_EQ(155, Vec.find_first_unset_in(154, 200));
  360   EXPECT_EQ(155, Vec.find_first_unset_in(155, 200));
  361   EXPECT_EQ(199, Vec.find_first_unset_in(199, 200));
  364   EXPECT_EQ(-1, Vec.find_last_unset_in(0, 0));
  365   EXPECT_EQ(-1, Vec.find_last_unset_in(23, 23));
  366   EXPECT_EQ(-1, Vec.find_last_unset_in(24, 35));
  368   EXPECT_EQ(9, Vec.find_last_unset_in(0, 10));
  369   EXPECT_EQ(8, Vec.find_last_unset_in(0, 9));
  370   EXPECT_EQ(2, Vec.find_last_unset_in(0, 7));
  371   EXPECT_EQ(149, Vec.find_last_unset_in(100, 151));
  372   EXPECT_EQ(151, Vec.find_last_unset_in(100, 152));
  373   EXPECT_EQ(151, Vec.find_last_unset_in(100, 153));
  374   EXPECT_EQ(153, Vec.find_last_unset_in(100, 154));
  375   EXPECT_EQ(153, Vec.find_last_unset_in(100, 155));
  376   EXPECT_EQ(155, Vec.find_last_unset_in(100, 156));
  377   EXPECT_EQ(199, Vec.find_last_unset_in(199, 200));