1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <meta name="generator" content=
7 "HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org" />
9 <title>sample_tree_node_update Interface</title>
10 <meta http-equiv="Content-Type" content=
11 "text/html; charset=us-ascii" />
16 <h1><tt>sample_tree_node_update</tt> Interface</h1>
18 <p>A sample node updater.</p>
20 <p>This class serves to show the interface a node update
21 functor needs to support.</p>
23 <p>Defined in: <a href=
24 "http://gcc.gnu.org/viewcvs/*checkout*/trunk/libstdc%2B%2B-v3/include/ext/pb_ds/detail/tree_policy/sample_tree_node_update.hpp"><tt>
25 sample_tree_node_update.hpp</tt></a></p>
27 <h2><a name="link1" id="link1">Template Parameters</a></h2>
29 <table class="c1" width="100%" border="1" summary=
30 "Template Parameters">
32 <td width="20%" align="left"><b>Parameter</b></td>
34 <td width="50%" align="left"><b>Description</b></td>
36 <td width="30%" align="left"><b>Default Value</b></td>
42 <a name="Const_Node_Iterator1933878761" id=
43 "Const_Node_Iterator1933878761"><b>class</b> Const_Node_Iterator</a>
48 <p>Const node iterator type.</p>
57 <a name="Node_Iterator4206909839" id=
58 "Node_Iterator4206909839"><b>class</b> Node_Iterator</a>
63 <p>Node iterator type.</p>
72 <a name="Cmp_Fn294335" id="Cmp_Fn294335"><b>class</b> Cmp_Fn</a>
77 <p>Comparison functor.</p>
86 <a name="Allocator35940069" id=
87 "Allocator35940069"><b>class</b> Allocator</a>
92 <p>Allocator type.</p>
99 <h2><a name="link2" id="link2">Public Types and
102 <h3><a name="link3" id="link3">Metadata definitions.</a></h3>
104 <table class="c1" width="100%" border="1" summary="Types">
106 <td width="30%" align="left"><b>Type</b></td>
108 <td width="55%" align="left"><b>Definition</b></td>
110 <td width="15%" align="left"><b>Description</b></td>
116 <a name="metadata_type2849297114" id=
117 "metadata_type2849297114">metadata_type</a>
128 <p>Metadata type.</p>
130 <p>This can be any type; size_t is merely an example.</p>
135 <h2><a name="link4" id="link4">Protected Methods</a></h2>
137 <h3><a name="link5" id="link5">Conclassors, declassor, and
140 <table class="c1" width="100%" border="1" summary="Methods">
142 <td width="45%" align="left"><b>Method</b></td>
144 <td width="55%" align="left"><b>Description</b></td>
150 sample_tree_node_update
156 <p>Default constructor.</p>
158 <p>Must be default constructable.</p>
163 <h3><a name="link6" id="link6">Operators.</a></h3>
165 <table class="c1" width="100%" border="1" summary="Methods">
167 <td width="45%" align="left"><b>Method</b></td>
169 <td width="55%" align="left"><b>Description</b></td>
175 <b>inline</b> <b>void</b>
177 (node_iterator node_it,
178 const_node_iterator end_nd_it) <b>const</b>
183 <p>Updates the rank of a node through a <span class=
184 "c1"><tt>node_iterator</tt></span> <span class=
185 "c1"><tt>node_it</tt></span>; <span class=
186 "c1"><tt>end_nd_it</tt></span> is the end node