Inherits Size_Policy, and Trigger_Policy.
|
enum | { external_size_access
} |
|
typedef Size_Policy | size_policy |
|
typedef Size_Type | size_type |
|
typedef Trigger_Policy | trigger_policy |
|
|
size_type | get_new_size (size_type size, size_type num_used_e) 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_e) |
|
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_e) |
|
void | notify_resized (size_type new_size) |
|
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
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.
Definition at line 489 of file hash_policy.hpp.
◆ hash_standard_resize_policy() [1/3]
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
◆ hash_standard_resize_policy() [2/3]
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
constructor taking some policies r_size_policy will be copied by the Size_Policy object of this object.
◆ hash_standard_resize_policy() [3/3]
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
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.
◆ get_actual_size()
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
Returns the actual size of the container.
◆ get_new_size()
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
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.
◆ get_size_policy() [1/2]
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
Access to the Size_Policy object used.
◆ get_size_policy() [2/2]
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
Const access to the Size_Policy object used.
◆ get_trigger_policy() [1/2]
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
Access to the Trigger_Policy object used.
◆ get_trigger_policy() [2/2]
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
Access to the Trigger_Policy object used.
◆ resize()
template<typename Size_Policy = hash_exponential_size_policy<>, typename Trigger_Policy = hash_load_check_resize_trigger<>, bool External_Size_Access = false, typename Size_Type = std::size_t>
Resizes the container to suggested_new_size, a suggested size (the actual size will be determined by the Size_Policy object).
The documentation for this class was generated from the following file: