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_trie_e_access_traits Interface</title>
10 <meta http-equiv="Content-Type" content=
11 "text/html; charset=us-ascii" />
16 <h1><tt>sample_trie_e_access_traits</tt> Interface</h1>
18 <p>A sample trie element-access traits.</p>
20 <p>This class serves to show the interface an element- access
21 traits class needs to support.</p>
23 <p>Defined in: <a href=
24 "../../../../include/ext/pb_ds/detail/trie_policy/sample_trie_e_access_traits.hpp">
25 <tt>sample_trie_e_access_traits.hpp</tt></a></p>
27 <h2><a name="link1" id="link1">Public Types and
30 <h3><a name="link2" id="link2">General definitions.</a></h3>
32 <table class="c1" width="100%" border="1" summary="Types">
34 <td width="30%" align="left"><b>Type</b></td>
36 <td width="55%" align="left"><b>Definition</b></td>
38 <td width="15%" align="left"><b>Description</b></td>
44 <a name="size_type55424436" id="size_type55424436">size_type</a>
62 <a name="key_type10393186" id="key_type10393186">key_type</a>
80 <a name="const_key_reference3185471705" id=
81 "const_key_reference3185471705">const_key_reference</a>
87 const string &, e.g.
92 <p>Const key reference type.</p>
97 <h3><a name="link3" id="link3">Element definitions.</a></h3>
99 <table class="c1" width="100%" border="1" summary="Types">
101 <td width="30%" align="left"><b>Type</b></td>
103 <td width="55%" align="left"><b>Definition</b></td>
105 <td width="15%" align="left"><b>Description</b></td>
111 <a name="const_iterator98626788" id=
112 "const_iterator98626788">const_iterator</a>
118 string::const_iterator, e.g.
123 <p>Element <tt><b>const</b></tt> iterator type.</p>
130 <a name="e_type393186" id="e_type393186">e_type</a>
148 <a name="max_size10483336" id="max_size10483336">max_size</a>
159 <p>Number of distinct elements.</p>
164 <h2><a name="link4" id="link4">Public Methods</a></h2>
166 <h3><a name="link5" id="link5">Access methods.</a></h3>
168 <table class="c1" width="100%" border="1" summary="Methods">
170 <td width="45%" align="left"><b>Method</b></td>
172 <td width="55%" align="left"><b>Description</b></td>
178 <b>inline</b> <b>static</b> <a href=
179 "#const_iterator98626788"><tt>const_iterator</tt></a>
182 "#const_key_reference3185471705"><tt>const_key_reference</tt></a> r_key)
187 <p>Returns a <a href=
188 "#const_iterator98626788"><tt>const_iterator</tt></a> to
189 the first element of <span class=
190 "c1"><tt>r_key</tt></span>.</p>
197 <b>inline</b> <b>static</b> <a href=
198 "#const_iterator98626788"><tt>const_iterator</tt></a>
201 "#const_key_reference3185471705"><tt>const_key_reference</tt></a> r_key)
206 <p>Returns a <a href=
207 "#const_iterator98626788"><tt>const_iterator</tt></a> to
208 the after-last element of <span class=
209 "c1"><tt>r_key</tt></span>.</p>
216 <b>inline</b> <b>static</b> <a href=
217 "#size_type55424436"><tt>size_type</tt></a>
219 (<a href="#e_type393186"><tt>e_type</tt></a> e)
224 <p>Maps an <span class="c1"><tt>element</tt></span> to a