__gnu_pbds::cc_hash_max_collision_check_resize_trigger< External_Load_Access, Size_Type >(3cxx) | __gnu_pbds::cc_hash_max_collision_check_resize_trigger< External_Load_Access, Size_Type >(3cxx) |
__gnu_pbds::cc_hash_max_collision_check_resize_trigger< External_Load_Access, Size_Type > - A resize trigger policy based on collision checks. It keeps the simulated load factor lower than some given load factor.
#include <hash_policy.hpp>
enum { external_load_access }
typedef Size_Type size_type
cc_hash_max_collision_check_resize_trigger (float load=0.5)
Default constructor, or constructor taking load, a __load factor which it will
attempt to maintain. float get_load () const
Returns the current load. void set_load (float load)
Sets the load; does not resize the container. void swap
(cc_hash_max_collision_check_resize_trigger< External_Load_Access,
Size_Type > &other)
bool is_grow_needed (size_type size, size_type num_entries)
const
Queries whether a grow is needed. This method is called only if this object
indicated is needed. bool is_resize_needed () const
Queries whether a resize is needed. void notify_cleared ()
Notifies the table was cleared. void notify_erase_search_collision ()
Notifies a search encountered a collision. void notify_erase_search_end
()
Notifies a search ended. void notify_erase_search_start ()
Notifies an erase search started. void notify_erased (size_type
num_entries)
Notifies an element was erased. void notify_externally_resized
(size_type new_size)
Notifies the table was resized externally. void
notify_find_search_collision ()
Notifies a search encountered a collision. void notify_find_search_end
()
Notifies a search ended. void notify_find_search_start ()
Notifies a find search started. void notify_insert_search_collision ()
Notifies a search encountered a collision. void
notify_insert_search_end ()
Notifies a search ended. void notify_insert_search_start ()
Notifies an insert search started. void notify_inserted (size_type
num_entries)
Notifies an element was inserted. void notify_resized (size_type
new_size)
Notifies the table was resized as a result of this object's signifying that a
resize is needed.
class __gnu_pbds::cc_hash_max_collision_check_resize_trigger< External_Load_Access, Size_Type >"A resize trigger policy based on collision checks. It keeps the simulated load factor lower than some given load factor.
Definition at line 293 of file hash_policy.hpp.
Definition at line 296 of file hash_policy.hpp.
Enumerator
Definition at line 298 of file hash_policy.hpp.
Default constructor, or constructor taking load, a __load factor which it will attempt to maintain.
Returns the current load.
Queries whether a grow is needed. This method is called only if this object indicated is needed.
Queries whether a resize is needed.
Notifies the table was cleared.
Notifies a search encountered a collision.
Notifies a search ended.
Notifies an erase search started.
Notifies an element was erased.
Notifies the table was resized externally.
Notifies a search encountered a collision.
Notifies a search ended.
Notifies a find search started.
Notifies a search encountered a collision.
Notifies a search ended.
Notifies an insert search started.
Notifies an element was inserted.
Notifies the table was resized as a result of this object's signifying that a resize is needed.
Sets the load; does not resize the container.
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ |