Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54373 - trunk/libs/asio/doc
From: chris_at_[hidden]
Date: 2009-06-26 07:03:15


Author: chris_kohlhoff
Date: 2009-06-26 07:03:14 EDT (Fri, 26 Jun 2009)
New Revision: 54373
URL: http://svn.boost.org/trac/boost/changeset/54373

Log:
Fix doc generation for array reference parameters.

Text files modified:
   trunk/libs/asio/doc/reference.qbk | 16 ++++++++--------
   trunk/libs/asio/doc/reference.xsl | 20 +++++++++++++++++---
   2 files changed, 25 insertions(+), 11 deletions(-)

Modified: trunk/libs/asio/doc/reference.qbk
==============================================================================
--- trunk/libs/asio/doc/reference.qbk (original)
+++ trunk/libs/asio/doc/reference.qbk 2009-06-26 07:03:14 EDT (Fri, 26 Jun 2009)
@@ -26901,26 +26901,26 @@
       typename PodType,
       std::size_t N>
   mutable_buffers_1 ``[link boost_asio.reference.buffer.overload7 buffer]``(
- PodType & data);
+ PodType (&data)[N]);
 
   template<
       typename PodType,
       std::size_t N>
   mutable_buffers_1 ``[link boost_asio.reference.buffer.overload8 buffer]``(
- PodType & data,
+ PodType (&data)[N],
       std::size_t max_size_in_bytes);
 
   template<
       typename PodType,
       std::size_t N>
   const_buffers_1 ``[link boost_asio.reference.buffer.overload9 buffer]``(
- const PodType & data);
+ const PodType (&data)[N]);
 
   template<
       typename PodType,
       std::size_t N>
   const_buffers_1 ``[link boost_asio.reference.buffer.overload10 buffer]``(
- const PodType & data,
+ const PodType (&data)[N],
       std::size_t max_size_in_bytes);
 
   template<
@@ -27284,7 +27284,7 @@
       typename PodType,
       std::size_t N>
   mutable_buffers_1 buffer(
- PodType & data);
+ PodType (&data)[N]);
 
 
 
@@ -27313,7 +27313,7 @@
       typename PodType,
       std::size_t N>
   mutable_buffers_1 buffer(
- PodType & data,
+ PodType (&data)[N],
       std::size_t max_size_in_bytes);
 
 
@@ -27343,7 +27343,7 @@
       typename PodType,
       std::size_t N>
   const_buffers_1 buffer(
- const PodType & data);
+ const PodType (&data)[N]);
 
 
 
@@ -27372,7 +27372,7 @@
       typename PodType,
       std::size_t N>
   const_buffers_1 buffer(
- const PodType & data,
+ const PodType (&data)[N],
       std::size_t max_size_in_bytes);
 
 

Modified: trunk/libs/asio/doc/reference.xsl
==============================================================================
--- trunk/libs/asio/doc/reference.xsl (original)
+++ trunk/libs/asio/doc/reference.xsl 2009-06-26 07:03:14 EDT (Fri, 26 Jun 2009)
@@ -1127,9 +1127,23 @@
 
 <xsl:template match="param" mode="class-detail">
 <xsl:text>
- </xsl:text><xsl:value-of select="type"/><xsl:text> </xsl:text><xsl:value-of
- select="declname"/><xsl:if test="count(defval) > 0"> = <xsl:value-of
- select="defval"/></xsl:if><xsl:if test="not(position() = last())">,</xsl:if>
+ </xsl:text>
+ <xsl:choose>
+ <xsl:when test="string-length(array) &gt; 0">
+ <xsl:value-of select="substring-before(type, '&amp;')"/>
+ <xsl:text>(&amp;</xsl:text>
+ <xsl:value-of select="declname"/>
+ <xsl:text>)</xsl:text>
+ <xsl:value-of select="array"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="type"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="declname"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="count(defval) > 0"> = <xsl:value-of select="defval"/></xsl:if>
+ <xsl:if test="not(position() = last())">,</xsl:if>
 </xsl:template>
 
 


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