.TH "__gnu_pbds::hash_standard_resize_policy< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >" 3cxx "Tue Jul 2 2019" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_pbds::hash_standard_resize_policy< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type > \- A resize policy which delegates operations to size and trigger policies\&. .SH SYNOPSIS .br .PP .PP Inherits Size_Policy, and Trigger_Policy\&. .SS "Public Types" .in +1c .ti -1c .RI "enum { \fBexternal_size_access\fP }" .br .ti -1c .RI "typedef Size_Policy \fBsize_policy\fP" .br .ti -1c .RI "typedef Size_Type \fBsize_type\fP" .br .ti -1c .RI "typedef Trigger_Policy \fBtrigger_policy\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBhash_standard_resize_policy\fP ()" .br .RI "Default constructor\&. " .ti -1c .RI "\fBhash_standard_resize_policy\fP (const Size_Policy &r_size_policy)" .br .RI "constructor taking some policies r_size_policy will be copied by the Size_Policy object of this object\&. " .ti -1c .RI "\fBhash_standard_resize_policy\fP (const Size_Policy &r_size_policy, const Trigger_Policy &r_trigger_policy)" .br .RI "constructor taking some policies\&. r_size_policy will be copied by the Size_Policy object of this object\&. r_trigger_policy will be copied by the Trigger_Policy object of this object\&. " .ti -1c .RI "size_type \fBget_actual_size\fP () const" .br .RI "Returns the actual size of the container\&. " .ti -1c .RI "Size_Policy & \fBget_size_policy\fP ()" .br .RI "Access to the Size_Policy object used\&. " .ti -1c .RI "const Size_Policy & \fBget_size_policy\fP () const" .br .RI "Const access to the Size_Policy object used\&. " .ti -1c .RI "Trigger_Policy & \fBget_trigger_policy\fP ()" .br .RI "Access to the Trigger_Policy object used\&. " .ti -1c .RI "const Trigger_Policy & \fBget_trigger_policy\fP () const" .br .RI "Access to the Trigger_Policy object used\&. " .ti -1c .RI "void \fBresize\fP (size_type suggested_new_size)" .br .RI "Resizes the container to suggested_new_size, a suggested size (the actual size will be determined by the Size_Policy object)\&. " .ti -1c .RI "void \fBswap\fP (\fBhash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type > &other)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "size_type \fBget_new_size\fP (size_type size, size_type num_used_e) const" .br .RI "Queries what the new size should be, when the container is resized naturally\&. The current __size of the container is size, and the number of used entries within the container is num_used_e\&. " .ti -1c .RI "bool \fBis_resize_needed\fP () const" .br .ti -1c .RI "void \fBnotify_cleared\fP ()" .br .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_e)" .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_e)" .br .ti -1c .RI "void \fBnotify_resized\fP (size_type new_size)" .br .in -1c .SH "Detailed Description" .PP .SS "template, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t> .br class __gnu_pbds::hash_standard_resize_policy< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >" A resize policy which delegates operations to size and trigger policies\&. .PP Definition at line 489 of file hash_policy\&.hpp\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::\fBhash_standard_resize_policy\fP ()" .PP Default constructor\&. .PP Definition at line 44 of file hash_policy\&.hpp\&. .SS "template \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::\fBhash_standard_resize_policy\fP (const Size_Policy & r_size_policy)" .PP constructor taking some policies r_size_policy will be copied by the Size_Policy object of this object\&. .PP Definition at line 50 of file hash_policy\&.hpp\&. .SS "template \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::\fBhash_standard_resize_policy\fP (const Size_Policy & r_size_policy, const Trigger_Policy & r_trigger_policy)" .PP constructor taking some policies\&. r_size_policy will be copied by the Size_Policy object of this object\&. r_trigger_policy will be copied by the Trigger_Policy object of this object\&. .PP Definition at line 56 of file hash_policy\&.hpp\&. .SH "Member Function Documentation" .PP .SS "template \fBhash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::size_type \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::get_actual_size () const\fC [inline]\fP" .PP Returns the actual size of the container\&. .PP Definition at line 177 of file hash_policy\&.hpp\&. .SS "template \fBhash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::size_type \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::get_new_size (size_type size, size_type num_used_e) const\fC [protected]\fP" .PP Queries what the new size should be, when the container is resized naturally\&. The current __size of the container is size, and the number of used entries within the container is num_used_e\&. .PP Definition at line 158 of file hash_policy\&.hpp\&. .SS "template Size_Policy & \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::get_size_policy ()" .PP Access to the Size_Policy object used\&. .PP Definition at line 242 of file hash_policy\&.hpp\&. .SS "template const Size_Policy & \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::get_size_policy () const" .PP Const access to the Size_Policy object used\&. .PP Definition at line 248 of file hash_policy\&.hpp\&. .SS "template Trigger_Policy & \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::get_trigger_policy ()" .PP Access to the Trigger_Policy object used\&. .PP Definition at line 230 of file hash_policy\&.hpp\&. .SS "template const Trigger_Policy & \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::get_trigger_policy () const" .PP Access to the Trigger_Policy object used\&. .PP Definition at line 236 of file hash_policy\&.hpp\&. .SS "template void \fB__gnu_pbds::hash_standard_resize_policy\fP< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >::resize (size_type suggested_new_size)" .PP Resizes the container to suggested_new_size, a suggested size (the actual size will be determined by the Size_Policy object)\&. .PP Definition at line 186 of file hash_policy\&.hpp\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.