__gnu_pbds::sample_resize_trigger.3cxx
Contents
Constructor & Destructor Documentation
__gnu_pbds::sample_resize_trigger::sample_resize_trigger()
Default constructor.
Detailed Description
A sample resize trigger policy.
Member Function Documentation
bool__gnu_pbds::sample_resize_trigger::is_grow_needed(size_typesize,size_typenum_entries)const[inline],[protected]
Queries whether a grow is needed.
bool__gnu_pbds::sample_resize_trigger::is_resize_needed()const[inline],[protected]
Queries whether a resize is needed.
void__gnu_pbds::sample_resize_trigger::notify_cleared()[protected]
Notifies the table was cleared.
void__gnu_pbds::sample_resize_trigger::notify_erase_search_collision()[inline],[protected]
Notifies a search encountered a collision.
void__gnu_pbds::sample_resize_trigger::notify_erase_search_end()[inline],[protected]
Notifies a search ended.
void__gnu_pbds::sample_resize_trigger::notify_erase_search_start()[inline],[protected]
Notifies a search started.
void__gnu_pbds::sample_resize_trigger::notify_erased(size_typenum_entries)[inline],[protected]
Notifies an element was erased.
void__gnu_pbds::sample_resize_trigger::notify_externally_resized(size_typenew_size)[protected]
Notifies the table was resized externally.
void__gnu_pbds::sample_resize_trigger::notify_find_search_collision()[inline],[protected]
Notifies a search encountered a collision.
void__gnu_pbds::sample_resize_trigger::notify_find_search_end()[inline],[protected]
Notifies a search ended.
void__gnu_pbds::sample_resize_trigger::notify_find_search_start()[inline],[protected]
Notifies a search started.
void__gnu_pbds::sample_resize_trigger::notify_insert_search_collision()[inline],[protected]
Notifies a search encountered a collision.
void__gnu_pbds::sample_resize_trigger::notify_insert_search_end()[inline],[protected]
Notifies a search ended.
void__gnu_pbds::sample_resize_trigger::notify_insert_search_start()[inline],[protected]
Notifies a search started.
void__gnu_pbds::sample_resize_trigger::notify_inserted(size_typenum_entries)[inline],[protected]
Notifies an element was inserted. the total number of entries in the table is num_entries.
void__gnu_pbds::sample_resize_trigger::notify_resized(size_typenew_size)[protected]
Notifies the table was resized as a result of this object's signifying that a resize is needed.
__gnu_pbds::sample_resize_trigger::sample_range_hashing(constsample_resize_trigger&)
Copy constructor.
void__gnu_pbds::sample_resize_trigger::swap(sample_resize_trigger&)[inline]
Swaps content.
Member Typedef Documentation
typedefstd::size_t__gnu_pbds::sample_resize_trigger::size_type
Size type.
Name
__gnu_pbds::sample_resize_trigger - A sample resize trigger policy.
Synopsis
#include <sample_resize_trigger.hpp>
PublicTypes
typedef std::size_t size_type
Size type.
PublicMemberFunctionssample_resize_trigger ()
Default constructor.
sample_range_hashing (const sample_resize_trigger &)
Copy constructor.
void swap (sample_resize_trigger &)
Swaps content.
ProtectedMemberFunctions
bool is_grow_needed (size_type size, size_type num_entries) const
Queries whether a grow 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 a 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 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 a search started.
void notify_inserted (size_type num_entries)
Notifies an element was inserted. the total number of entries in the table is num_entries.
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.
