Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

__gnu_pbds::hash_exponential_size_policy(3) [centos man page]

__gnu_pbds::hash_exponential_size_policy< Size_Type >(3)     Library Functions Manual	  __gnu_pbds::hash_exponential_size_policy< Size_Type >(3)

NAME
__gnu_pbds::hash_exponential_size_policy< Size_Type > - SYNOPSIS
Public Types typedef Size_Type size_type Public Member Functions hash_exponential_size_policy (size_type start_size=8, size_type grow_factor=2) void swap (hash_exponential_size_policy< Size_Type > &other) Protected Member Functions size_type get_nearest_larger_size (size_type size) const size_type get_nearest_smaller_size (size_type size) const Detailed Description template<typename Size_Type = std::size_t>class __gnu_pbds::hash_exponential_size_policy< Size_Type > A size policy whose sequence of sizes form an exponential sequence (typically powers of 2. Definition at line 413 of file hash_policy.hpp. Constructor &; Destructor Documentation template<typename Size_Type > __gnu_pbds::hash_exponential_size_policy< Size_Type >::hash_exponential_size_policy (size_typestart_size = 8, size_typegrow_factor = 2) Default constructor, or onstructor taking a start_size, or constructor taking a start size and grow_factor. The policy will use the sequence of sizes start_size, start_size* grow_factor, start_size* grow_factor^2, ... Definition at line 44 of file hash_policy.hpp. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 __gnu_pbds::hash_exponential_size_policy< Size_Type >(3)

Check Out this Related Man Page

__gnu_pbds::hash_load_check_resize_trigger< External_Load_AccLibra__gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type >(3)

NAME
__gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type > - SYNOPSIS
Inherits __gnu_pbds::detail::hash_load_check_resize_trigger_size_base< Size_Type, External_Load_Access >. Public Types enum { external_load_access } typedef Size_Type size_type Public Member Functions hash_load_check_resize_trigger (float load_min=0.125, float load_max=0.5) std::pair< float, float > get_loads () const void set_loads (std::pair< float, float > load_pair) void swap (hash_load_check_resize_trigger &other) Protected Member Functions bool is_grow_needed (size_type size, size_type num_entries) const bool is_resize_needed () const void notify_cleared () void notify_erase_search_collision () void notify_erase_search_end () void notify_erase_search_start () void notify_erased (size_type num_entries) void notify_externally_resized (size_type new_size) void notify_find_search_collision () void notify_find_search_end () void notify_find_search_start () void notify_insert_search_collision () void notify_insert_search_end () void notify_insert_search_start () void notify_inserted (size_type num_entries) void notify_resized (size_type new_size) Detailed Description template<bool External_Load_Access = false, typename Size_Type = std::size_t>class __gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type > A resize trigger policy based on a load check. It keeps the load factor between some load factors load_min and load_max. Definition at line 175 of file hash_policy.hpp. Member Enumeration Documentation template<bool External_Load_Access = false, typename Size_Type = std::size_t> anonymous enum Enumerator external_load_access Specifies whether the load factor can be accessed externally. The two options have different trade-offs in terms of flexibility, genericity, and encapsulation. Definition at line 180 of file hash_policy.hpp. Constructor &; Destructor Documentation template<bool External_Load_Access, typename Size_Type > __gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type >::hash_load_check_resize_trigger (floatload_min = 0.125, floatload_max = 0.5) Default constructor, or constructor taking load_min and load_max load factors between which this policy will keep the actual load. Definition at line 47 of file hash_policy.hpp. Member Function Documentation template<bool External_Load_Access, typename Size_Type > std::pair< float, float > __gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type >::get_loads () const [inline] Returns a pair of the minimal and maximal loads, respectively. Definition at line 236 of file hash_policy.hpp. template<bool External_Load_Access, typename Size_Type > void __gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type >::notify_cleared () [protected] Notifies the table was cleared. Definition at line 206 of file hash_policy.hpp. template<bool External_Load_Access, typename Size_Type > void __gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type >::notify_inserted (size_typenum_entries) [inline], [protected] Notifies an element was inserted. The total number of entries in the table is num_entries. Definition at line 109 of file hash_policy.hpp. template<bool External_Load_Access, typename Size_Type > void __gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type >::notify_resized (size_typenew_size) [protected] Notifies the table was resized as a result of this object's signifying that a resize is needed. Definition at line 151 of file hash_policy.hpp. template<bool External_Load_Access, typename Size_Type > void __gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type >::set_loads (std::pair< float, float >load_pair) Sets the loads through a pair of the minimal and maximal loads, respectively. Definition at line 245 of file hash_policy.hpp. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ __gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type >(3)
Man Page