SYNOPSIS

Public Types

typedef std::size_t size_type

Public Member Functions

sample_resize_policy ()

sample_range_hashing (const sample_resize_policy &other)

void swap (sample_resize_policy &other)

Protected Member Functions

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)

Detailed Description

A sample resize policy.

Definition at line 47 of file sample_resize_policy.hpp.

Member Typedef Documentation

typedef std::size_t \fB__gnu_pbds::sample_resize_policy::size_type\fP

Size type.

Definition at line 51 of file sample_resize_policy.hpp.

Constructor & Destructor Documentation

__gnu_pbds::sample_resize_policy::sample_resize_policy ()

Default constructor.

Member Function Documentation

\fBsize_type\fP __gnu_pbds::sample_resize_policy::get_new_size (\fBsize_type\fPsize, \fBsize_type\fPnum_used_e) const\fC [protected]\fP

Queries what the new size should be.

bool __gnu_pbds::sample_resize_policy::is_resize_needed () const\fC [inline]\fP, \fC [protected]\fP

Queries whether a resize is needed.

void __gnu_pbds::sample_resize_policy::notify_cleared ()\fC [protected]\fP

Notifies the table was cleared.

void __gnu_pbds::sample_resize_policy::notify_erase_search_collision ()\fC [inline]\fP, \fC [protected]\fP

Notifies a search encountered a collision.

void __gnu_pbds::sample_resize_policy::notify_erase_search_end ()\fC [inline]\fP, \fC [protected]\fP

Notifies a search ended.

void __gnu_pbds::sample_resize_policy::notify_erase_search_start ()\fC [inline]\fP, \fC [protected]\fP

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_erased (\fBsize_type\fPnum_e)\fC [inline]\fP, \fC [protected]\fP

Notifies an element was erased.

void __gnu_pbds::sample_resize_policy::notify_find_search_collision ()\fC [inline]\fP, \fC [protected]\fP

Notifies a search encountered a collision.

void __gnu_pbds::sample_resize_policy::notify_find_search_end ()\fC [inline]\fP, \fC [protected]\fP

Notifies a search ended.

void __gnu_pbds::sample_resize_policy::notify_find_search_start ()\fC [inline]\fP, \fC [protected]\fP

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_insert_search_collision ()\fC [inline]\fP, \fC [protected]\fP

Notifies a search encountered a collision.

void __gnu_pbds::sample_resize_policy::notify_insert_search_end ()\fC [inline]\fP, \fC [protected]\fP

Notifies a search ended.

void __gnu_pbds::sample_resize_policy::notify_insert_search_start ()\fC [inline]\fP, \fC [protected]\fP

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_inserted (\fBsize_type\fPnum_e)\fC [inline]\fP, \fC [protected]\fP

Notifies an element was inserted.

void __gnu_pbds::sample_resize_policy::notify_resized (\fBsize_type\fPnew_size)\fC [protected]\fP

Notifies the table was resized to new_size.

__gnu_pbds::sample_resize_policy::sample_range_hashing (const \fBsample_resize_policy\fP &other)

Copy constructor.

void __gnu_pbds::sample_resize_policy::swap (\fBsample_resize_policy\fP &other)\fC [inline]\fP

Swaps content.

Author

Generated automatically by Doxygen for libstdc++ from the source code.