URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [docs/] [html/] [ext/] [pb_assoc/] [hash_prime_size_policy.html] - Rev 20
Compare with Previous | Blame | View Log
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>hash_prime_size_policy Interface </title> </head> <body> <h1> <tt>hash_prime_size_policy </tt> Interface </h1> <p>A size policy whose sequence of sizes form a nearly-exponential sequence of primes. </p> <ol> <li> <a href = "../../../../include/ext/pb_assoc/hash_policy.hpp"><tt>hash_policy.hpp</tt> </a> </li> <li> Public Types and Constants: <ol> <li> <a href = "#link1">General definitions. </a> </li> </ol> </li> <li> Public Methods: <ol> <li> <a href = "#link2">Constructors, destructor, and related. </a> </li> </ol> </li> <li> Protected Methods: <ol> <li> <a href = "#link3">Size methods </a> </li> </ol> </li> </ol> <h2> <a name = "link1">General definitions. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR> <tr> <td> <pre><a name = "size_type3735929547">size_type</a></pre> </td> <td> <pre>size_t</pre> </td> <td> <p>Size type.</p> </td> </tr> </table> <h2> <a name = "link2">Constructors, destructor, and related. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR> <tr> <td> <pre><b>inline</b> <b>void</b> swap (<font color = "olive">hash_prime_size_policy</font> &r_other)</pre> </td> <td> <p>Swaps content.</p> </td> </tr> </table> <h2> <a name = "link3">Size methods </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR> <tr> <td> <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a> get_init_size (<a href = "#size_type3735929547">size_type</a> suggested_size) <b>const</b></pre> </td> <td> <p>Given <font color = "#666666"><tt>suggested_size</tt></font>, a suggested size, returns an initial size of the container related to the initial size.</p> </td> </tr> <tr> <td> <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a> get_nearest_larger_size (<a href = "#size_type3735929547">size_type</a> cur_size) <b>const</b></pre> </td> <td> <p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is larger.</p> </td> </tr> <tr> <td> <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a> get_nearest_smaller_size (<a href = "#size_type3735929547">size_type</a> cur_size) <b>const</b></pre> </td> <td> <p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is smaller.</p> </td> </tr> </table> </body> </html>