Home
last modified time | relevance | path

Searched refs:hash_set (Results 1 – 2 of 2) sorted by relevance

/art/runtime/base/
Dhash_set_test.cc65 HashSet<std::string, IsEmptyFnString> hash_set; in TEST_F() local
67 ASSERT_TRUE(hash_set.Empty()); in TEST_F()
68 ASSERT_EQ(hash_set.Size(), 0U); in TEST_F()
69 hash_set.Insert(test_string); in TEST_F()
70 auto it = hash_set.Find(test_string); in TEST_F()
72 auto after_it = hash_set.Erase(it); in TEST_F()
73 ASSERT_TRUE(after_it == hash_set.end()); in TEST_F()
74 ASSERT_TRUE(hash_set.Empty()); in TEST_F()
75 ASSERT_EQ(hash_set.Size(), 0U); in TEST_F()
76 it = hash_set.Find(test_string); in TEST_F()
[all …]
Dhash_set.h66 BaseIterator(HashSetType* hash_set, size_t index) : index_(index), hash_set_(hash_set) { in BaseIterator() argument
105 size_t NextNonEmptySlot(size_t index, const HashSet* hash_set) const { in NextNonEmptySlot() argument
106 const size_t num_buckets = hash_set->NumBuckets(); in NextNonEmptySlot()
110 } while (index < num_buckets && hash_set->IsFreeSlot(index)); in NextNonEmptySlot()