sample_range_hashing Interface

A sample range-hashing functor.

This class serves to show the interface a range-hashing functor needs to support.

  1. sample_range_hashing.hpp
  2. Public Methods:
    1. Constructors, destructor, and related.
  3. Protected Methods:
    1. Notification methods.
    2. Operators.

Constructors, destructor, and related.

MethodDescription
  sample_range_hashing
  ()

Default constructor.

Must be default constructible.

  sample_range_hashing
  (const sample_range_hashing &r_other)

Copy constructor.

Must be copy constructible.

inline void
  swap
  (sample_range_hashing &r_other)

Swaps content.

Must be swappable (if there is such a word).

Notification methods.

MethodDescription
void
  notify_resized
  (size_type size)

Notifies the policy object that the container's size has changed to size.

size_type is the size type on which the functor operates.

Operators.

MethodDescription
*  comment = "@@sample_range_hashing_size_type_comment">
**/
inline size_type
  operator()
  (size_type hash) const

Transforms the hash value hash into a ranged-hash value.