Lines Matching refs:set

98   TestSet set;  in TEST()  local
99 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
102 set.insert(Obj(i, i)); in TEST()
104 VIXL_CHECK(set.size() == kNPreallocatedElements); in TEST()
106 set.insert(Obj(-123, 456)); in TEST()
107 set.insert(Obj(2718, 2871828)); in TEST()
108 VIXL_CHECK(set.size() == kNPreallocatedElements + 2); in TEST()
109 VIXL_CHECK(set.min_element() == Obj(-123, 456)); in TEST()
111 set.erase(Obj(-123, 456)); in TEST()
112 VIXL_CHECK(set.min_element_key() == 0); in TEST()
114 set.clear(); in TEST()
115 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
128 TestSet set; in TEST() local
129 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
132 set.insert(Obj(i, i)); in TEST()
134 VIXL_CHECK(set.size() == kNPreallocatedElements); in TEST()
135 set.insert(Obj(-123, 1)); in TEST()
136 VIXL_CHECK(set.size() == kNPreallocatedElements + 1); in TEST()
137 set.insert(Obj(-123, 2)); in TEST()
138 set.insert(Obj(-123, 3)); in TEST()
139 VIXL_CHECK(set.size() == kNPreallocatedElements + 3); in TEST()
141 set.clear(); in TEST()
142 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
147 TestSet set; in TEST() local
148 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
152 set.insert(Obj(2718, 0)); in TEST()
153 set.erase(Obj(2718, 0)); in TEST()
154 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
155 set.insert(Obj(2718, 0)); in TEST()
156 VIXL_CHECK(set.size() == 1); in TEST()
157 set.insert(Obj(2718, 1)); in TEST()
158 VIXL_CHECK(set.size() == 2); in TEST()
159 set.erase(Obj(2718, 0)); in TEST()
160 VIXL_CHECK(set.size() == 1); in TEST()
164 set.insert(Obj(i * i, i % 30)); in TEST()
165 set.insert(Obj(i, -1)); in TEST()
167 size_t max_size = set.size(); in TEST()
168 set.erase(Obj(100, -1)); in TEST()
169 VIXL_CHECK(set.size() == max_size - 1); in TEST()
171 set.erase(set.min_element()); in TEST()
172 VIXL_CHECK(set.size() == max_size - i); in TEST()
175 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
180 TestSet set; in TEST() local
181 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
185 set.insert(Obj(-1, -1)); in TEST()
186 set.insert(Obj(-1, 0)); in TEST()
187 set.insert(Obj(0, 0)); in TEST()
188 set.insert(Obj(1, 0)); in TEST()
189 VIXL_CHECK(set.min_element() == Obj(-1, -1)); in TEST()
190 VIXL_CHECK(set.min_element_key() == -1); in TEST()
191 VIXL_CHECK(set.min_element().key_ == set.min_element_key()); in TEST()
194 set.clear(); in TEST()
199 set.insert(Obj(sign * i, i)); in TEST()
201 VIXL_CHECK(set.min_element() == Obj(-max_index, max_index)); in TEST()
202 VIXL_CHECK(set.min_element().key_ == set.min_element_key()); in TEST()
204 set.erase(Obj(0, 0)); in TEST()
205 VIXL_CHECK(set.min_element() == Obj(-max_index, max_index)); in TEST()
206 set.erase(set.min_element()); in TEST()
207 VIXL_CHECK(set.min_element() == Obj(-(max_index - 2), max_index - 2)); in TEST()
209 set.clear(); in TEST()
210 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
215 TestSet set; in TEST() local
216 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
220 set.insert(Obj(i, i)); in TEST()
224 for (InvalSetIterator<TestSet> it(&set); !it.Done(); it.Advance()) { in TEST()
227 VIXL_CHECK(size == set.size()); in TEST()
233 set.insert(Obj(i, i)); in TEST()
237 for (InvalSetIterator<TestSet> it(&set); !it.Done(); it.Advance()) { in TEST()
240 VIXL_CHECK(size == set.size()); in TEST()
244 set.erase(Obj(0, 0)); in TEST()
245 for (InvalSetIterator<TestSet> it(&set); !it.Done(); it.Advance()) { in TEST()
248 VIXL_CHECK(size == set.size()); in TEST()