Lines Matching full:this
32 for (const auto &V : Vals) this->BaseT::insert(V); in TestDenseMap()
37 for (; B != E; ++B) this->BaseT::insert(*B); in TestDenseMap()
66 EXPECT_TRUE(Constructed.insert(this).second); in CtorTester()
69 EXPECT_TRUE(Constructed.insert(this).second); in CtorTester()
72 EXPECT_TRUE(Constructed.insert(this).second); in CtorTester()
75 ~CtorTester() { EXPECT_EQ(1u, Constructed.erase(this)); } in ~CtorTester()
99 // function overloads selected by component types of the type parameter. This
133 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
134 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
137 EXPECT_FALSE(this->Map.count(this->getKey())); in TYPED_TEST()
138 EXPECT_EQ(nullptr, this->Map.find(this->getKey())); in TYPED_TEST()
140 this->Map.lookup(this->getKey())); in TYPED_TEST()
145 const TypeParam &ConstMap = this->Map; in TYPED_TEST()
152 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
155 EXPECT_EQ(1u, this->Map.size()); in TYPED_TEST()
156 EXPECT_FALSE(this->Map.empty()); in TYPED_TEST()
159 EXPECT_TRUE(this->Map.count(this->getKey())); in TYPED_TEST()
160 EXPECT_NE(nullptr, this->Map.find(this->getKey())); in TYPED_TEST()
161 EXPECT_EQ(this->getValue(), this->Map.lookup(this->getKey())); in TYPED_TEST()
162 EXPECT_EQ(this->getValue(), this->Map[this->getKey()]); in TYPED_TEST()
167 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
168 this->Map.clear(); in TYPED_TEST()
170 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
171 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
176 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
177 this->Map.erase(this->Map.find(this->getKey())); in TYPED_TEST()
179 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
180 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
185 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
186 this->Map.erase(this->getKey()); in TYPED_TEST()
188 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
189 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
194 this->Map.insert( in TYPED_TEST()
195 typename TypeParam::value_type(this->getKey(), this->getValue())); in TYPED_TEST()
196 EXPECT_EQ(1u, this->Map.size()); in TYPED_TEST()
197 EXPECT_EQ(this->getValue(), this->Map[this->getKey()]); in TYPED_TEST()
202 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
203 TypeParam copyMap(this->Map); in TYPED_TEST()
206 EXPECT_EQ(this->getValue(), copyMap[this->getKey()]); in TYPED_TEST()
212 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST()
213 TypeParam copyMap(this->Map); in TYPED_TEST()
217 EXPECT_EQ(this->getValue(Key), copyMap[this->getKey(Key)]); in TYPED_TEST()
222 TypeParam copyMap(this->Map); in TYPED_TEST()
230 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST()
231 this->Map.clear(); in TYPED_TEST()
232 TypeParam copyMap(this->Map); in TYPED_TEST()
239 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
240 TypeParam copyMap = this->Map; in TYPED_TEST()
243 EXPECT_EQ(this->getValue(), copyMap[this->getKey()]); in TYPED_TEST()
248 EXPECT_EQ(this->getValue(), copyMap[this->getKey()]); in TYPED_TEST()
253 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST()
254 TypeParam copyMap = this->Map; in TYPED_TEST()
258 EXPECT_EQ(this->getValue(Key), copyMap[this->getKey(Key)]); in TYPED_TEST()
264 EXPECT_EQ(this->getValue(Key), copyMap[this->getKey(Key)]); in TYPED_TEST()
269 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
272 this->Map.swap(otherMap); in TYPED_TEST()
273 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
274 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
276 EXPECT_EQ(this->getValue(), otherMap[this->getKey()]); in TYPED_TEST()
278 this->Map.swap(otherMap); in TYPED_TEST()
281 EXPECT_EQ(1u, this->Map.size()); in TYPED_TEST()
282 EXPECT_EQ(this->getValue(), this->Map[this->getKey()]); in TYPED_TEST()
284 // Make this more interesting by inserting 100 numbers into the map. in TYPED_TEST()
285 for (int i = 0; i < 100; ++i) this->Map[this->getKey(i)] = this->getValue(i); in TYPED_TEST()
287 this->Map.swap(otherMap); in TYPED_TEST()
288 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
289 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
292 EXPECT_EQ(this->getValue(i), otherMap[this->getKey(i)]); in TYPED_TEST()
294 this->Map.swap(otherMap); in TYPED_TEST()
297 EXPECT_EQ(100u, this->Map.size()); in TYPED_TEST()
299 EXPECT_EQ(this->getValue(i), this->Map[this->getKey(i)]); in TYPED_TEST()
310 visitedIndex[this->getKey(i)] = i; in TYPED_TEST()
312 this->Map[this->getKey(i)] = this->getValue(i); in TYPED_TEST()
316 this->Map.forEach([&](const typename TypeParam::value_type &kv) { in TYPED_TEST()
335 return *this; in operator =()
340 return *this; in operator =()
400 // This relies on move-construction elision, and cannot be reliably tested. in TEST()
531 // This is an important build time optimization, since many classes have in TEST()