|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Generic linear hash table. More...
#include <tpl_linHash.H>
Classes | |
| class | Iterator |
Public Types | |
| using | Hash_Fct = std::function< size_t(const Key &)> |
| The hash function type. | |
| using | Hash_Fct_Ptr = size_t(*)(const Key &) |
| using | Bucket = BucketType< Key > |
| The bucket type. | |
| using | Key_Type = Key |
| using | Item_Type = Key |
Public Member Functions | |
| void | set_hash_fct (Hash_Fct fct) |
| Sets the hash function of an empty table. | |
| void | set_hash_fct (Hash_Fct_Ptr fct) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| Hash_Fct | get_hash_fct () const noexcept |
| Cmp & | get_compare () noexcept |
| const Cmp & | get_compare () const noexcept |
| float | current_alpha () const noexcept |
| return the current table load | |
| GenLinearHashTable (size_t len=Primes::DefaultPrime, Hash_Fct_Ptr hash_fct=Aleph::dft_hash_ptr_fct< Key >, Cmp cmp=Cmp(), float lower_alpha=hash_default_lower_alpha, float upper_alpha=hash_default_upper_alpha, bool remove_all_buckets=true, bool with_resize=true) | |
| Instantiate a generic linear hash table. | |
| void | swap (GenLinearHashTable &other) noexcept |
Swaps this table with other in constant time. | |
| void | empty () noexcept |
| Empties the table: frees every bucket and gives the table its initial size. | |
| void | clear () noexcept |
| Empties the container. | |
| bool | contains (const Key &key) const noexcept |
| Checks if a key exists in the table. | |
| ~GenLinearHashTable () | |
| GenLinearHashTable (const GenLinearHashTable &)=delete | |
| Not copyable: the copy that the compiler would write copies the links of the lists, which would point to the buckets of the other table: destroying one table frees the buckets that the other one still holds. | |
| GenLinearHashTable & | operator= (const GenLinearHashTable &)=delete |
| Not copyable, for the same reason as the copy constructor. | |
| Bucket * | search (const Key &key) const noexcept |
| Search for key in the linear hash table. | |
| const size_t & | size () const noexcept |
| Returns the number of elements in the table. | |
| bool | is_empty () const noexcept |
| return true is table is empty | |
| const size_t & | capacity () const noexcept |
| Returns the table capacity. | |
| const size_t & | busy_slots () const noexcept |
| Returns the number of busy slots in the table. | |
| const size_t & | expansions () const noexcept |
| Returns the expansion level performed on the table. | |
| Bucket * | insert (Bucket *bucket) |
| Insert bucket in the table. | |
| Bucket * | search_or_insert (Bucket *bucket) |
| size_t | resize (size_t) noexcept |
| Provided for generic programming compatibility. | |
| Bucket * | remove (Bucket *bucket) noexcept |
Removes bucket from the table, without freeing it. | |
| void | print () |
Public Member Functions inherited from HashStats< HashTbl > | |
| Stats | stats () const |
| Computes statistics about chain length distribution. | |
| void | print_stats (const Stats &stats) const |
| Prints statistics to standard output. | |
| void | set_upper_alpha (float _upper_alpha) |
| Sets the upper load factor threshold. | |
| void | set_lower_alpha (float _lower_alpha) |
| Sets the lower load factor threshold. | |
| constexpr float | get_lower_alpha () const noexcept |
| Returns the lower load factor threshold. | |
| constexpr float | get_upper_alpha () const noexcept |
| Returns the upper load factor threshold. | |
| constexpr bool | get_with_resize () const noexcept |
| Returns whether the table resizes itself. | |
| void | set_with_resize (const bool with_resize) noexcept |
| Turns the automatic resizing on or off. | |
Protected Member Functions | |
| GenLinearHashTable (size_t __len, Hash_Fct __hash_fct, Cmp __cmp, float __lower_alpha, float __upper_alpha, bool __remove_all_buckets, bool __with_resize) | |
| template<typename HashFunc , typename SearchKey > | |
| Bucket * | search_with_custom_hash (const HashFunc &hash_func, const SearchKey &search_key) const noexcept |
Searches for a key of another type, without building a Key. | |
Protected Attributes | |
| Hash_Fct | hash_fct |
| Cmp | cmp |
| float | upper_alpha |
| float | lower_alpha |
| size_t | len |
Private Types | |
| using | BucketList = Dlink |
| using | BucketItor = typename Dnode< Key >::Iterator |
Private Member Functions | |
| size_t | list_index (const size_t hash) const noexcept |
| size_t | call_hash_fct (const Key &key) const |
| void | expand () |
| void | contract () |
| template<typename SearchKey > | |
| Bucket * | search_in_bucket_list (BucketList *list, const SearchKey &key) const |
| Bucket * | remove_bucket (Bucket *bucket) noexcept |
Static Private Member Functions | |
| static size_t | multiply_by_two (size_t n) noexcept |
| static size_t | divide_by_two (size_t n) noexcept |
Private Attributes | |
| DynArray< BucketList > | table |
| Dlink | entries_list |
| size_t | M |
| size_t | N |
| size_t | busy_slots_counter |
| bool | remove_all_buckets |
| bool | with_resize |
| size_t | p |
| size_t | l |
| size_t | MP |
| size_t | MM |
Friends | |
| class | HashStats< GenLinearHashTable< Key, BucketType, Cmp > > |
Generic linear hash table.
Basically, a linear hash table is a hash table with collision resolution by separate chaining but with the difference that the table size increases dynamically to ensure that the load factor, typically called \(\alpha\), is bounded between two lower and upper values, respectively.
Internally, the table uses a dynamic array of type DynArray. This leads to memory savings for table entries that have not been written.
This type is generic and is not intended to be used directly. Instead, use LinearHashTable or LinearHashTableVtl depending on whether you want buckets without or with a virtual destructor.
| Key | the key type by which the table is indexed. |
| BucketType | the bucket type between LinHashBucket or LinHashBucketVtl. |
| Cmp | comparison class between keys. |
Definition at line 159 of file tpl_linHash.H.
| using Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Bucket = BucketType<Key> |
The bucket type.
Definition at line 172 of file tpl_linHash.H.
|
private |
Definition at line 185 of file tpl_linHash.H.
|
private |
Definition at line 183 of file tpl_linHash.H.
| using Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Hash_Fct = std::function<size_t(const Key &)> |
The hash function type.
Must return pseudo-random positive values, between zero and the largest possible number.
Definition at line 168 of file tpl_linHash.H.
| using Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Hash_Fct_Ptr = size_t (*) (const Key &) |
Definition at line 169 of file tpl_linHash.H.
| using Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Item_Type = Key |
Definition at line 176 of file tpl_linHash.H.
| using Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Key_Type = Key |
Definition at line 174 of file tpl_linHash.H.
|
inlineprotected |
Definition at line 367 of file tpl_linHash.H.
References ah_domain_error_if, ah_length_error_if, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::lower_alpha, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::M, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MM, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::upper_alpha.
|
inline |
Instantiate a generic linear hash table.
Instantiate a generic linear hash table of size len.
| [in] | len | initial and minimum table size. |
| [in] | hash_fct | hash function. |
| [in] | cmp | comparison functor for keys. |
| [in] | lower_alpha | lower threshold at which the table should contract. |
| [in] | upper_alpha | upper threshold at which the table should expand. |
| [in] | remove_all_buckets | if true, then the table's buckets are freed. Otherwise, they remain intact. By default the value is true. |
| [in] | with_resize | if true, the table will resize automatically based on load factors; set_with_resize() changes it later. |
| length_error | if len is equal or greater than the maximum dimension allowed for a dynamic array. |
| domain_error | if upper_alpha is less than or equal to lower_alpha. |
| bad_alloc | if there is not enough memory |
| overflow_error | if an overflow occurs from DynArray (caused by its internal calculations). |
Definition at line 410 of file tpl_linHash.H.
|
inline |
Definition at line 502 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::remove_all_buckets.
|
delete |
Not copyable: the copy that the compiler would write copies the links of the lists, which would point to the buckets of the other table: destroying one table frees the buckets that the other one still holds.
The table has no moves of its own either; swap() exchanges two tables in constant time.
|
inlinenoexcept |
Returns the number of busy slots in the table.
Definition at line 599 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::busy_slots_counter.
Referenced by print_stats(), TEST(), TEST(), TEST(), TEST(), and TEST_F().
|
inlineprivate |
Definition at line 233 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::hash_fct, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::list_index().
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::insert(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_or_insert().
|
inlinenoexcept |
Returns the table capacity.
Definition at line 596 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MP.
Referenced by print_stats(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST_F().
|
inlinenoexcept |
Empties the container.
| none |
Definition at line 492 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty().
|
inlinenoexcept |
Checks if a key exists in the table.
| [in] | key | key to search for. |
| none |
Definition at line 500 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search().
|
inlineprivate |
Definition at line 292 of file tpl_linHash.H.
References Aleph::and, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::busy_slots_counter, Aleph::Dlink::concat_list(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::divide_by_two(), Aleph::Dlink::is_empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::l, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::len, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::M, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MM, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MP, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::N, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::p, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::remove_bucket().
|
inlinenoexcept |
return the current table load
Definition at line 363 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MP.
|
inlinestaticprivatenoexcept |
Definition at line 189 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract().
|
inlinenoexcept |
Empties the table: frees every bucket and gives the table its initial size.
| none |
Definition at line 462 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::busy_slots_counter, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::entries_list, Aleph::Dlink::is_empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::l, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::len, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::M, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MM, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MP, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::multiply_by_two(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::p, Aleph::Dlink::remove_first_ne(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::~GenLinearHashTable(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::clear(), and TEST().
|
inlineprivate |
Definition at line 238 of file tpl_linHash.H.
References Aleph::Dlink::append(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::busy_slots_counter, Aleph::Dlink::del(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::hash_fct, Aleph::Dlink::is_empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::l, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::M, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MM, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MP, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::multiply_by_two(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::p, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::upper_alpha.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::insert(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_or_insert().
|
inlinenoexcept |
Returns the expansion level performed on the table.
Definition at line 602 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::l.
Referenced by print_stats(), TEST(), TEST(), TEST(), and TEST().
|
inlinenoexcept |
Definition at line 360 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::cmp.
|
inlinenoexcept |
Definition at line 358 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::cmp.
|
inlinenoexcept |
Definition at line 356 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::hash_fct.
Referenced by TEST().
|
inline |
Insert bucket in the table.
Return bucket if bucket->get_key() is not in the table, nullptr otherwise
Definition at line 606 of file tpl_linHash.H.
References Aleph::Dlink::append(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::busy_slots_counter, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::call_hash_fct(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::entries_list, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::Dlink::is_empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::N, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_in_bucket_list(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::with_resize.
Referenced by main(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST_F().
|
inlinenoexcept |
return true is table is empty
Definition at line 593 of file tpl_linHash.H.
Referenced by Sparse_Table_Case< Table >::is_empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::set_hash_fct(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::set_hash_fct(), TEST(), TEST(), TEST(), TEST(), TEST(), and Sparse_Table_Case< Table >::use().
|
inlineprivatenoexcept |
Definition at line 227 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::M, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MM, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::p.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::call_hash_fct(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_with_custom_hash().
|
inlinestaticprivatenoexcept |
Definition at line 187 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand().
|
delete |
Not copyable, for the same reason as the copy constructor.
|
inline |
Definition at line 698 of file tpl_linHash.H.
References Aleph::Dlink::is_empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MP, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table.
Referenced by main().
|
inlinenoexcept |
Removes bucket from the table, without freeing it.
| [in] | bucket | the bucket to remove. |
bucket. | none |
bucket is in the table; it is not checked. Definition at line 692 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::remove_bucket().
Referenced by main(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST_F().
|
inlineprivatenoexcept |
Definition at line 654 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::busy_slots_counter, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::N, Aleph::next(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::with_resize.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::del(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::remove().
|
inlinenoexcept |
Provided for generic programming compatibility.
Definition at line 646 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MP.
Referenced by TEST().
|
inlinenoexcept |
Search for key in the linear hash table.
Returns a pointer to the bucket containing key if it is found in the table; nullptr otherwise.
Definition at line 544 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::call_hash_fct(), Aleph::Dlink::is_empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_in_bucket_list(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contains(), main(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::remove_bucket(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST_F().
|
inlineprivate |
Definition at line 527 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::cmp.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::insert(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_or_insert(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_with_custom_hash().
|
inline |
Definition at line 625 of file tpl_linHash.H.
References Aleph::Dlink::append(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::busy_slots_counter, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::call_hash_fct(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::entries_list, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::Dlink::is_empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::N, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::p, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_in_bucket_list(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::with_resize.
|
inlineprotectednoexcept |
Searches for a key of another type, without building a Key.
For the derived classes whose keys hold what they search by, as DynMapHashTable, whose keys are pairs: it searches by the first member alone, so it neither copies that member nor builds a Data, which may allocate or throw.
| [in] | hash_func | the hash of search_key, which must be the hash that the table gives to the keys equivalent to search_key. It is taken by reference: a copy of a function object may allocate. |
| [in] | search_key | what to search for; the comparator of the table must compare it with a Key. |
search_key, or nullptr if there is none. | none | as search(), it requires that the hash function and the comparator do not throw. |
Definition at line 577 of file tpl_linHash.H.
References Aleph::Dlink::is_empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::list_index(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_in_bucket_list(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table.
|
inline |
Sets the hash function of an empty table.
| [in] | fct | The new hash function. |
| std::domain_error | if the table is not empty: the buckets already stored would stay in the lists of the old function, where their keys may not be found, and linear hashing has no operation that places them again. The table then keeps its function. |
Definition at line 341 of file tpl_linHash.H.
References ah_domain_error_if, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::hash_fct, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::is_empty().
Referenced by TEST().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 349 of file tpl_linHash.H.
References ah_domain_error_if, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::hash_fct, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::is_empty().
|
inlinenoexcept |
Returns the number of elements in the table.
Definition at line 590 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::N.
Referenced by main(), print_stats(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), and Sparse_Table_Case< Table >::use().
|
inlinenoexcept |
Swaps this table with other in constant time.
The buckets travel with everything that rules them: the hash function, the comparator, the load thresholds, the resizing policy and the state of the expansion.
| [in,out] | other | Table to swap with. |
std::terminate is called. Definition at line 432 of file tpl_linHash.H.
References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::busy_slots_counter, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::cmp, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::entries_list, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::hash_fct, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::l, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::len, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::lower_alpha, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::M, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MM, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::MP, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::p, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::remove_all_buckets, Aleph::Dlink::swap(), hash_dry_detail::swap_compare(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::table, Aleph::GenLinearHashTable< Key, BucketType, Cmp >::upper_alpha, and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::with_resize.
|
friend |
Definition at line 128 of file tpl_linHash.H.
|
private |
Definition at line 203 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::busy_slots(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::insert(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::remove_bucket(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_or_insert(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
protected |
Definition at line 197 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::get_compare(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::get_compare(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_in_bucket_list(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
private |
Definition at line 192 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::insert(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_or_insert(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
protected |
Definition at line 196 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::call_hash_fct(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::get_hash_fct(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::set_hash_fct(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::set_hash_fct(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
private |
Definition at line 216 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expansions(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
mutableprotected |
Definition at line 222 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
protected |
Definition at line 211 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::GenLinearHashTable(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
private |
Definition at line 201 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::GenLinearHashTable(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::list_index(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
private |
Definition at line 218 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::GenLinearHashTable(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::list_index(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
private |
Definition at line 217 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::capacity(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::current_alpha(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::print(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::resize(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
private |
Definition at line 202 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::insert(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::remove_bucket(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_or_insert(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::size().
|
private |
Definition at line 215 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::list_index(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_or_insert(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
private |
Definition at line 204 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::~GenLinearHashTable(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
private |
Definition at line 191 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::GenLinearHashTable(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::contract(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::empty(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::insert(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::print(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_or_insert(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_with_custom_hash(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
protected |
Definition at line 210 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::GenLinearHashTable(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::expand(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().
|
private |
Definition at line 206 of file tpl_linHash.H.
Referenced by Aleph::GenLinearHashTable< Key, BucketType, Cmp >::insert(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::remove_bucket(), Aleph::GenLinearHashTable< Key, BucketType, Cmp >::search_or_insert(), and Aleph::GenLinearHashTable< Key, BucketType, Cmp >::swap().