64 template <
class Entry,
typename Number>
80 HashTable(
typename Entry::Pooltype& pool);
83 Number
match(
const Entry&);
86 Number
find(
const Entry&)
const;
87 typename Entry::Pooltype::const_reference
operator[] (Number i)
const 89 Number
size()
const {
return Number(d_pool.size()); }
95 {
return static_cast<size_t>(fill_fraction*
d_mod); }
104 const_iterator
begin()
const {
return Number(0); }
110 d_hash.swap(other.d_hash);
111 d_pool.swap(other.d_pool);
Entry::Pooltype & d_pool
Definition: hashtable.h:70
size_t d_mod
Definition: hashtable.h:68
size_t capacity() const
Definition: hashtable.h:90
void swap(simple_list< T, Alloc > &x, simple_list< T, Alloc > &y)
Definition: sl_list.h:674
size_t max_fill() const
Definition: hashtable.h:94
const_iterator end() const
Definition: hashtable.h:105
void reconstruct()
Definition: hashtable_def.h:41
Number find(const Entry &) const
Definition: hashtable_def.h:51
Number const_iterator
Definition: hashtable.h:101
Number match(const Entry &)
Definition: hashtable_def.h:68
Entry::Pooltype::const_reference operator[](Number i) const
Definition: hashtable.h:87
const_iterator iterator
Definition: hashtable.h:102
const_iterator begin() const
Definition: hashtable.h:104
void swap(HashTable &other)
Definition: hashtable.h:107
void rehash()
Definition: hashtable_def.h:23
static const Number empty
Definition: hashtable.h:76
Number size() const
Definition: hashtable.h:89
static const float fill_fraction
Definition: hashtable.h:77
HashTable(typename Entry::Pooltype &pool)
Definition: hashtable_def.h:16
std::vector< Number > d_hash
Definition: hashtable.h:69