• Home
  • Raw
  • Download

Lines Matching refs:set

96   TestSet set;  in TEST()  local
97 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
100 set.insert(Obj(i, i)); in TEST()
102 VIXL_CHECK(set.size() == kNPreallocatedElements); in TEST()
104 set.insert(Obj(-123, 456)); in TEST()
105 set.insert(Obj(2718, 2871828)); in TEST()
106 VIXL_CHECK(set.size() == kNPreallocatedElements + 2); in TEST()
107 VIXL_CHECK(set.GetMinElement() == Obj(-123, 456)); in TEST()
109 set.erase(Obj(-123, 456)); in TEST()
110 VIXL_CHECK(set.GetMinElementKey() == 0); in TEST()
112 set.clear(); in TEST()
113 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
126 TestSet set; in TEST() local
127 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
130 set.insert(Obj(i, i)); in TEST()
132 VIXL_CHECK(set.size() == kNPreallocatedElements); in TEST()
133 set.insert(Obj(-123, 1)); in TEST()
134 VIXL_CHECK(set.size() == kNPreallocatedElements + 1); in TEST()
135 set.insert(Obj(-123, 2)); in TEST()
136 set.insert(Obj(-123, 3)); in TEST()
137 VIXL_CHECK(set.size() == kNPreallocatedElements + 3); in TEST()
139 set.clear(); in TEST()
140 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
145 TestSet set; in TEST() local
146 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
150 set.insert(Obj(2718, 0)); in TEST()
151 set.erase(Obj(2718, 0)); in TEST()
152 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
153 set.insert(Obj(2718, 0)); in TEST()
154 VIXL_CHECK(set.size() == 1); in TEST()
155 set.insert(Obj(2718, 1)); in TEST()
156 VIXL_CHECK(set.size() == 2); in TEST()
157 set.erase(Obj(2718, 0)); in TEST()
158 VIXL_CHECK(set.size() == 1); in TEST()
162 set.insert(Obj(i * i, i % 30)); in TEST()
163 set.insert(Obj(i, -1)); in TEST()
165 size_t max_size = set.size(); in TEST()
166 set.erase(Obj(100, -1)); in TEST()
167 VIXL_CHECK(set.size() == max_size - 1); in TEST()
169 set.erase(set.GetMinElement()); in TEST()
170 VIXL_CHECK(set.size() == max_size - i); in TEST()
173 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
178 TestSet set; in TEST() local
179 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
183 set.insert(Obj(-1, -1)); in TEST()
184 set.insert(Obj(-1, 0)); in TEST()
185 set.insert(Obj(0, 0)); in TEST()
186 set.insert(Obj(1, 0)); in TEST()
187 VIXL_CHECK(set.GetMinElement() == Obj(-1, -1)); in TEST()
188 VIXL_CHECK(set.GetMinElementKey() == -1); in TEST()
189 VIXL_CHECK(set.GetMinElement().key_ == set.GetMinElementKey()); in TEST()
192 set.clear(); in TEST()
197 set.insert(Obj(sign * i, i)); in TEST()
199 VIXL_CHECK(set.GetMinElement() == Obj(-max_index, max_index)); in TEST()
200 VIXL_CHECK(set.GetMinElement().key_ == set.GetMinElementKey()); in TEST()
202 set.erase(Obj(0, 0)); in TEST()
203 VIXL_CHECK(set.GetMinElement() == Obj(-max_index, max_index)); in TEST()
204 set.erase(set.GetMinElement()); in TEST()
205 VIXL_CHECK(set.GetMinElement() == Obj(-(max_index - 2), max_index - 2)); in TEST()
207 set.clear(); in TEST()
208 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
213 TestSet set; in TEST() local
214 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
217 VIXL_CHECK(set.begin() == set.end()); in TEST()
222 set.insert(Obj(i, i)); in TEST()
228 for (InvalSetIterator<TestSet> it = set.begin(); it != set.end(); ++it) { in TEST()
232 VIXL_CHECK(size == set.size()); in TEST()
238 set.insert(Obj(i, i)); in TEST()
244 for (InvalSetIterator<TestSet> it = set.begin(); it != set.end(); ++it) { in TEST()
248 VIXL_CHECK(size == set.size()); in TEST()
255 for (unsigned i = 0; i < set.size(); i += step, step++) { in TEST()
258 to_erase.push_back(Obj(set.size() - 1, set.size() - 1)); // The last element. in TEST()
259 to_erase.push_back(Obj(set.size(), set.size())); // Not in the set. in TEST()
263 size_t erased = set.erase(to_erase.back()); in TEST()
273 for (InvalSetIterator<TestSet> it = set.begin(); it != set.end(); ++it) { in TEST()
277 VIXL_CHECK(size == set.size()); in TEST()
285 TestSet set; in TEST() local
286 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
291 set.insert(Obj(i, i)); in TEST()
297 for (auto object : set) { in TEST()
301 VIXL_CHECK(size == set.size()); in TEST()
307 set.insert(Obj(i, i)); in TEST()
313 for (auto object : set) { in TEST()
317 VIXL_CHECK(size == set.size()); in TEST()
324 for (unsigned i = 0; i < set.size(); i += step, step++) { in TEST()
327 to_erase.push_back(Obj(set.size() - 1, set.size() - 1)); // The last element. in TEST()
328 to_erase.push_back(Obj(set.size(), set.size())); // Not in the set. in TEST()
332 size_t erased = set.erase(to_erase.back()); in TEST()
342 for (auto object : set) { in TEST()
346 VIXL_CHECK(size == set.size()); in TEST()