Lines Matching refs:num_buckets_

133   HashSet() : num_elements_(0), num_buckets_(0), owns_data_(false), data_(nullptr),  in HashSet()
138 HashSet(const HashSet& other) : num_elements_(0), num_buckets_(0), owns_data_(false), in HashSet()
143 HashSet(HashSet&& other) : num_elements_(0), num_buckets_(0), owns_data_(false), in HashSet()
157 num_buckets_ = static_cast<uint64_t>(temp); in HashSet()
158 CHECK_LE(num_elements_, num_buckets_); in HashSet()
166 offset += sizeof(*data_) * num_buckets_; in HashSet()
168 AllocateStorage(num_buckets_); in HashSet()
171 for (size_t i = 0; i < num_buckets_; ++i) { in HashSet()
184 offset = WriteToBytes(ptr, offset, static_cast<uint64_t>(num_buckets_)); in WriteToMemory()
190 for (size_t i = 0; i < num_buckets_; ++i) { in WriteToMemory()
203 std::swap(num_buckets_, other.num_buckets_);
215 for (size_t i = 0; i < num_buckets_; ++i) {
228 if (num_buckets_ != 0 && IsFreeSlot(ret.index_)) { in begin()
371 for (size_t i = 0; i < num_buckets_; ++i) { in Verify()
402 return hash % num_buckets_; in IndexForHash()
406 if (UNLIKELY(++index >= num_buckets_)) { in NextIndex()
436 return num_buckets_; in NumBuckets()
441 num_buckets_ = num_buckets; in AllocateStorage()
442 data_ = allocfn_.allocate(num_buckets_); in AllocateStorage()
444 for (size_t i = 0; i < num_buckets_; ++i) { in AllocateStorage()
451 if (num_buckets_ != 0) { in DeallocateStorage()
460 num_buckets_ = 0; in DeallocateStorage()
480 size_t old_num_buckets = num_buckets_; in Resize()
528 size_t num_buckets_; // Number of hash table buckets. variable