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

References

unittests/ADT/DenseMapTest.cpp
  113   EXPECT_EQ(0u, this->Map.size());
  114   EXPECT_TRUE(this->Map.empty());
  117   EXPECT_TRUE(this->Map.begin() == this->Map.end());
  117   EXPECT_TRUE(this->Map.begin() == this->Map.end());
  120   EXPECT_FALSE(this->Map.count(this->getKey()));
  121   EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.end());
  121   EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.end());
  123             this->Map.lookup(this->getKey()));
  128   const TypeParam &ConstMap = this->Map;
  136   this->Map[this->getKey()] = this->getValue();
  139   EXPECT_EQ(1u, this->Map.size());
  140   EXPECT_FALSE(this->Map.begin() == this->Map.end());
  140   EXPECT_FALSE(this->Map.begin() == this->Map.end());
  141   EXPECT_FALSE(this->Map.empty());
  144   typename TypeParam::iterator it = this->Map.begin();
  148   EXPECT_TRUE(it == this->Map.end());
  151   EXPECT_TRUE(this->Map.count(this->getKey()));
  152   EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.begin());
  152   EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.begin());
  153   EXPECT_EQ(this->getValue(), this->Map.lookup(this->getKey()));
  154   EXPECT_EQ(this->getValue(), this->Map[this->getKey()]);
  159   this->Map[this->getKey()] = this->getValue();
  160   this->Map.clear();
  162   EXPECT_EQ(0u, this->Map.size());
  163   EXPECT_TRUE(this->Map.empty());
  164   EXPECT_TRUE(this->Map.begin() == this->Map.end());
  164   EXPECT_TRUE(this->Map.begin() == this->Map.end());
  169   this->Map[this->getKey()] = this->getValue();
  170   this->Map.erase(this->Map.begin());
  170   this->Map.erase(this->Map.begin());
  172   EXPECT_EQ(0u, this->Map.size());
  173   EXPECT_TRUE(this->Map.empty());
  174   EXPECT_TRUE(this->Map.begin() == this->Map.end());
  174   EXPECT_TRUE(this->Map.begin() == this->Map.end());
  179   this->Map[this->getKey()] = this->getValue();
  180   this->Map.erase(this->getKey());
  182   EXPECT_EQ(0u, this->Map.size());
  183   EXPECT_TRUE(this->Map.empty());
  184   EXPECT_TRUE(this->Map.begin() == this->Map.end());
  184   EXPECT_TRUE(this->Map.begin() == this->Map.end());
  189   this->Map.insert(std::make_pair(this->getKey(), this->getValue()));
  190   EXPECT_EQ(1u, this->Map.size());
  191   EXPECT_EQ(this->getValue(), this->Map[this->getKey()]);
  196   this->Map[this->getKey()] = this->getValue();
  197   TypeParam copyMap(this->Map);
  206     this->Map[this->getKey(Key)] = this->getValue(Key);
  207   TypeParam copyMap(this->Map);
  216   TypeParam copyMap(this->Map);
  224     this->Map[this->getKey(Key)] = this->getValue(Key);
  225   this->Map.clear();
  226   TypeParam copyMap(this->Map);
  233   this->Map[this->getKey()] = this->getValue();
  234   TypeParam copyMap = this->Map;
  247     this->Map[this->getKey(Key)] = this->getValue(Key);
  248   TypeParam copyMap = this->Map;
  263   this->Map[this->getKey()] = this->getValue();
  266   this->Map.swap(otherMap);
  267   EXPECT_EQ(0u, this->Map.size());
  268   EXPECT_TRUE(this->Map.empty());
  272   this->Map.swap(otherMap);
  275   EXPECT_EQ(1u, this->Map.size());
  276   EXPECT_EQ(this->getValue(), this->Map[this->getKey()]);
  280     this->Map[this->getKey(i)] = this->getValue(i);
  282   this->Map.swap(otherMap);
  283   EXPECT_EQ(0u, this->Map.size());
  284   EXPECT_TRUE(this->Map.empty());
  289   this->Map.swap(otherMap);
  292   EXPECT_EQ(100u, this->Map.size());
  294     EXPECT_EQ(this->getValue(i), this->Map[this->getKey(i)]);
  307     this->Map[this->getKey(i)] = this->getValue(i);
  311   for (typename TypeParam::iterator it = this->Map.begin();
  312        it != this->Map.end(); ++it)
  323   typename TypeParam::iterator it = this->Map.begin();