.TH "__gnu_pbds::hash_load_check_resize_trigger< External_Load_Access, Size_Type >" 3cxx "Wed Jul 14 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __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\&. .SH SYNOPSIS .br .PP .PP Inherits \fB__gnu_pbds::detail::hash_load_check_resize_trigger_size_base< std::size_t, false >\fP\&. .PP Inherited by \fB__gnu_pbds::hash_standard_resize_policy< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum { \fBexternal_load_access\fP }" .br .ti -1c .RI "typedef Size_Type \fBsize_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBhash_load_check_resize_trigger\fP (float load_min=0\&.125, float load_max=0\&.5)" .br .RI "Default constructor, or constructor taking load_min and load_max load factors between which this policy will keep the actual load\&. " .ti -1c .RI "\fBstd::pair\fP< float, float > \fBget_loads\fP () const" .br .RI "Returns a pair of the minimal and maximal loads, respectively\&. " .ti -1c .RI "void \fBset_loads\fP (\fBstd::pair\fP< float, float > load_pair)" .br .RI "Sets the loads through a pair of the minimal and maximal loads, respectively\&. " .ti -1c .RI "void \fBswap\fP (\fBhash_load_check_resize_trigger\fP &other)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "bool \fBis_grow_needed\fP (size_type size, size_type num_entries) const" .br .ti -1c .RI "bool \fBis_resize_needed\fP () const" .br .ti -1c .RI "void \fBnotify_cleared\fP ()" .br .RI "Notifies the table was cleared\&. " .ti -1c .RI "void \fBnotify_erase_search_collision\fP ()" .br .ti -1c .RI "void \fBnotify_erase_search_end\fP ()" .br .ti -1c .RI "void \fBnotify_erase_search_start\fP ()" .br .ti -1c .RI "void \fBnotify_erased\fP (size_type num_entries)" .br .ti -1c .RI "void \fBnotify_externally_resized\fP (size_type new_size)" .br .ti -1c .RI "void \fBnotify_find_search_collision\fP ()" .br .ti -1c .RI "void \fBnotify_find_search_end\fP ()" .br .ti -1c .RI "void \fBnotify_find_search_start\fP ()" .br .ti -1c .RI "void \fBnotify_insert_search_collision\fP ()" .br .ti -1c .RI "void \fBnotify_insert_search_end\fP ()" .br .ti -1c .RI "void \fBnotify_insert_search_start\fP ()" .br .ti -1c .RI "void \fBnotify_inserted\fP (size_type num_entries)" .br .RI "Notifies an element was inserted\&. The total number of entries in the table is num_entries\&. " .ti -1c .RI "void \fBnotify_resized\fP (size_type new_size)" .br .RI "Notifies the table was resized as a result of this object's signifying that a resize is needed\&. " .in -1c .SH "Detailed Description" .PP .SS "template .br 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\&. .PP Definition at line 175 of file hash_policy\&.hpp\&. .SH "Member Enumeration Documentation" .PP .SS "template anonymous enum" .PP \fBEnumerator\fP .in +1c .TP \fB\fIexternal_load_access \fP\fP Specifies whether the load factor can be accessed externally\&. The two options have different trade-offs in terms of flexibility, genericity, and encapsulation\&. .PP Definition at line 180 of file hash_policy\&.hpp\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fB__gnu_pbds::hash_load_check_resize_trigger\fP< External_Load_Access, Size_Type >::\fBhash_load_check_resize_trigger\fP (float load_min = \fC0\&.125\fP, float load_max = \fC0\&.5\fP)" .PP Default constructor, or constructor taking load_min and load_max load factors between which this policy will keep the actual load\&. .SH "Member Function Documentation" .PP .SS "template \fBstd::pair\fP \fB__gnu_pbds::hash_load_check_resize_trigger\fP< External_Load_Access, Size_Type >::get_loads () const\fC [inline]\fP" .PP Returns a pair of the minimal and maximal loads, respectively\&. .SS "template void \fB__gnu_pbds::hash_load_check_resize_trigger\fP< External_Load_Access, Size_Type >::notify_cleared ()\fC [protected]\fP" .PP Notifies the table was cleared\&. .SS "template void \fB__gnu_pbds::hash_load_check_resize_trigger\fP< External_Load_Access, Size_Type >::notify_inserted (size_type num_entries)\fC [inline]\fP, \fC [protected]\fP" .PP Notifies an element was inserted\&. The total number of entries in the table is num_entries\&. .SS "template void \fB__gnu_pbds::hash_load_check_resize_trigger\fP< External_Load_Access, Size_Type >::notify_resized (size_type new_size)\fC [protected]\fP" .PP Notifies the table was resized as a result of this object's signifying that a resize is needed\&. .SS "template void \fB__gnu_pbds::hash_load_check_resize_trigger\fP< External_Load_Access, Size_Type >::set_loads (\fBstd::pair\fP< float, float > load_pair)" .PP Sets the loads through a pair of the minimal and maximal loads, respectively\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.