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

References

unittests/ADT/IntervalMapTest.cpp
  190   map.insert(100, 150, 1);
  193   map.insert(90, 99, 1);
  194   EXPECT_EQ(1, std::distance(map.begin(), map.end()));
  194   EXPECT_EQ(1, std::distance(map.begin(), map.end()));
  195   EXPECT_EQ(90u, map.start());
  196   EXPECT_EQ(150u, map.stop());
  199   map.insert(151, 200, 1);
  200   EXPECT_EQ(1, std::distance(map.begin(), map.end()));
  200   EXPECT_EQ(1, std::distance(map.begin(), map.end()));
  201   EXPECT_EQ(90u, map.start());
  202   EXPECT_EQ(200u, map.stop());
  205   map.insert(60, 89, 2);
  206   EXPECT_EQ(2, std::distance(map.begin(), map.end()));
  206   EXPECT_EQ(2, std::distance(map.begin(), map.end()));
  207   EXPECT_EQ(60u, map.start());
  208   EXPECT_EQ(200u, map.stop());
  209   EXPECT_EQ(2u, map.lookup(89));
  210   EXPECT_EQ(1u, map.lookup(90));
  212   UUMap::iterator I = map.begin();
  224   map.insert(201, 210, 2);
  225   EXPECT_EQ(3, std::distance(map.begin(), map.end()));
  225   EXPECT_EQ(3, std::distance(map.begin(), map.end()));
  226   EXPECT_EQ(60u, map.start());
  227   EXPECT_EQ(210u, map.stop());
  228   EXPECT_EQ(2u, map.lookup(201));
  229   EXPECT_EQ(1u, map.lookup(200));
  232   map.begin().erase();
  233   EXPECT_EQ(2, std::distance(map.begin(), map.end()));
  233   EXPECT_EQ(2, std::distance(map.begin(), map.end()));
  234   EXPECT_EQ(90u, map.start());
  235   EXPECT_EQ(210u, map.stop());
  238   (--map.end()).erase();
  239   EXPECT_EQ(1, std::distance(map.begin(), map.end()));
  239   EXPECT_EQ(1, std::distance(map.begin(), map.end()));
  240   EXPECT_EQ(90u, map.start());
  241   EXPECT_EQ(200u, map.stop());
  244   map.insert(80, 89, 2);
  245   map.insert(201, 210, 2);
  246   EXPECT_EQ(3, std::distance(map.begin(), map.end()));
  246   EXPECT_EQ(3, std::distance(map.begin(), map.end()));
  247   (++map.begin()).setValue(2);
  248   EXPECT_EQ(1, std::distance(map.begin(), map.end()));
  248   EXPECT_EQ(1, std::distance(map.begin(), map.end()));
  249   I = map.begin();