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

References

unittests/ADT/BitVectorTest.cpp
  185   A.resize(100);
  186   A.set(12);
  187   A.set(13);
  188   A.set(75);
  190   EXPECT_EQ(75, A.find_last());
  191   EXPECT_EQ(12, A.find_first());
  192   EXPECT_EQ(13, A.find_next(12));
  193   EXPECT_EQ(75, A.find_next(13));
  194   EXPECT_EQ(-1, A.find_next(75));
  196   EXPECT_EQ(-1, A.find_prev(12));
  197   EXPECT_EQ(12, A.find_prev(13));
  198   EXPECT_EQ(13, A.find_prev(75));
  199   EXPECT_EQ(75, A.find_prev(90));
  201   EXPECT_EQ(0, A.find_first_unset());
  202   EXPECT_EQ(99, A.find_last_unset());
  203   EXPECT_EQ(14, A.find_next_unset(11));
  204   EXPECT_EQ(14, A.find_next_unset(12));
  205   EXPECT_EQ(14, A.find_next_unset(13));
  206   EXPECT_EQ(16, A.find_next_unset(15));
  207   EXPECT_EQ(76, A.find_next_unset(74));
  208   EXPECT_EQ(76, A.find_next_unset(75));
  209   EXPECT_EQ(-1, A.find_next_unset(99));
  211   A.set(0, 100);
  212   EXPECT_EQ(100U, A.count());
  213   EXPECT_EQ(0, A.find_first());
  214   EXPECT_EQ(-1, A.find_first_unset());
  215   EXPECT_EQ(-1, A.find_last_unset());
  216   EXPECT_EQ(99, A.find_last());
  217   EXPECT_EQ(99, A.find_next(98));
  219   A.reset(0, 100);
  220   EXPECT_EQ(0U, A.count());
  221   EXPECT_EQ(-1, A.find_first());
  222   EXPECT_EQ(-1, A.find_last());
  223   EXPECT_EQ(0, A.find_first_unset());
  224   EXPECT_EQ(99, A.find_last_unset());
  225   EXPECT_EQ(99, A.find_next_unset(98));