PageRenderTime 55ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/pizzafactory/pf-gcc
HTML | 231 lines | 188 code | 43 blank | 0 comment | 0 complexity | c9b2cd05d58977992f410d2639d3ef70 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_trie_e_access_traits 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_trie_e_access_traits</tt> Interface</h1>
  14. <p>A sample trie element-access traits.</p>
  15. <p>This class serves to show the interface an element- access
  16. traits class 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/trie_policy/sample_trie_e_access_traits.hpp">
  19. <tt>sample_trie_e_access_traits.hpp</tt></a></p>
  20. <h2><a name="link1" id="link1">Public Types and
  21. Constants</a></h2>
  22. <h3><a name="link2" id="link2">General definitions.</a></h3>
  23. <table class="c1" width="100%" border="1" summary="Types">
  24. <tr>
  25. <td width="30%" align="left"><b>Type</b></td>
  26. <td width="55%" align="left"><b>Definition</b></td>
  27. <td width="15%" align="left"><b>Description</b></td>
  28. </tr>
  29. <tr>
  30. <td>
  31. <pre>
  32. <a name="size_type55424436" id="size_type55424436">size_type</a>
  33. </pre>
  34. </td>
  35. <td>
  36. <pre>
  37. size_t, e.g.
  38. </pre>
  39. </td>
  40. <td>
  41. <p>Size type.</p>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td>
  46. <pre>
  47. <a name="key_type10393186" id="key_type10393186">key_type</a>
  48. </pre>
  49. </td>
  50. <td>
  51. <pre>
  52. std::string, e.g.
  53. </pre>
  54. </td>
  55. <td>
  56. <p>Key type.</p>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>
  61. <pre>
  62. <a name="const_key_reference3185471705" id=
  63. "const_key_reference3185471705">const_key_reference</a>
  64. </pre>
  65. </td>
  66. <td>
  67. <pre>
  68. const string &amp;, e.g.
  69. </pre>
  70. </td>
  71. <td>
  72. <p>Const key reference type.</p>
  73. </td>
  74. </tr>
  75. </table>
  76. <h3><a name="link3" id="link3">Element definitions.</a></h3>
  77. <table class="c1" width="100%" border="1" summary="Types">
  78. <tr>
  79. <td width="30%" align="left"><b>Type</b></td>
  80. <td width="55%" align="left"><b>Definition</b></td>
  81. <td width="15%" align="left"><b>Description</b></td>
  82. </tr>
  83. <tr>
  84. <td>
  85. <pre>
  86. <a name="const_iterator98626788" id=
  87. "const_iterator98626788">const_iterator</a>
  88. </pre>
  89. </td>
  90. <td>
  91. <pre>
  92. string::const_iterator, e.g.
  93. </pre>
  94. </td>
  95. <td>
  96. <p>Element <tt><b>const</b></tt> iterator type.</p>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td>
  101. <pre>
  102. <a name="e_type393186" id="e_type393186">e_type</a>
  103. </pre>
  104. </td>
  105. <td>
  106. <pre>
  107. char, e.g.
  108. </pre>
  109. </td>
  110. <td>
  111. <p>Element type.</p>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td>
  116. <pre>
  117. <a name="max_size10483336" id="max_size10483336">max_size</a>
  118. </pre>
  119. </td>
  120. <td>
  121. <pre>
  122. 4, e.g.
  123. </pre>
  124. </td>
  125. <td>
  126. <p>Number of distinct elements.</p>
  127. </td>
  128. </tr>
  129. </table>
  130. <h2><a name="link4" id="link4">Public Methods</a></h2>
  131. <h3><a name="link5" id="link5">Access methods.</a></h3>
  132. <table class="c1" width="100%" border="1" summary="Methods">
  133. <tr>
  134. <td width="45%" align="left"><b>Method</b></td>
  135. <td width="55%" align="left"><b>Description</b></td>
  136. </tr>
  137. <tr>
  138. <td>
  139. <pre>
  140. <b>inline</b> <b>static</b> <a href=
  141. "#const_iterator98626788"><tt>const_iterator</tt></a>
  142. begin
  143. (<a href=
  144. "#const_key_reference3185471705"><tt>const_key_reference</tt></a> r_key)
  145. </pre>
  146. </td>
  147. <td>
  148. <p>Returns a <a href=
  149. "#const_iterator98626788"><tt>const_iterator</tt></a> to
  150. the first element of <span class=
  151. "c1"><tt>r_key</tt></span>.</p>
  152. </td>
  153. </tr>
  154. <tr>
  155. <td>
  156. <pre>
  157. <b>inline</b> <b>static</b> <a href=
  158. "#const_iterator98626788"><tt>const_iterator</tt></a>
  159. end
  160. (<a href=
  161. "#const_key_reference3185471705"><tt>const_key_reference</tt></a> r_key)
  162. </pre>
  163. </td>
  164. <td>
  165. <p>Returns a <a href=
  166. "#const_iterator98626788"><tt>const_iterator</tt></a> to
  167. the after-last element of <span class=
  168. "c1"><tt>r_key</tt></span>.</p>
  169. </td>
  170. </tr>
  171. <tr>
  172. <td>
  173. <pre>
  174. <b>inline</b> <b>static</b> <a href=
  175. "#size_type55424436"><tt>size_type</tt></a>
  176. e_pos
  177. (<a href="#e_type393186"><tt>e_type</tt></a> e)
  178. </pre>
  179. </td>
  180. <td>
  181. <p>Maps an <span class="c1"><tt>element</tt></span> to a
  182. position.</p>
  183. </td>
  184. </tr>
  185. </table>
  186. </div>
  187. </body>
  188. </html>