libstdc++
|
A sample resize trigger policy.
Definition at line 48 of file sample_resize_trigger.hpp.
typedef std::size_t __gnu_pbds::sample_resize_trigger::size_type |
Size type.
Definition at line 52 of file sample_resize_trigger.hpp.
Default constructor.
bool __gnu_pbds::sample_resize_trigger::is_grow_needed | ( | size_type | size, |
size_type | num_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_type | num_entries | ) | [inline, protected] |
Notifies an element was erased.
void __gnu_pbds::sample_resize_trigger::notify_externally_resized | ( | size_type | new_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_type | num_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_type | new_size | ) | [protected] |
Notifies the table was resized as a result of this object's signifying that a resize is needed.
Copy constructor.
void __gnu_pbds::sample_resize_trigger::swap | ( | sample_resize_trigger & | ) | [inline] |
Swaps content.