|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61459 - in sandbox/tokenmap/libs/tokenmap/doc/html: . tokenmap
From: sl_at_[hidden]
Date: 2010-04-21 09:51:48
Author: sl_
Date: 2010-04-21 09:51:47 EDT (Wed, 21 Apr 2010)
New Revision: 61459
URL: http://svn.boost.org/trac/boost/changeset/61459
Log:
updated ack section
Text files modified:
sandbox/tokenmap/libs/tokenmap/doc/html/index.html | 4 ++--
sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/acknowledgements.html | 9 +++++++--
sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/background.html | 6 +++---
sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/examples_.html | 2 +-
sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/performance_.html | 3 ++-
sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/quick_tutorial.html | 5 ++---
sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/reference.html | 38 ++++++++++++++++++++++++++------------
7 files changed, 43 insertions(+), 24 deletions(-)
Modified: sandbox/tokenmap/libs/tokenmap/doc/html/index.html
==============================================================================
--- sandbox/tokenmap/libs/tokenmap/doc/html/index.html (original)
+++ sandbox/tokenmap/libs/tokenmap/doc/html/index.html 2010-04-21 09:51:47 EDT (Wed, 21 Apr 2010)
@@ -27,7 +27,7 @@
</h3></div></div>
<div><p class="copyright">Copyright © 2009 Slawomir Lisznianski</p></div>
<div><div class="legalnotice">
-<a name="id498675"></a><p>
+<a name="id394716"></a><p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
</p>
@@ -90,7 +90,7 @@
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: April 17, 2010 at 02:23:16 GMT</small></p></td>
+<td align="left"><p><small>Last revised: April 21, 2010 at 13:27:12 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
Modified: sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/acknowledgements.html
==============================================================================
--- sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/acknowledgements.html (original)
+++ sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/acknowledgements.html 2010-04-21 09:51:47 EDT (Wed, 21 Apr 2010)
@@ -21,9 +21,14 @@
<div class="spirit-nav">
<a accesskey="p" href="rationale_.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a>
</div>
-<div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both">
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="tokenmap.acknowledgements"></a><a class="link" href="acknowledgements.html" title="Acknowledgements">Acknowledgements</a>
-</h2></div></div></div></div>
+</h2></div></div></div>
+<p>
+ Daniel James, Daniel Trebbien.
+ </p>
+</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2009 Slawomir Lisznianski<p>
Modified: sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/background.html
==============================================================================
--- sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/background.html (original)
+++ sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/background.html 2010-04-21 09:51:47 EDT (Wed, 21 Apr 2010)
@@ -139,7 +139,7 @@
hashing property is preserved.
</p>
<a name="tokenmap.background.analysis_of_simple_strategy.modular_arithmetic_notation"></a><h5>
-<a name="id507899"></a>
+<a name="id403945"></a>
<a class="link" href="background.html#tokenmap.background.analysis_of_simple_strategy.modular_arithmetic_notation">Modular
arithmetic notation</a>
</h5>
@@ -153,7 +153,7 @@
the set of all integers that are congruent modulo <span class="emphasis"><em>s</em></span>.
</p>
<a name="tokenmap.background.analysis_of_simple_strategy.proposition_1__perfect_hashing_is_preserved_with_multiples_of_the_old_store_length"></a><h5>
-<a name="id507982"></a>
+<a name="id404028"></a>
<a class="link" href="background.html#tokenmap.background.analysis_of_simple_strategy.proposition_1__perfect_hashing_is_preserved_with_multiples_of_the_old_store_length">Proposition
1: Perfect hashing is preserved with multiples of the old store length</a>
</h5>
@@ -212,7 +212,7 @@
so [<span class="emphasis"><em>x</em></span>]<sub><span class="emphasis"><em>s</em></span><sub><span class="emphasis"><em>k</em></span></sub></sub> equals [<span class="emphasis"><em>y</em></span>]<sub><span class="emphasis"><em>s</em></span><sub><span class="emphasis"><em>k</em></span></sub></sub>. ∎
</p>
<a name="tokenmap.background.analysis_of_simple_strategy.__emphasis_s__emphasis_____quickbook_escape_prefix____subscript__emphasis_k__emphasis___subscript_____quickbook_escape_postfix_____that_preserves_perfect_hashing_after_arbitrary_rehashes"></a><h5>
-<a name="id508252"></a>
+<a name="id404300"></a>
<a class="link" href="background.html#tokenmap.background.analysis_of_simple_strategy.__emphasis_s__emphasis_____quickbook_escape_prefix____subscript__emphasis_k__emphasis___subscript_____quickbook_escape_postfix_____that_preserves_perfect_hashing_after_arbitrary_rehashes">{<span class="emphasis"><em>s</em></span><sub><span class="emphasis"><em>k</em></span></sub>}
that preserves perfect hashing after arbitrary rehashes</a>
</h5>
Modified: sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/examples_.html
==============================================================================
--- sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/examples_.html (original)
+++ sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/examples_.html 2010-04-21 09:51:47 EDT (Wed, 21 Apr 2010)
@@ -32,7 +32,7 @@
them:
</p>
<div class="table">
-<a name="id509922"></a><p class="title"><b>Table 1.1. Tutorial examples</b></p>
+<a name="id406131"></a><p class="title"><b>Table 1.1. Tutorial examples</b></p>
<div class="table-contents"><table class="table" summary="Tutorial examples">
<colgroup>
<col>
Modified: sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/performance_.html
==============================================================================
--- sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/performance_.html (original)
+++ sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/performance_.html 2010-04-21 09:51:47 EDT (Wed, 21 Apr 2010)
@@ -30,7 +30,8 @@
(this section requires far more work)
</p>
<p>
- Below is a comparison of insertions and lookups, compiled with gcc 4.4.1:
+ Below is a comparison of insertions and lookups, compiled with gcc 4.4.1. Lookups
+ were done with 1,000,000 elements in each container.
</p>
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">map</span><span class="special"><</span><span class="identifier">token</span><span class="special">,</span> <span class="identifier">session</span><span class="special">*></span> <span class="identifier">map_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">tokenmap</span><span class="special"><</span><span class="identifier">session</span><span class="special">,</span> <span class="identifier">uint32_t</span><span class="special">></span> <span class="identifier">token_type</span><span class="special">;</span>
Modified: sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/quick_tutorial.html
==============================================================================
--- sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/quick_tutorial.html (original)
+++ sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/quick_tutorial.html 2010-04-21 09:51:47 EDT (Wed, 21 Apr 2010)
@@ -34,11 +34,10 @@
<p>
Next, we define a <code class="computeroutput"><span class="identifier">tokenmap</span></code>
for storing strings. The following code creates an empty <code class="computeroutput"><span class="identifier">tokenmap</span></code>
- container with initial capacity set to 10000, load factor set to 0.7 and current
- time as seed for pseudo-number generator:
+ container with current time as seed for pseudo-number generator:
</p>
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">tokenmap</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">unsigned</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">tokenmap_type</span><span class="special">;</span>
-<span class="identifier">tokenmap_type</span> <span class="identifier">names</span><span class="special">(</span> <span class="number">10000</span><span class="special">,</span> <span class="number">0.7</span><span class="special">,</span> <span class="identifier">time</span><span class="special">(</span><span class="identifier">NULL</span><span class="special">)</span> <span class="special">);</span>
+<span class="identifier">tokenmap_type</span> <span class="identifier">names</span><span class="special">(</span> <span class="identifier">time</span><span class="special">(</span><span class="identifier">NULL</span><span class="special">)</span> <span class="special">);</span>
</pre>
<p>
To insert elements into the container we do:
Modified: sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/reference.html
==============================================================================
--- sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/reference.html (original)
+++ sandbox/tokenmap/libs/tokenmap/doc/html/tokenmap/reference.html 2010-04-21 09:51:47 EDT (Wed, 21 Apr 2010)
@@ -27,7 +27,7 @@
<a name="tokenmap.reference"></a><a class="link" href="reference.html" title="Reference">Reference</a>
</h2></div></div></div>
<a name="tokenmap.reference.headers"></a><h4>
-<a name="id508916"></a>
+<a name="id404945"></a>
<a class="link" href="reference.html#tokenmap.reference.headers">Headers</a>
</h4>
<p>
@@ -36,7 +36,7 @@
to boost namespace.
</p>
<a name="tokenmap.reference.synopsis"></a><h4>
-<a name="id508943"></a>
+<a name="id404972"></a>
<a class="link" href="reference.html#tokenmap.reference.synopsis">Synopsis</a>
</h4>
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
@@ -49,14 +49,16 @@
<span class="comment">// Metadata
</span>
- <span class="keyword">typedef</span> <span class="identifier">uint64_t</span> <span class="identifier">hash_type</span><span class="special">;</span>
- <span class="keyword">typedef</span> <span class="identifier">key__</span> <span class="identifier">key_type</span><span class="special">;</span>
- <span class="keyword">typedef</span> <span class="identifier">value__</span> <span class="identifier">mapped_type</span><span class="special">;</span>
- <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special"><</span><span class="identifier">key_type</span><span class="special">,</span> <span class="identifier">mapped_type</span><span class="special">*></span> <span class="identifier">value_type</span><span class="special">;</span>
+ <span class="keyword">typedef</span> <span class="identifier">unspecifed</span><span class="special">-</span><span class="identifier">integral</span><span class="special">-</span><span class="identifier">type</span> <span class="identifier">hash_type</span><span class="special">;</span>
+ <span class="keyword">typedef</span> <span class="identifier">key__</span> <span class="identifier">key_type</span><span class="special">;</span>
+ <span class="keyword">typedef</span> <span class="identifier">value__</span> <span class="identifier">mapped_type</span><span class="special">;</span>
+ <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special"><</span><span class="identifier">key_type</span><span class="special">,</span> <span class="identifier">mapped_type</span><span class="special">></span> <span class="identifier">value_type</span><span class="special">;</span>
+ <span class="keyword">typedef</span> <span class="identifier">unspecified</span><span class="special">-</span><span class="identifier">node</span><span class="special">-</span><span class="identifier">iterator</span> <span class="identifier">iterator</span><span class="special">;</span>
+ <span class="keyword">typedef</span> <span class="identifier">unspecified</span><span class="special">-</span><span class="identifier">node</span><span class="special">-</span><span class="identifier">iterator</span> <span class="identifier">reverse_iterator</span><span class="special">;</span>
<span class="comment">// Constructor
</span>
- <span class="identifier">tokenmap</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">capacity</span><span class="special">,</span> <span class="keyword">float</span> <span class="identifier">load_factor</span><span class="special">,</span> <span class="identifier">hash_type</span> <span class="identifier">seed</span><span class="special">);</span>
+ <span class="keyword">explicit</span> <span class="identifier">tokenmap</span><span class="special">(</span><span class="identifier">hash_type</span> <span class="identifier">seed</span><span class="special">);</span>
<span class="comment">// Destructor
</span>
@@ -72,30 +74,42 @@
<span class="comment">// Accessors
</span>
- <span class="identifier">mapped_type</span> <span class="special">*</span> <span class="identifier">find</span><span class="special">(</span><span class="identifier">key_type</span> <span class="identifier">key</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
+ <span class="identifier">iterator</span> <span class="identifier">find</span><span class="special">(</span><span class="identifier">key_type</span> <span class="identifier">key</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
+
+ <span class="identifier">mapped_type</span> <span class="special">*</span> <span class="identifier">at</span><span class="special">(</span><span class="identifier">key_type</span> <span class="identifier">key</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
+
+ <span class="keyword">bool</span> <span class="identifier">exists</span><span class="special">(</span><span class="identifier">key_type</span> <span class="identifier">key</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="keyword">bool</span> <span class="identifier">exists</span><span class="special">(</span><span class="identifier">key_type</span> <span class="identifier">key</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="identifier">key_type</span> <span class="identifier">size</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+
+ <span class="comment">// Iterators.
+</span>
+ <span class="identifier">iterator</span> <span class="identifier">begin</span><span class="special">();</span>
+ <span class="identifier">iterator</span> <span class="identifier">end</span><span class="special">();</span>
+
+ <span class="identifier">reverse_iterator</span> <span class="identifier">rbegin</span><span class="special">();</span>
+ <span class="identifier">reverse_iterator</span> <span class="identifier">rend</span><span class="special">();</span>
<span class="special">};</span>
<span class="special">}</span> <span class="comment">// namespace tokenmaps
</span><span class="special">}</span> <span class="comment">// namespace boost
</span></pre>
<a name="tokenmap.reference.class_template_tokenmap"></a><h4>
-<a name="id509530"></a>
+<a name="id405763"></a>
<a class="link" href="reference.html#tokenmap.reference.class_template_tokenmap">Class template tokenmap</a>
</h4>
<a name="tokenmap.reference.nested_types"></a><h4>
-<a name="id509545"></a>
+<a name="id405777"></a>
<a class="link" href="reference.html#tokenmap.reference.nested_types">Nested types</a>
</h4>
<a name="tokenmap.reference.constructors__copy_and_assignment"></a><h4>
-<a name="id509559"></a>
+<a name="id405792"></a>
<a class="link" href="reference.html#tokenmap.reference.constructors__copy_and_assignment">Constructors,
copy and assignment</a>
</h4>
-<pre class="programlisting"><span class="identifier">tokenmap</span><span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">capacity</span><span class="special">,</span> <span class="keyword">float</span> <span class="identifier">load_factor</span><span class="special">,</span> <span class="identifier">hash_type</span> <span class="identifier">seed</span><span class="special">);</span>
+<pre class="programlisting"><span class="keyword">explicit</span> <span class="identifier">tokenmap</span><span class="special">(</span><span class="identifier">hash_type</span> <span class="identifier">seed</span><span class="special">);</span>
</pre>
<div class="itemizedlist"><ul type="disc">
<li>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk