MCPcopy Create free account
hub / github.com/ablab/spades / array_hash

Method array_hash

ext/include/tsl/array-hash/array_hash.h:938–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936
937 public:
938 array_hash(size_type bucket_count, const Hash& hash, float max_load_factor)
939 : value_container<T>(),
940 Hash(hash),
941 GrowthPolicy(bucket_count),
942 m_buckets_data(bucket_count > max_bucket_count()
943 ? throw std::length_error(
944 "The map exceeds its maximum bucket count.")
945 : bucket_count),
946 m_buckets(m_buckets_data.empty() ? static_empty_bucket_ptr()
947 : m_buckets_data.data()),
948 m_nb_elements(0) {
949 this->max_load_factor(max_load_factor);
950 }
951
952 array_hash(const array_hash& other)
953 : value_container<T>(other),

Callers 15

htrie_hash_iteratorMethod · 0.80
set_current_hash_nodeMethod · 0.80
shrink_to_fitMethod · 0.80
erase_prefixMethod · 0.80
size_descendantsMethod · 0.80
insert_implMethod · 0.80
insert_in_hash_nodeMethod · 0.80
eraseMethod · 0.80
clear_empty_nodesMethod · 0.80
find_in_hash_nodeMethod · 0.80
longest_prefix_implMethod · 0.80

Calls 4

max_load_factorMethod · 0.95
emptyMethod · 0.45
dataMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected