PageRenderTime 28ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/pizzafactory/pf-gcc
HTML | 171 lines | 133 code | 38 blank | 0 comment | 0 complexity | ad081d0826fe663063a26dec72502d96 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>sample_ranged_hash_fn 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>sample_ranged_hash_fn</tt> Interface</h1>
  14. <p>A sample ranged-hash functor.</p>
  15. <p>This class serves to show the interface a ranged-hash
  16. functor needs to support.</p>
  17. <p>Defined in: <a href=
  18. "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>
  19. <h2><a name="link1" id="link1">Public Types and
  20. Constants</a></h2>
  21. <h3><a name="link2" id="link2">General definitions.</a></h3>
  22. <table class="c1" width="100%" border="1" summary="Types">
  23. <tr>
  24. <td width="30%" align="left"><b>Type</b></td>
  25. <td width="55%" align="left"><b>Definition</b></td>
  26. <td width="15%" align="left"><b>Description</b></td>
  27. </tr>
  28. <tr>
  29. <td>
  30. <pre>
  31. <a name="size_type55424436" id="size_type55424436">size_type</a>
  32. </pre>
  33. </td>
  34. <td>
  35. <pre>
  36. size_t, e.g.
  37. </pre>
  38. </td>
  39. <td>
  40. <p>Size type.</p>
  41. </td>
  42. </tr>
  43. </table>
  44. <h2><a name="link3" id="link3">Public Methods</a></h2>
  45. <h3><a name="link4" id="link4">Constructors, destructor, and
  46. related.</a></h3>
  47. <table class="c1" width="100%" border="1" summary="Methods">
  48. <tr>
  49. <td width="45%" align="left"><b>Method</b></td>
  50. <td width="55%" align="left"><b>Description</b></td>
  51. </tr>
  52. <tr>
  53. <td>
  54. <pre>
  55. sample_ranged_hash_fn
  56. ()
  57. </pre>
  58. </td>
  59. <td>
  60. <p>Default constructor.</p>
  61. <p>Must be default constructable.</p>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td>
  66. <pre>
  67. sample_ranged_hash_fn
  68. (<b>const</b> sample_ranged_hash_fn &amp;other)
  69. </pre>
  70. </td>
  71. <td>
  72. <p>Copy constructor.</p>
  73. <p>Must be copy constructable.</p>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td>
  78. <pre>
  79. <b>inline</b> <b>void</b>
  80. swap
  81. (sample_ranged_hash_fn &amp;other)
  82. </pre>
  83. </td>
  84. <td>
  85. <p>Swaps content.</p>
  86. <p>Must be swappable (if there is such a word).</p>
  87. </td>
  88. </tr>
  89. </table>
  90. <h2><a name="link5" id="link5">Protected Methods</a></h2>
  91. <h3><a name="link6" id="link6">Notification methods.</a></h3>
  92. <table class="c1" width="100%" border="1" summary="Methods">
  93. <tr>
  94. <td width="45%" align="left"><b>Method</b></td>
  95. <td width="55%" align="left"><b>Description</b></td>
  96. </tr>
  97. <tr>
  98. <td>
  99. <pre>
  100. <b>void</b>
  101. notify_resized
  102. (<a href="#size_type55424436"><tt>size_type</tt></a> size)
  103. </pre>
  104. </td>
  105. <td>
  106. <p>Notifies the policy object that the container's size
  107. has changed to <span class="c1"><tt>size</tt></span>.</p>
  108. </td>
  109. </tr>
  110. </table>
  111. <h3><a name="link7" id="link7">Operators.</a></h3>
  112. <table class="c1" width="100%" border="1" summary="Methods">
  113. <tr>
  114. <td width="45%" align="left"><b>Method</b></td>
  115. <td width="55%" align="left"><b>Description</b></td>
  116. </tr>
  117. <tr>
  118. <td>
  119. <pre>
  120. <b>inline</b> <a href="#size_type55424436"><tt>size_type</tt></a>
  121. <b>operator</b>()
  122. (const_key_reference r_key) <b>const</b>
  123. </pre>
  124. </td>
  125. <td>
  126. <p>Transforms <span class="c1"><tt>r_key</tt></span> into
  127. a position within the table.</p>
  128. </td>
  129. </tr>
  130. </table>
  131. </div>
  132. </body>
  133. </html>