Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-06-01 13:18:15


Author: danieljames
Date: 2008-06-01 13:18:15 EDT (Sun, 01 Jun 2008)
New Revision: 46017
URL: http://svn.boost.org/trac/boost/changeset/46017

Log:
Use both PNG and SVG versions of the buckets diagram.

Text files modified:
   branches/doc/libs/unordered/doc/buckets.qbk | 2 +-
   branches/doc/libs/unordered/doc/unordered.qbk | 10 ++++++++++
   2 files changed, 11 insertions(+), 1 deletions(-)

Modified: branches/doc/libs/unordered/doc/buckets.qbk
==============================================================================
--- branches/doc/libs/unordered/doc/buckets.qbk (original)
+++ branches/doc/libs/unordered/doc/buckets.qbk 2008-06-01 13:18:15 EDT (Sun, 01 Jun 2008)
@@ -10,7 +10,7 @@
 `B`, `C`, `D` and `E` (this is just for illustration, containers will typically
 have more buckets).
 
-[$../../libs/unordered/doc/diagrams/buckets.png]
+[diagram buckets]
 
 In order to decide which bucket to place an element in, the container applies
 the hash function, `Hash`, to the element's key (for `unordered_set` and

Modified: branches/doc/libs/unordered/doc/unordered.qbk
==============================================================================
--- branches/doc/libs/unordered/doc/unordered.qbk (original)
+++ branches/doc/libs/unordered/doc/unordered.qbk 2008-06-01 13:18:15 EDT (Sun, 01 Jun 2008)
@@ -17,6 +17,16 @@
     ]
 ]
 
+[template diagram[name] '''<inlinemediaobject>
+<imageobject role="html">
+<imagedata align = "center" fileref="../../libs/unordered/doc/diagrams/'''[name]'''.png"></imagedata>
+</imageobject>
+<imageobject role="print">
+<imagedata align = "center" fileref="../../libs/unordered/doc/diagrams/'''[name]'''.svg"></imagedata>
+</imageobject>
+</inlinemediaobject>''']
+
+
 [include:unordered intro.qbk]
 [include:unordered buckets.qbk]
 [include:unordered hash_equality.qbk]


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