|
STLdoc
STLdocumentation
|
A sample resize trigger policy. More...
#include <ext/pb_ds/detail/resize_policy/sample_resize_trigger.hpp>
Public Types | |
| typedef std::size_t | size_type |
| Size type. More... | |
Public Member Functions | |
| sample_resize_trigger () | |
| Default constructor. More... | |
| sample_range_hashing (const sample_resize_trigger &) | |
| Copy constructor. More... | |
| void | swap (sample_resize_trigger &) |
| Swaps content. More... | |
Protected Member Functions | |
| void | notify_insert_search_start () |
| Notifies a search started. More... | |
| void | notify_insert_search_collision () |
| Notifies a search encountered a collision. More... | |
| void | notify_insert_search_end () |
| Notifies a search ended. More... | |
| void | notify_find_search_start () |
| Notifies a search started. More... | |
| void | notify_find_search_collision () |
| Notifies a search encountered a collision. More... | |
| void | notify_find_search_end () |
| Notifies a search ended. More... | |
| void | notify_erase_search_start () |
| Notifies a search started. More... | |
| void | notify_erase_search_collision () |
| Notifies a search encountered a collision. More... | |
| void | notify_erase_search_end () |
| Notifies a search ended. More... | |
| void | notify_inserted (size_type num_entries) |
| void | notify_erased (size_type num_entries) |
| Notifies an element was erased. More... | |
| void | notify_cleared () |
| Notifies the table was cleared. More... | |
| void | notify_resized (size_type new_size) |
| void | notify_externally_resized (size_type new_size) |
| Notifies the table was resized externally. More... | |
| bool | is_resize_needed () const |
| Queries whether a resize is needed. More... | |
| bool | is_grow_needed (size_type size, size_type num_entries) const |
| Queries whether a grow is needed. More... | |
Private Member Functions | |
| virtual void | do_resize (size_type) |
| Resizes to new_size. More... | |
A sample resize trigger policy.
Size type.
| __gnu_pbds::sample_resize_trigger::sample_resize_trigger | ( | ) |
Default constructor.
|
privatevirtual |
Resizes to new_size.
|
inlineprotected |
Queries whether a grow is needed.
|
inlineprotected |
Queries whether a resize is needed.
|
protected |
Notifies the table was cleared.
|
inlineprotected |
Notifies a search encountered a collision.
|
inlineprotected |
Notifies a search ended.
|
inlineprotected |
Notifies a search started.
|
inlineprotected |
Notifies an element was erased.
|
protected |
Notifies the table was resized externally.
|
inlineprotected |
Notifies a search encountered a collision.
|
inlineprotected |
Notifies a search ended.
|
inlineprotected |
Notifies a search started.
|
inlineprotected |
Notifies a search encountered a collision.
|
inlineprotected |
Notifies a search ended.
|
inlineprotected |
Notifies a search started.
|
inlineprotected |
Notifies an element was inserted. the total number of entries in the table is num_entries.
|
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 | ( | const sample_resize_trigger & | ) |
Copy constructor.
|
inline |
Swaps content.
1.8.6