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

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

https://bitbucket.org/pizzafactory/pf-gcc
HTML | 163 lines | 128 code | 35 blank | 0 comment | 0 complexity | b06e2067f71684f287e0b6fa504d4591 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_size_policy 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_size_policy</tt> Interface</h1>
  14. <p>A sample size policy.</p>
  15. <p>This class serves to show the interface a size policy needs
  16. 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/resize_policy/sample_size_policy.hpp"><tt>sample_size_policy.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_size_policy
  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_range_hashing
  68. (<b>const</b> sample_size_policy &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_size_policy &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">Size 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>inline</b> <a href="#size_type55424436"><tt>size_type</tt></a>
  101. get_nearest_larger_size
  102. (<a href=
  103. "#size_type55424436"><tt>size_type</tt></a> size) <b>const</b>
  104. </pre>
  105. </td>
  106. <td>
  107. <p>Given a size <span class="c1"><tt>size</tt></span>,
  108. returns a size that is larger.</p>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td>
  113. <pre>
  114. <b>inline</b> <a href="#size_type55424436"><tt>size_type</tt></a>
  115. get_nearest_smaller_size
  116. (<a href=
  117. "#size_type55424436"><tt>size_type</tt></a> size) <b>const</b>
  118. </pre>
  119. </td>
  120. <td>
  121. <p>Given a size <span class="c1"><tt>size</tt></span>,
  122. returns a size that is smaller.</p>
  123. </td>
  124. </tr>
  125. </table>
  126. </div>
  127. </body>
  128. </html>