Lines Matching refs:Obj
40 class Obj { class
42 Obj() {} in Obj() function in vixl::Obj
43 Obj(KeyType key, ValType val) : key_(key), val_(val) {} in Obj() function in vixl::Obj
47 bool operator==(const Obj& other) const { in operator ==()
50 bool operator<(const Obj& other) const { in operator <()
53 bool operator<=(const Obj& other) const { in operator <=()
57 bool operator>(const Obj& other) const { in operator >()
67 typedef InvalSet<Obj,
76 inline KeyType InvalSet<Obj,
81 kReclaimFactor>::GetKey(const Obj& obj) { in GetKey()
85 inline void InvalSet<Obj,
90 kReclaimFactor>::SetKey(Obj* obj, KeyType key) { in SetKey()
100 set.insert(Obj(i, i)); in TEST()
104 set.insert(Obj(-123, 456)); in TEST()
105 set.insert(Obj(2718, 2871828)); in TEST()
107 VIXL_CHECK(set.GetMinElement() == Obj(-123, 456)); in TEST()
109 set.erase(Obj(-123, 456)); in TEST()
118 VIXL_CHECK(TestSet::IsValid(Obj(0, 0))); in TEST()
119 VIXL_CHECK(TestSet::IsValid(Obj(-1, 0))); in TEST()
120 VIXL_CHECK(TestSet::IsValid(Obj(kInvalidKey - 1, 0))); in TEST()
121 VIXL_CHECK(!TestSet::IsValid(Obj(kInvalidKey, 0))); in TEST()
130 set.insert(Obj(i, i)); in TEST()
133 set.insert(Obj(-123, 1)); in TEST()
135 set.insert(Obj(-123, 2)); in TEST()
136 set.insert(Obj(-123, 3)); in TEST()
150 set.insert(Obj(2718, 0)); in TEST()
151 set.erase(Obj(2718, 0)); in TEST()
153 set.insert(Obj(2718, 0)); in TEST()
155 set.insert(Obj(2718, 1)); in TEST()
157 set.erase(Obj(2718, 0)); in TEST()
162 set.insert(Obj(i * i, i % 30)); in TEST()
163 set.insert(Obj(i, -1)); in TEST()
166 set.erase(Obj(100, -1)); 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()
197 set.insert(Obj(sign * i, i)); in TEST()
199 VIXL_CHECK(set.GetMinElement() == Obj(-max_index, max_index)); in TEST()
202 set.erase(Obj(0, 0)); in TEST()
203 VIXL_CHECK(set.GetMinElement() == Obj(-max_index, max_index)); in TEST()
205 VIXL_CHECK(set.GetMinElement() == Obj(-(max_index - 2), max_index - 2)); in TEST()
222 set.insert(Obj(i, i)); in TEST()
238 set.insert(Obj(i, i)); in TEST()
253 std::vector<Obj> to_erase; in TEST()
256 to_erase.push_back(Obj(i, i)); 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()
291 set.insert(Obj(i, i)); in TEST()
307 set.insert(Obj(i, i)); in TEST()
322 std::vector<Obj> to_erase; in TEST()
325 to_erase.push_back(Obj(i, i)); 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()
368 set1.insert(Obj(i, 1)); in TEST()
369 set2.insert(Obj(i, 2)); in TEST()
389 *it1_b = Obj(42, 1); in TEST()