mirror of
https://github.com/boostorg/circular_buffer.git
synced 2026-02-11 11:42:15 +00:00
77 lines
3.7 KiB
HTML
77 lines
3.7 KiB
HTML
<?xml version='1.0' encoding='iso-8859-1'?>
|
|
<!--
|
|
XSL transformation from the XML files generated by doxygen into HTML source documentation.
|
|
Author: Jan Gaspar (jano_gaspar[at]yahoo.com)
|
|
-->
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
|
|
<xsl:import href="doxygen2html.xslt"/>
|
|
|
|
<xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes" media-type="text/xml"/>
|
|
|
|
<xsl:variable name="circular_buffer-ref" select="//compound[name='boost::circular_buffer' and @kind='class']/@refid"/>
|
|
<xsl:variable name="circular_buffer-file" select="concat($xmldir, '/', $circular_buffer-ref, '.xml')"/>
|
|
|
|
<xsl:template name="template-parameters">
|
|
<xsl:for-each select="templateparamlist/param">
|
|
<xsl:apply-templates select="." mode="synopsis">
|
|
<xsl:with-param name="link-prefix" select="'circular_buffer.html'"/>
|
|
</xsl:apply-templates>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="public-types">
|
|
<xsl:variable name="inherited" select="document($circular_buffer-file)/doxygen/compounddef[@id = $circular_buffer-ref and @kind = 'class']/sectiondef[@kind='public-type']/memberdef"/>
|
|
<xsl:for-each select="sectiondef[@kind='public-type']/memberdef | $inherited">
|
|
<xsl:sort select="name"/>
|
|
<xsl:if test="string-length(normalize-space(briefdescription)) > 0 and count(reimplements) = 0">
|
|
<xsl:choose> <!-- TODO maybe it is possible to rely on the link in the reimplements node -->
|
|
<xsl:when test="../../compoundname = 'boost::circular_buffer_space_optimized'">
|
|
<xsl:apply-templates select="." mode="synopsis"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:apply-templates select="." mode="synopsis">
|
|
<xsl:with-param name="link-prefix" select="'circular_buffer.html'"/>
|
|
</xsl:apply-templates>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="member-functions">
|
|
<xsl:variable name="inherited" select="document($circular_buffer-file)/doxygen/compounddef[@id = $circular_buffer-ref and @kind = 'class']/sectiondef[@kind='public-func']/memberdef[type != '']"/>
|
|
<xsl:variable name="current" select="sectiondef[@kind='public-func']/memberdef[type != '']"/>
|
|
<xsl:for-each select="$current | $inherited">
|
|
<xsl:sort select="name"/>
|
|
<xsl:if test="string-length(normalize-space(briefdescription)) > 0">
|
|
<xsl:choose>
|
|
<xsl:when test="count($current[name=current()/name]) > 0 and count(param/type[ref='circular_buffer']) > 0">
|
|
<xsl:apply-templates select="$current[name=current()/name]" mode="synopsis">
|
|
<xsl:with-param name="link-prefix" select="'circular_buffer.html'"/>
|
|
<xsl:with-param name="link" select="@id"/>
|
|
</xsl:apply-templates>
|
|
</xsl:when>
|
|
<xsl:when test="../../compoundname = 'boost::circular_buffer_space_optimized'">
|
|
<xsl:apply-templates select="." mode="synopsis"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:apply-templates select="." mode="synopsis">
|
|
<xsl:with-param name="link-prefix" select="'circular_buffer.html'"/>
|
|
</xsl:apply-templates>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="standalone-functions">
|
|
<xsl:apply-templates select="document(concat($xmldir, '/namespaceboost.xml'))/doxygen/compounddef/sectiondef[@kind='func']/memberdef[contains(argsstring, 'circular_buffer_space_optimized<')]" mode="synopsis">
|
|
<xsl:with-param name="indent" select="''"/>
|
|
<xsl:sort select="name"/>
|
|
</xsl:apply-templates>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|