2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
7 <title>sample_range_hashing Interface
14 <tt>sample_range_hashing
22 <p>A sample range-hashing functor.
25 <p>This class serves to show the interface a range-hashing functor needs to support.
30 <a href = "../doc/sample_range_hashing.hpp"><tt>sample_range_hashing.hpp</tt>
41 <a href = "#link1">Constructors, destructor, and related.
56 <a href = "#link2">Notification methods.
62 <a href = "#link3">Operators.
75 <a name = "link1">Constructors, destructor, and related.
80 <table WIDTH = "100%" BORDER = "1">
81 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
86 <pre> sample_range_hashing
93 <p>Default constructor.</p>
96 <p>Must be default constructible.</p>
105 <pre> sample_range_hashing
106 (<b>const</b> sample_range_hashing &r_other)</pre>
112 <p>Copy constructor.</p>
115 <p>Must be copy constructible.</p>
124 <pre><b>inline</b> <b>void</b>
126 (sample_range_hashing &r_other)</pre>
132 <p>Swaps content.</p>
135 <p>Must be swappable (if there is such a word).</p>
145 <a name = "link2">Notification methods.
150 <table WIDTH = "100%" BORDER = "1">
151 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
158 (size_type size)</pre>
164 <p>Notifies the policy object that the container's size has changed to <font color = "#666666"><tt>size</tt></font>.</p>
167 <p><p><tt>size_type</tt> is the size type on which the functor operates.</p></p>
177 <a name = "link3">Operators.
182 <table WIDTH = "100%" BORDER = "1">
183 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
188 <pre>* comment = "@@sample_range_hashing_size_type_comment">
190 <b>inline</b> size_type
192 (size_type hash) <b>const</b></pre>
198 <p>Transforms the hash value <font color = "#666666"><tt>hash</tt></font> into a ranged-hash value.</p>