GNU g++  v5.2.1
GNU Standard C++
__gnu_pbds::sample_resize_policy Class Reference

A sample resize policy. More...

#include <sample_resize_policy.hpp>

Public Types

typedef std::size_t size_type
 Size type. More...
 

Public Member Functions

 sample_resize_policy ()
 Default constructor. More...
 
 sample_range_hashing (const sample_resize_policy &other)
 Copy constructor. More...
 
void swap (sample_resize_policy &other)
 Swaps content. More...
 

Protected Member Functions

size_type get_new_size (size_type size, size_type num_used_e) const
 Queries what the new size should be. More...
 
bool is_resize_needed () const
 Queries whether a resize is needed. More...
 
void notify_cleared ()
 Notifies the table was cleared. 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_erase_search_start ()
 Notifies a search started. More...
 
void notify_erased (size_type num_e)
 Notifies an element was erased. 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_find_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_insert_search_start ()
 Notifies a search started. More...
 
void notify_inserted (size_type num_e)
 Notifies an element was inserted. More...
 
void notify_resized (size_type new_size)
 Notifies the table was resized to new_size. More...
 

Detailed Description

A sample resize policy.

Member Typedef Documentation

Size type.

Constructor & Destructor Documentation

__gnu_pbds::sample_resize_policy::sample_resize_policy ( )

Default constructor.

Member Function Documentation

size_type __gnu_pbds::sample_resize_policy::get_new_size ( size_type  size,
size_type  num_used_e 
) const
protected

Queries what the new size should be.

bool __gnu_pbds::sample_resize_policy::is_resize_needed ( ) const
inlineprotected

Queries whether a resize is needed.

void __gnu_pbds::sample_resize_policy::notify_cleared ( )
protected

Notifies the table was cleared.

void __gnu_pbds::sample_resize_policy::notify_erase_search_collision ( )
inlineprotected

Notifies a search encountered a collision.

void __gnu_pbds::sample_resize_policy::notify_erase_search_end ( )
inlineprotected

Notifies a search ended.

void __gnu_pbds::sample_resize_policy::notify_erase_search_start ( )
inlineprotected

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_erased ( size_type  num_e)
inlineprotected

Notifies an element was erased.

void __gnu_pbds::sample_resize_policy::notify_find_search_collision ( )
inlineprotected

Notifies a search encountered a collision.

void __gnu_pbds::sample_resize_policy::notify_find_search_end ( )
inlineprotected

Notifies a search ended.

void __gnu_pbds::sample_resize_policy::notify_find_search_start ( )
inlineprotected

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_insert_search_collision ( )
inlineprotected

Notifies a search encountered a collision.

void __gnu_pbds::sample_resize_policy::notify_insert_search_end ( )
inlineprotected

Notifies a search ended.

void __gnu_pbds::sample_resize_policy::notify_insert_search_start ( )
inlineprotected

Notifies a search started.

void __gnu_pbds::sample_resize_policy::notify_inserted ( size_type  num_e)
inlineprotected

Notifies an element was inserted.

void __gnu_pbds::sample_resize_policy::notify_resized ( size_type  new_size)
protected

Notifies the table was resized to new_size.

__gnu_pbds::sample_resize_policy::sample_range_hashing ( const sample_resize_policy other)

Copy constructor.

void __gnu_pbds::sample_resize_policy::swap ( sample_resize_policy other)
inline

Swaps content.


The documentation for this class was generated from the following file: