mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-12 14:01:47 +00:00
[doc] Fix long file names in reference by setting qbk section id.
This commit is contained in:
parent
5c878cfb31
commit
d1a31bf552
@ -4,6 +4,10 @@
|
|||||||
# Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
# Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||||
# Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
|
# Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
|
||||||
#
|
#
|
||||||
|
# This file was modified by Oracle on 2020.
|
||||||
|
# Modifications copyright (c) 2020, Oracle and/or its affiliates.
|
||||||
|
# Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||||
|
#
|
||||||
# Use, modification and distribution is subject to the Boost Software License,
|
# Use, modification and distribution is subject to the Boost Software License,
|
||||||
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
# http://www.boost.org/LICENSE_1_0.txt)9
|
# http://www.boost.org/LICENSE_1_0.txt)9
|
||||||
@ -15,6 +19,7 @@ cmd = "doxygen_xml2qbk"
|
|||||||
cmd = cmd + " --xml xml/%s.xml"
|
cmd = cmd + " --xml xml/%s.xml"
|
||||||
cmd = cmd + " --start_include boost/"
|
cmd = cmd + " --start_include boost/"
|
||||||
cmd = cmd + " --output_style alt"
|
cmd = cmd + " --output_style alt"
|
||||||
|
cmd = cmd + " --alt_max_synopsis_length 59"
|
||||||
cmd = cmd + " > generated/%s.qbk"
|
cmd = cmd + " > generated/%s.qbk"
|
||||||
|
|
||||||
def run_command(command):
|
def run_command(command):
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
Copyright (c) 2009-2015 Bruno Lalande, Paris, France.
|
Copyright (c) 2009-2015 Bruno Lalande, Paris, France.
|
||||||
Copyright (c) 2013-2015 Adam Wulkiewicz, Lodz, Poland.
|
Copyright (c) 2013-2015 Adam Wulkiewicz, Lodz, Poland.
|
||||||
|
|
||||||
This file was modified by Oracle on 2014, 2015, 2017, 2018.
|
This file was modified by Oracle on 2014-2020.
|
||||||
Modifications copyright (c) 2014-2018, Oracle and/or its affiliates.
|
Modifications copyright (c) 2014-2020, Oracle and/or its affiliates.
|
||||||
Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
|
Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
|
||||||
Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
|
Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
|
||||||
Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||||
@ -759,9 +759,15 @@
|
|||||||
<bridgehead renderas="sect3">R-tree constructors and destructor</bridgehead>
|
<bridgehead renderas="sect3">R-tree constructors and destructor</bridgehead>
|
||||||
<simplelist type="vert" columns="1">
|
<simplelist type="vert" columns="1">
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree__">rtree()</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree__">rtree()</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_parameters_type_const____indexable_getter_const____value_equal_const____allocator_type_const___">rtree(parameters_type const &, indexable_getter const &, value_equal const &, allocator_type const &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_par_cr_ind_cr_val_cr_all_cr">rtree(parameters_type const &, indexable_getter const &, value_equal const &, allocator_type const &)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_iterator__iterator_">rtree(Iterator, Iterator)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_iterator__iterator_">rtree(Iterator, Iterator)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_range_const___">rtree(Range const &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_range_const___">rtree(Range const &)</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_ite_ite_par_cr_ind_cr_val_cr_all_cr_pac_cr">rtree(Iterator, Iterator, parameters_type const &, indexable_getter const &, value_equal const &, allocator_type const &, PackAlloc const &)</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_ran_cr_par_cr_ind_cr_val_cr_all_cr_pac_cr">rtree(Range const &, parameters_type const &, indexable_getter const &, value_equal const &, allocator_type const &, PackAlloc const &)</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_iterator__iterator__allocator_type_const___">rtree(Iterator, Iterator, allocator_type const &)</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_range_const____allocator_type_const___">rtree(Range const &, allocator_type const &)</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_ite_ite_all_cr_pac_cr">rtree(Iterator, Iterator, allocator_type const &, PackAlloc const &)</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_ran_cr_all_cr_pac_cr">rtree(Range const &, allocator_type const &, PackAlloc const &)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_rtree_const___">rtree(rtree const &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_rtree_const___">rtree(rtree const &)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_rtree_const____allocator_type_const___">rtree(rtree const &, allocator_type const &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_rtree_const____allocator_type_const___">rtree(rtree const &, allocator_type const &)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_rtree____">rtree(rtree &&)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.rtree_rtree____">rtree(rtree &&)</link></member>
|
||||||
@ -784,6 +790,8 @@
|
|||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.query_predicates_const____outiter_">query(Predicates const &, OutIter)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.query_predicates_const____outiter_">query(Predicates const &, OutIter)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.qbegin_predicates_const___">qbegin(Predicates const &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.qbegin_predicates_const___">qbegin(Predicates const &)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.qend__">qend()</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.qend__">qend()</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.begin__">begin()</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.end__">end()</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.size__">size()</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.size__">size()</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.empty__">empty()</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.empty__">empty()</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.clear__">clear()</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.boost__geometry__index__rtree.clear__">clear()</link></member>
|
||||||
@ -807,6 +815,8 @@
|
|||||||
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.query_rtree______const____predicates_const____outiter_">query(rtree<...> const &, Predicates const &, OutIter)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.query_rtree______const____predicates_const____outiter_">query(rtree<...> const &, Predicates const &, OutIter)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.qbegin_rtree______const____predicates_const___">qbegin(rtree<...> const &, Predicates const &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.qbegin_rtree______const____predicates_const___">qbegin(rtree<...> const &, Predicates const &)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.qend_rtree______const___">qend(rtree<...> const &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.qend_rtree______const___">qend(rtree<...> const &)</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.begin_rtree______const___">begin(rtree<...> const &)</link></member>
|
||||||
|
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.end_rtree______const___">end(rtree<...> const &)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.clear_rtree________">clear(rtree<...> &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.clear_rtree________">clear(rtree<...> &)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.size_rtree______const___">size(rtree<...> const &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.size_rtree______const___">size(rtree<...> const &)</link></member>
|
||||||
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.empty_rtree______const___">empty(rtree<...> const &)</link></member>
|
<member><link linkend="geometry.reference.spatial_indexes.group__rtree__functions.empty_rtree______const___">empty(rtree<...> const &)</link></member>
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
//
|
//
|
||||||
// Copyright (c) 2010-2013 Barend Gehrels, Amsterdam, the Netherlands.
|
// Copyright (c) 2010-2013 Barend Gehrels, Amsterdam, the Netherlands.
|
||||||
// Copyright (c) 2012-2013 Adam Wulkiewicz, Lodz, Poland.
|
// Copyright (c) 2012-2013 Adam Wulkiewicz, Lodz, Poland.
|
||||||
|
//
|
||||||
|
// This file was modified by Oracle on 2020.
|
||||||
|
// Modifications copyright (c) 2020, Oracle and/or its affiliates.
|
||||||
|
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||||
|
//
|
||||||
// Use, modification and distribution is subject to the Boost Software License,
|
// Use, modification and distribution is subject to the Boost Software License,
|
||||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -34,9 +39,12 @@ struct configuration
|
|||||||
output_style_type output_style;
|
output_style_type output_style;
|
||||||
bool output_member_variables;
|
bool output_member_variables;
|
||||||
|
|
||||||
|
unsigned alt_max_synopsis_length;
|
||||||
|
|
||||||
configuration()
|
configuration()
|
||||||
: output_style(def)
|
: output_style(def)
|
||||||
, output_member_variables(false)
|
, output_member_variables(false)
|
||||||
|
, alt_max_synopsis_length(0)
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
//
|
//
|
||||||
// Copyright (c) 2010-2013 Barend Gehrels, Amsterdam, the Netherlands.
|
// Copyright (c) 2010-2013 Barend Gehrels, Amsterdam, the Netherlands.
|
||||||
// Copyright (c) 2012-2013 Adam Wulkiewicz, Lodz, Poland.
|
// Copyright (c) 2012-2013 Adam Wulkiewicz, Lodz, Poland.
|
||||||
|
//
|
||||||
|
// This file was modified by Oracle on 2020.
|
||||||
|
// Modifications copyright (c) 2020, Oracle and/or its affiliates.
|
||||||
|
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||||
|
//
|
||||||
// Use, modification and distribution is subject to the Boost Software License,
|
// Use, modification and distribution is subject to the Boost Software License,
|
||||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -97,6 +102,8 @@ int main(int argc, char** argv)
|
|||||||
"Docbook output style. Available values: 'alt'")
|
"Docbook output style. Available values: 'alt'")
|
||||||
("output_member_variables", po::value<bool>(&config.output_member_variables),
|
("output_member_variables", po::value<bool>(&config.output_member_variables),
|
||||||
"Output member variables inside the class")
|
"Output member variables inside the class")
|
||||||
|
("alt_max_synopsis_length", po::value<unsigned>(&config.alt_max_synopsis_length),
|
||||||
|
"Maximum length of function synopsis used without shortened QBK section name.")
|
||||||
;
|
;
|
||||||
|
|
||||||
po::variables_map varmap;
|
po::variables_map varmap;
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
//
|
//
|
||||||
// Copyright (c) 2010-2015 Barend Gehrels, Amsterdam, the Netherlands.
|
// Copyright (c) 2010-2015 Barend Gehrels, Amsterdam, the Netherlands.
|
||||||
// Copyright (c) 2012-2015 Adam Wulkiewicz, Lodz, Poland.
|
// Copyright (c) 2012-2015 Adam Wulkiewicz, Lodz, Poland.
|
||||||
|
//
|
||||||
// This file was modified by Oracle on 2014, 2015.
|
// This file was modified by Oracle on 2014-2020.
|
||||||
// Modifications copyright (c) 2014-2015, Oracle and/or its affiliates.
|
// Modifications copyright (c) 2014-2020, Oracle and/or its affiliates.
|
||||||
|
|
||||||
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
|
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
|
||||||
|
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||||
|
//
|
||||||
// Use, modification and distribution is subject to the Boost Software License,
|
// Use, modification and distribution is subject to the Boost Software License,
|
||||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -769,6 +769,15 @@ std::string remove_template_parameters(std::string const& name)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string remove_template_parameters_block(std::string const& name)
|
||||||
|
{
|
||||||
|
std::string res = remove_template_parameters(name);
|
||||||
|
size_t i = res.find("<...>");
|
||||||
|
if (i != std::string::npos)
|
||||||
|
res = res.substr(0, i) + res.substr(i + 5);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
std::string replace_brackets(std::string const& str)
|
std::string replace_brackets(std::string const& str)
|
||||||
{
|
{
|
||||||
return boost::replace_all_copy(boost::replace_all_copy(str, "[", "\\["), "]", "\\]");
|
return boost::replace_all_copy(boost::replace_all_copy(str, "[", "\\["), "]", "\\]");
|
||||||
@ -793,26 +802,122 @@ void quickbook_output_enumerations(std::vector<enumeration> const& enumerations,
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void quickbook_synopsis_short(function const& f, std::ostream& out)
|
std::string quickbook_synopsis_short(function const& f)
|
||||||
{
|
{
|
||||||
|
std::string result;
|
||||||
|
|
||||||
if ( f.type != function_unknown )
|
if ( f.type != function_unknown )
|
||||||
out << f.name;
|
result += f.name;
|
||||||
|
|
||||||
bool first = true;
|
bool first = true;
|
||||||
BOOST_FOREACH(parameter const& p, f.parameters)
|
BOOST_FOREACH(parameter const& p, f.parameters)
|
||||||
{
|
{
|
||||||
if ( !p.skip && p.default_value.empty() )
|
if ( !p.skip && p.default_value.empty() )
|
||||||
{
|
{
|
||||||
out << (first ? "(" : ", ") << remove_template_parameters(p.fulltype_without_links);
|
result += first ? "(" : ", ";
|
||||||
|
result += remove_template_parameters(p.fulltype_without_links);
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (! first)
|
if (! first)
|
||||||
out << ")";
|
result += ")";
|
||||||
else if (f.type != function_define)
|
else if (f.type != function_define)
|
||||||
out << "()";
|
result += "()";
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string quickbook_section_escape_characters(std::string const& name)
|
||||||
|
{
|
||||||
|
std::string result;
|
||||||
|
result.reserve(name.size());
|
||||||
|
for (size_t i = 0; i < name.size(); ++i)
|
||||||
|
{
|
||||||
|
if ( ('a' <= name[i] && name[i] <= 'z')
|
||||||
|
|| ('0' <= name[i] && name[i] <= '9') )
|
||||||
|
result += name[i];
|
||||||
|
else if ('A' <= name[i] && name[i] <= 'Z')
|
||||||
|
result += name[i] + ('a' - 'A');
|
||||||
|
else if (name[i] == '_')
|
||||||
|
result += '_';
|
||||||
|
else
|
||||||
|
{
|
||||||
|
std::stringstream ss;
|
||||||
|
ss << ((int)(unsigned char)(name[i]));
|
||||||
|
result += ss.str();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string quickbook_section_function(function const& f, size_t param_length = 3)
|
||||||
|
{
|
||||||
|
if (param_length < 1)
|
||||||
|
param_length = 1;
|
||||||
|
|
||||||
|
std::string result;
|
||||||
|
|
||||||
|
if ( f.type != function_unknown )
|
||||||
|
result += quickbook_section_escape_characters(f.name);
|
||||||
|
|
||||||
|
BOOST_FOREACH(parameter const& p, f.parameters)
|
||||||
|
{
|
||||||
|
if ( !p.skip && p.default_value.empty() )
|
||||||
|
{
|
||||||
|
std::string pn = remove_template_parameters_block(p.fulltype_without_links);
|
||||||
|
size_t i = pn.find(p.type);
|
||||||
|
if (i != std::string::npos)
|
||||||
|
pn = pn.substr(0, i) + pn.substr(i + p.type.size());
|
||||||
|
|
||||||
|
std::string mods;
|
||||||
|
if (pn.find("const") != std::string::npos)
|
||||||
|
mods += 'c';
|
||||||
|
if (pn.find("volatile") != std::string::npos)
|
||||||
|
mods += 'v';
|
||||||
|
if (pn.find("&&") != std::string::npos)
|
||||||
|
mods += "rr";
|
||||||
|
else if (pn.find("&") != std::string::npos)
|
||||||
|
mods += 'r';
|
||||||
|
|
||||||
|
size_t n = (std::min)(param_length, (size_t)p.type.size());
|
||||||
|
if (n > 0)
|
||||||
|
{
|
||||||
|
result += '_';
|
||||||
|
result += quickbook_section_escape_characters(p.type.substr(0, n));
|
||||||
|
if (!mods.empty())
|
||||||
|
{
|
||||||
|
result += '_';
|
||||||
|
result += mods;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string quickbook_section_class(std::string const& name, size_t namespace_length = 3)
|
||||||
|
{
|
||||||
|
if (namespace_length < 1)
|
||||||
|
namespace_length = 1;
|
||||||
|
|
||||||
|
std::string result;
|
||||||
|
size_t b = 0;
|
||||||
|
for (;;)
|
||||||
|
{
|
||||||
|
size_t e = name.find("::", b);
|
||||||
|
if (e != std::string::npos)
|
||||||
|
{
|
||||||
|
size_t n = (std::min)(e - b, namespace_length);
|
||||||
|
result += quickbook_section_escape_characters(name.substr(b, n)) + '_';
|
||||||
|
b = e + 2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
result += quickbook_section_escape_characters(name.substr(b));
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void quickbook_output_functions(std::vector<function> const& functions,
|
void quickbook_output_functions(std::vector<function> const& functions,
|
||||||
@ -855,7 +960,7 @@ void quickbook_output_functions(std::vector<function> const& functions,
|
|||||||
out << "]";
|
out << "]";
|
||||||
}
|
}
|
||||||
out << "[[link " << f.id << " `";
|
out << "[[link " << f.id << " `";
|
||||||
quickbook_synopsis_short(f, out);
|
out << quickbook_synopsis_short(f);
|
||||||
out << "`]]";
|
out << "`]]";
|
||||||
out << "[" << f.brief_description << "]";
|
out << "[" << f.brief_description << "]";
|
||||||
out << "]" << std::endl;
|
out << "]" << std::endl;
|
||||||
@ -1171,7 +1276,7 @@ bool has_brief_description(Range const& rng, function_type t)
|
|||||||
|
|
||||||
void quickbook_output_functions_details(std::vector<function> const& functions,
|
void quickbook_output_functions_details(std::vector<function> const& functions,
|
||||||
function_type type,
|
function_type type,
|
||||||
configuration const& ,
|
configuration const& config,
|
||||||
std::ostream& out,
|
std::ostream& out,
|
||||||
bool display_all = false)
|
bool display_all = false)
|
||||||
{
|
{
|
||||||
@ -1185,10 +1290,17 @@ void quickbook_output_functions_details(std::vector<function> const& functions,
|
|||||||
if ( display_all || f.type == type )
|
if ( display_all || f.type == type )
|
||||||
{
|
{
|
||||||
// Section
|
// Section
|
||||||
std::stringstream ss;
|
|
||||||
quickbook_synopsis_short(f, ss);
|
|
||||||
out << "[#" << f.id << "]" << std::endl;
|
out << "[#" << f.id << "]" << std::endl;
|
||||||
out << "[section " << replace_brackets(ss.str()) << "]" << std::endl;
|
std::string synopsis_short = quickbook_synopsis_short(f);
|
||||||
|
if (config.alt_max_synopsis_length > 0
|
||||||
|
&& synopsis_short.size() > config.alt_max_synopsis_length)
|
||||||
|
{
|
||||||
|
out << "[section:" << quickbook_section_function(f) << " " << synopsis_short << "]" << std::endl;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
out << "[section " << synopsis_short << "]" << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
quickbook_output_indexterm(f.name, out);
|
quickbook_output_indexterm(f.name, out);
|
||||||
|
|
||||||
@ -1354,24 +1466,24 @@ void quickbook_output_alt(documentation const& doc, configuration const& config,
|
|||||||
{
|
{
|
||||||
if ( !doc.group_id.empty() )
|
if ( !doc.group_id.empty() )
|
||||||
{
|
{
|
||||||
std::cout << "[section:" << doc.group_id << " " << doc.group_title << "]" << std::endl;
|
out << "[section:" << doc.group_id << " " << doc.group_title << "]" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !doc.enumerations.empty() )
|
if ( !doc.enumerations.empty() )
|
||||||
{
|
{
|
||||||
std::cout << "[heading Enumerations]\n";
|
out << "[heading Enumerations]\n";
|
||||||
quickbook_output_enumerations(doc.enumerations, config, out);
|
quickbook_output_enumerations(doc.enumerations, config, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !doc.defines.empty() )
|
if ( !doc.defines.empty() )
|
||||||
{
|
{
|
||||||
std::cout << "[heading Defines]\n";
|
out << "[heading Defines]\n";
|
||||||
quickbook_output_functions(doc.defines, function_unknown, config, out, true, "Define");
|
quickbook_output_functions(doc.defines, function_unknown, config, out, true, "Define");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !doc.functions.empty() )
|
if ( !doc.functions.empty() )
|
||||||
{
|
{
|
||||||
std::cout << "[heading Functions]\n";
|
out << "[heading Functions]\n";
|
||||||
quickbook_output_functions(doc.functions, function_unknown, config, out, true, "Function");
|
quickbook_output_functions(doc.functions, function_unknown, config, out, true, "Function");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1400,6 +1512,7 @@ void quickbook_output_alt(class_or_struct const& cos, configuration const& confi
|
|||||||
if ( !cos.id.empty() )
|
if ( !cos.id.empty() )
|
||||||
out << "[#" << cos.id << "]" << std::endl;
|
out << "[#" << cos.id << "]" << std::endl;
|
||||||
out << "[section " << short_name << "]" << std::endl << std::endl;
|
out << "[section " << short_name << "]" << std::endl << std::endl;
|
||||||
|
//out << "[section:" << quickbook_section_class(short_name, 1) << " " << short_name << "]" << std::endl << std::endl;
|
||||||
|
|
||||||
// WARNING! Can't be used in the case of specializations
|
// WARNING! Can't be used in the case of specializations
|
||||||
quickbook_output_indexterm(short_name, out);
|
quickbook_output_indexterm(short_name, out);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user