1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <meta name="generator" content=
7 "HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org" />
9 <title>sample_ranged_hash_fn Interface</title>
10 <meta http-equiv="Content-Type" content=
11 "text/html; charset=us-ascii" />
16 <h1><tt>sample_ranged_hash_fn</tt> Interface</h1>
18 <p>A sample ranged-hash functor.</p>
20 <p>This class serves to show the interface a ranged-hash
21 functor needs to support.</p>
23 <p>Defined in: <a href=
24 "http://gcc.gnu.org/viewcvs/*checkout*/trunk/libstdc%2B%2B-v3/include/ext/pb_ds/detail/hash_fn/sample_ranged_hash_fn.hpp"><tt>sample_ranged_hash_fn.hpp</tt></a></p>
26 <h2><a name="link1" id="link1">Public Types and
29 <h3><a name="link2" id="link2">General definitions.</a></h3>
31 <table class="c1" width="100%" border="1" summary="Types">
33 <td width="30%" align="left"><b>Type</b></td>
35 <td width="55%" align="left"><b>Definition</b></td>
37 <td width="15%" align="left"><b>Description</b></td>
43 <a name="size_type55424436" id="size_type55424436">size_type</a>
59 <h2><a name="link3" id="link3">Public Methods</a></h2>
61 <h3><a name="link4" id="link4">Constructors, destructor, and
64 <table class="c1" width="100%" border="1" summary="Methods">
66 <td width="45%" align="left"><b>Method</b></td>
68 <td width="55%" align="left"><b>Description</b></td>
80 <p>Default constructor.</p>
82 <p>Must be default constructable.</p>
90 (<b>const</b> sample_ranged_hash_fn &other)
95 <p>Copy constructor.</p>
97 <p>Must be copy constructable.</p>
104 <b>inline</b> <b>void</b>
106 (sample_ranged_hash_fn &other)
111 <p>Swaps content.</p>
113 <p>Must be swappable (if there is such a word).</p>
118 <h2><a name="link5" id="link5">Protected Methods</a></h2>
120 <h3><a name="link6" id="link6">Notification methods.</a></h3>
122 <table class="c1" width="100%" border="1" summary="Methods">
124 <td width="45%" align="left"><b>Method</b></td>
126 <td width="55%" align="left"><b>Description</b></td>
134 (<a href="#size_type55424436"><tt>size_type</tt></a> size)
139 <p>Notifies the policy object that the container's size
140 has changed to <span class="c1"><tt>size</tt></span>.</p>
145 <h3><a name="link7" id="link7">Operators.</a></h3>
147 <table class="c1" width="100%" border="1" summary="Methods">
149 <td width="45%" align="left"><b>Method</b></td>
151 <td width="55%" align="left"><b>Description</b></td>
157 <b>inline</b> <a href="#size_type55424436"><tt>size_type</tt></a>
159 (const_key_reference r_key) <b>const</b>
164 <p>Transforms <span class="c1"><tt>r_key</tt></span> into
165 a position within the table.</p>