Lines Matching refs:VM
49 ValueMap<TypeParam*, int> VM;
50 VM[this->BitcastV.get()] = 7;
51 EXPECT_EQ(7, VM.lookup(this->BitcastV.get()));
52 EXPECT_EQ(0, VM.count(this->AddV.get()));
54 EXPECT_EQ(7, VM.lookup(this->AddV.get()));
55 EXPECT_EQ(0, VM.count(this->BitcastV.get()));
57 EXPECT_EQ(0, VM.count(this->AddV.get()));
58 EXPECT_EQ(0, VM.count(this->BitcastV.get()));
59 EXPECT_EQ(0U, VM.size());
63 ValueMap<TypeParam*, int> VM;
67 EXPECT_TRUE(VM.empty());
69 VM[this->BitcastV.get()] = 7;
73 VM.find(this->BitcastV.get());
74 ASSERT_TRUE(I != VM.end());
77 EXPECT_TRUE(VM.find(this->AddV.get()) == VM.end());
80 const ValueMap<TypeParam*, int> &CVM = VM;
90 VM.insert(std::make_pair(this->AddV.get(), 3));
94 EXPECT_EQ(true, VM.count(this->AddV.get()));
96 VM.insert(std::make_pair(this->AddV.get(), 5));
102 VM.erase(InsertResult2.first);
103 EXPECT_EQ(0U, VM.count(this->AddV.get()));
104 EXPECT_EQ(1U, VM.count(this->BitcastV.get()));
105 VM.erase(this->BitcastV.get());
106 EXPECT_EQ(0U, VM.count(this->BitcastV.get()));
107 EXPECT_EQ(0U, VM.size());
113 VM.insert(Elems.begin(), Elems.end());
114 EXPECT_EQ(1, VM.lookup(this->AddV.get()));
115 EXPECT_EQ(2, VM.lookup(this->BitcastV.get()));
124 ValueMap<TypeParam*, int> VM;
125 VM[this->BitcastV.get()] = 2;
126 VM[this->AddV.get()] = 3;
128 for (typename ValueMap<TypeParam*, int>::iterator I = VM.begin(), E = VM.end();
144 EXPECT_EQ(5, VM[this->BitcastV.get()]);
145 EXPECT_EQ(6, VM[this->AddV.get()]);
149 const ValueMap<TypeParam*, int>& CVM = VM;
168 ValueMap<TypeParam*, int> VM;
169 VM[this->BitcastV.get()] = 7;
170 VM[this->AddV.get()] = 9;
172 EXPECT_EQ(0, VM.count(this->BitcastV.get()));
173 EXPECT_EQ(9, VM.lookup(this->AddV.get()));
203 ValueMap<TypeParam*, int, LockMutex<TypeParam*> > VM(Data);
204 VM[this->BitcastV.get()] = 7;
218 ValueMap<TypeParam*, int, NoFollow<TypeParam*> > VM;
219 VM[this->BitcastV.get()] = 7;
220 EXPECT_EQ(7, VM.lookup(this->BitcastV.get()));
221 EXPECT_EQ(0, VM.count(this->AddV.get()));
223 EXPECT_EQ(7, VM.lookup(this->BitcastV.get()));
224 EXPECT_EQ(0, VM.lookup(this->AddV.get()));
226 EXPECT_EQ(7, VM.lookup(this->BitcastV.get()));
227 EXPECT_EQ(0, VM.lookup(this->AddV.get()));
229 EXPECT_EQ(0, VM.lookup(this->BitcastV.get()));
230 EXPECT_EQ(0, VM.lookup(this->AddV.get()));
231 EXPECT_EQ(0U, VM.size());
252 ValueMap<TypeParam*, int, CountOps<TypeParam*> > VM(Data);
253 VM[this->BitcastV.get()] = 7;
282 ValueMap<TypeParam*, int, ModifyingConfig<TypeParam*> > VM(&MapAddress);
283 MapAddress = &VM;
285 VM[this->BitcastV.get()] = 7;
287 EXPECT_FALSE(VM.count(this->BitcastV.get()));
288 EXPECT_FALSE(VM.count(this->AddV.get()));
289 VM[this->AddV.get()] = 7;
291 EXPECT_FALSE(VM.count(this->AddV.get()));