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_exponential_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_exponential_size_policy Interface </title> </head> <body> <h1> <tt>hash_exponential_size_policy </tt> Interface </h1> <p>A size policy whose sequence of sizes form an exponential sequence (typically powers of 2) </p> <ol> <li> <a href = "../../../../include/ext/pb_assoc/hash_policy.hpp"><tt>hash_policy.hpp</tt> </a> </li> <li> <a href = "#link1">Template parameters. </a> </li> <li> Public Types and Constants: <ol> <li> <a href = "#link2">General definitions. </a> </li> </ol> </li> <li> Public Methods: <ol> <li> <a href = "#link3">Constructors, destructors, and related methods. </a> </li> </ol> </li> <li> Protected Methods: <ol> <li> <a href = "#link4">Size methods </a> </li> </ol> </li> </ol> <h2> <a name = "link1">Template parameters. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "20%" ALIGN = "left"><b>Parameter</b></TD><TD Width = "50%" ALIGN = "left"><b>Description</b></TD><TD Width = "30%" ALIGN = "left"><b>Default Value</b></TD></TR> <tr> <td> <pre><a name = "Size_Type3735929483">Size_Type</a></pre> </td> <td> <p>Size type.</p> </td> <td> size_t </td> </tr> </table> <h2> <a name = "link2">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><a href = "#Size_Type3735929483">Size_Type</a></pre> </td> <td> <p>Size type.</p> </td> </tr> </table> <h2> <a name = "link3">Constructors, destructors, and related 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> hash_exponential_size_policy (<a href = "#size_type3735929547">size_type</a> start_size = 8, <a href = "#size_type3735929547">size_type</a> grow_factor = 2)</pre> </td> <td> <p>Default constructor, or onstructor taking a <font color = "#666666"><tt>start_size</tt></font>, a start size and <font color = "#666666"><tt>grow_factor</tt></font>, a growth factor. The policy will use the sequence of sizes <font color = "#666666"><tt>start_size</tt></font>, <font color = "#666666"><tt>start_size</tt></font> * <font color = "#666666"><tt>grow_factor</tt></font>, <font color = "#666666"><tt>start_size</tt></font> * <font color = "#666666"><tt>grow_factor</tt></font>^2, ...</p> </td> </tr> <tr> <td> <pre><b>void</b> swap (<font color = "olive">hash_exponential_size_policy</font> &r_other)</pre> </td> <td> <p>Swaps content.</p> </td> </tr> </table> <h2> <a name = "link4">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><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><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><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>