PageRenderTime 51ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/libstdc++-v3/doc/html/ext/pb_ds/direct_mod_range_hashing.html

https://bitbucket.org/pizzafactory/pf-gcc
HTML | 144 lines | 111 code | 33 blank | 0 comment | 0 complexity | 591e14c8319a7b66b7e5f256f60b5934 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta name="generator" content=
  6. "HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org" />
  7. <title>direct_mod_range_hashing Interface</title>
  8. <meta http-equiv="Content-Type" content=
  9. "text/html; charset=us-ascii" />
  10. </head>
  11. <body>
  12. <div id="page">
  13. <h1><tt>direct_mod_range_hashing</tt> Interface</h1>
  14. <p>A mod range-hashing class (uses the modulo function).</p>
  15. <p>Defined in: <a href=
  16. "http://gcc.gnu.org/viewcvs/*checkout*/trunk/libstdc%2B%2B-v3/include/ext/pb_ds/hash_policy.hpp"><tt>hash_policy.hpp</tt></a></p>
  17. <h2><a name="link1" id="link1">Template Parameters</a></h2>
  18. <table class="c1" width="100%" border="1" summary=
  19. "Template Parameters">
  20. <tr>
  21. <td width="20%" align="left"><b>Parameter</b></td>
  22. <td width="50%" align="left"><b>Description</b></td>
  23. <td width="30%" align="left"><b>Default Value</b></td>
  24. </tr>
  25. <tr>
  26. <td>
  27. <pre>
  28. <a name="Size_Type42920436" id=
  29. "Size_Type42920436"><b>typename</b> Size_Type </a>
  30. </pre>
  31. </td>
  32. <td>
  33. <p>Size type.</p>
  34. </td>
  35. <td>size_t</td>
  36. </tr>
  37. </table>
  38. <h2><a name="link2" id="link2">Public Types and
  39. Constants</a></h2>
  40. <h3><a name="link3" id="link3">General Definitions</a></h3>
  41. <table class="c1" width="100%" border="1" summary="Types">
  42. <tr>
  43. <td width="30%" align="left"><b>Type</b></td>
  44. <td width="55%" align="left"><b>Definition</b></td>
  45. <td width="15%" align="left"><b>Description</b></td>
  46. </tr>
  47. <tr>
  48. <td>
  49. <pre>
  50. <a name="size_type55424436" id="size_type55424436">size_type</a>
  51. </pre>
  52. </td>
  53. <td>
  54. <pre>
  55. <a href="#Size_Type42920436"><tt>Size_Type</tt></a>
  56. </pre>
  57. </td>
  58. <td>
  59. <p>Size type.</p>
  60. </td>
  61. </tr>
  62. </table>
  63. <h2><a name="link4" id="link4">Public Methods</a></h2>
  64. <h3><a name="link5" id="link5">Constructors, Destructor, and
  65. Related</a></h3>
  66. <table class="c1" width="100%" border="1" summary="Methods">
  67. <tr>
  68. <td width="45%" align="left"><b>Method</b></td>
  69. <td width="55%" align="left"><b>Description</b></td>
  70. </tr>
  71. <tr>
  72. <td>
  73. <pre>
  74. <b>void</b>
  75. swap
  76. (<span class=
  77. "c2"><tt>direct_mod_range_hashing</tt></span> &amp;other)
  78. </pre>
  79. </td>
  80. <td>
  81. <p>Swaps content.</p>
  82. </td>
  83. </tr>
  84. </table>
  85. <h2><a name="link6" id="link6">Protected Methods</a></h2>
  86. <h3><a name="link7" id="link7">Notification Methods</a></h3>
  87. <h3><a name="link8" id="link8">Operators.</a></h3>
  88. <table class="c1" width="100%" border="1" summary="Methods">
  89. <tr>
  90. <td width="45%" align="left"><b>Method</b></td>
  91. <td width="55%" align="left"><b>Description</b></td>
  92. </tr>
  93. <tr>
  94. <td>
  95. <pre>
  96. <b>inline</b> <a href="#size_type55424436"><tt>size_type</tt></a>
  97. <b>operator</b>()
  98. (<a href=
  99. "#size_type55424436"><tt>size_type</tt></a> hash) <b>const</b>
  100. </pre>
  101. </td>
  102. <td>
  103. <p>Transforms the hash value <span class=
  104. "c1"><tt>hash</tt></span> into a ranged-hash value (using
  105. a modulo operation).</p>
  106. </td>
  107. </tr>
  108. </table>
  109. </div>
  110. </body>
  111. </html>