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

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

https://bitbucket.org/pizzafactory/pf-gcc
HTML | 193 lines | 150 code | 43 blank | 0 comment | 0 complexity | 5c611012fafabde627a6cb7dbd126db7 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_tree_node_update 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_tree_node_update</tt> Interface</h1>
  14. <p>A sample node updater.</p>
  15. <p>This class serves to show the interface a node update
  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/tree_policy/sample_tree_node_update.hpp"><tt>
  19. sample_tree_node_update.hpp</tt></a></p>
  20. <h2><a name="link1" id="link1">Template Parameters</a></h2>
  21. <table class="c1" width="100%" border="1" summary=
  22. "Template Parameters">
  23. <tr>
  24. <td width="20%" align="left"><b>Parameter</b></td>
  25. <td width="50%" align="left"><b>Description</b></td>
  26. <td width="30%" align="left"><b>Default Value</b></td>
  27. </tr>
  28. <tr>
  29. <td>
  30. <pre>
  31. <a name="Const_Node_Iterator1933878761" id=
  32. "Const_Node_Iterator1933878761"><b>class</b> Const_Node_Iterator</a>
  33. </pre>
  34. </td>
  35. <td>
  36. <p>Const node iterator type.</p>
  37. </td>
  38. <td>-</td>
  39. </tr>
  40. <tr>
  41. <td>
  42. <pre>
  43. <a name="Node_Iterator4206909839" id=
  44. "Node_Iterator4206909839"><b>class</b> Node_Iterator</a>
  45. </pre>
  46. </td>
  47. <td>
  48. <p>Node iterator type.</p>
  49. </td>
  50. <td>-</td>
  51. </tr>
  52. <tr>
  53. <td>
  54. <pre>
  55. <a name="Cmp_Fn294335" id="Cmp_Fn294335"><b>class</b> Cmp_Fn</a>
  56. </pre>
  57. </td>
  58. <td>
  59. <p>Comparison functor.</p>
  60. </td>
  61. <td>-</td>
  62. </tr>
  63. <tr>
  64. <td>
  65. <pre>
  66. <a name="Allocator35940069" id=
  67. "Allocator35940069"><b>class</b> Allocator</a>
  68. </pre>
  69. </td>
  70. <td>
  71. <p>Allocator type.</p>
  72. </td>
  73. <td>-</td>
  74. </tr>
  75. </table>
  76. <h2><a name="link2" id="link2">Public Types and
  77. Constants</a></h2>
  78. <h3><a name="link3" id="link3">Metadata definitions.</a></h3>
  79. <table class="c1" width="100%" border="1" summary="Types">
  80. <tr>
  81. <td width="30%" align="left"><b>Type</b></td>
  82. <td width="55%" align="left"><b>Definition</b></td>
  83. <td width="15%" align="left"><b>Description</b></td>
  84. </tr>
  85. <tr>
  86. <td>
  87. <pre>
  88. <a name="metadata_type2849297114" id=
  89. "metadata_type2849297114">metadata_type</a>
  90. </pre>
  91. </td>
  92. <td>
  93. <pre>
  94. size_t
  95. </pre>
  96. </td>
  97. <td>
  98. <p>Metadata type.</p>
  99. <p>This can be any type; size_t is merely an example.</p>
  100. </td>
  101. </tr>
  102. </table>
  103. <h2><a name="link4" id="link4">Protected Methods</a></h2>
  104. <h3><a name="link5" id="link5">Conclassors, declassor, and
  105. related.</a></h3>
  106. <table class="c1" width="100%" border="1" summary="Methods">
  107. <tr>
  108. <td width="45%" align="left"><b>Method</b></td>
  109. <td width="55%" align="left"><b>Description</b></td>
  110. </tr>
  111. <tr>
  112. <td>
  113. <pre>
  114. sample_tree_node_update
  115. ()
  116. </pre>
  117. </td>
  118. <td>
  119. <p>Default constructor.</p>
  120. <p>Must be default constructable.</p>
  121. </td>
  122. </tr>
  123. </table>
  124. <h3><a name="link6" id="link6">Operators.</a></h3>
  125. <table class="c1" width="100%" border="1" summary="Methods">
  126. <tr>
  127. <td width="45%" align="left"><b>Method</b></td>
  128. <td width="55%" align="left"><b>Description</b></td>
  129. </tr>
  130. <tr>
  131. <td>
  132. <pre>
  133. <b>inline</b> <b>void</b>
  134. <b>operator</b>()
  135. (node_iterator node_it,
  136. const_node_iterator end_nd_it) <b>const</b>
  137. </pre>
  138. </td>
  139. <td>
  140. <p>Updates the rank of a node through a <span class=
  141. "c1"><tt>node_iterator</tt></span> <span class=
  142. "c1"><tt>node_it</tt></span>; <span class=
  143. "c1"><tt>end_nd_it</tt></span> is the end node
  144. iterator.</p>
  145. </td>
  146. </tr>
  147. </table>
  148. </div>
  149. </body>
  150. </html>