Skip to content

Commit 364826b

Browse files
committed
Include @group directives for Synopsis
[SVN r20364]
1 parent e9b308d commit 364826b

7 files changed

Lines changed: 30 additions & 16 deletions

File tree

include/boost/python/class.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class class_ : public objects::class_base
422422
// (possibly not wrapped) base class of T, an lvalue argument of
423423
// type T will be required.
424424
//
425-
// {
425+
// @group make_fn {
426426
template <class F>
427427
object make_fn(F const& f)
428428
{
@@ -476,6 +476,7 @@ class class_ : public objects::class_base
476476
// These two overloads discriminate between def() as applied to a
477477
// generic visitor and everything else.
478478
//
479+
// @group def_impl {
479480
template <class Helper, class LeafVisitor, class Visitor>
480481
inline void def_impl(
481482
char const* name
@@ -509,12 +510,14 @@ class class_ : public objects::class_base
509510

510511
this->def_default(name, fn, helper, mpl::bool_<Helper::has_default_implementation>());
511512
}
513+
// }
512514

513515
//
514516
// These two overloads handle the definition of default
515517
// implementation overloads for virtual functions. The second one
516518
// handles the case where no default implementation was specified.
517519
//
520+
// @group def_default {
518521
template <class Fn, class Helper>
519522
inline void def_default(
520523
char const* name
@@ -535,13 +538,15 @@ class class_ : public objects::class_base
535538
template <class Fn, class Helper>
536539
inline void def_default(char const*, Fn, Helper const&, mpl::bool_<false>)
537540
{ }
541+
// }
538542

539543
//
540544
// These two overloads discriminate between def() as applied to
541545
// regular functions and def() as applied to the result of
542546
// BOOST_PYTHON_FUNCTION_OVERLOADS(). The final argument is used to
543547
// discriminate.
544548
//
549+
// @group def_maybe_overloads {
545550
template <class OverloadsT, class SigT>
546551
void def_maybe_overloads(
547552
char const* name
@@ -571,6 +576,7 @@ class class_ : public objects::class_base
571576
);
572577

573578
}
579+
// }
574580
};
575581

576582

include/boost/python/detail/defaults_def.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace detail
4343
//
4444
// Dispatch to properly add f to namespace ns.
4545
//
46-
// { define_stub_function helpers
46+
// @group define_stub_function helpers {
4747
template <class Func, class CallPolicies, class NameSpaceT>
4848
static void name_space_def(
4949
NameSpaceT& name_space
@@ -122,7 +122,7 @@ namespace detail
122122
// (see defaults_gen.hpp)
123123
// 5. char const* name: doc string
124124
//
125-
// {
125+
// @group define_stub_function<N> {
126126
template <int N>
127127
struct define_stub_function {};
128128

include/boost/python/detail/make_keyword_range_fn.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace boost { namespace python { namespace detail {
2222
// arguments, because compile-time information about the number of
2323
// keywords is missing for all but the initial function definition.
2424
//
25-
// {
25+
// @group make_keyword_range_function {
2626
template <class F, class Policies>
2727
object make_keyword_range_function(
2828
F f

include/boost/python/make_constructor.hpp

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,13 @@ namespace detail
138138
typedef int type;
139139
};
140140

141-
// { make_constructor_aux
142141
//
143142
// These helper functions for make_constructor (below) do the raw work
144143
// of constructing a Python object from some invokable entity. See
145144
// <boost/python/detail/caller.hpp> for more information about how
146145
// the Sig arguments is used.
146+
//
147+
// @group make_constructor_aux {
147148
template <class F, class CallPolicies, class Sig>
148149
object make_constructor_aux(
149150
F f // An object that can be invoked by detail::invoke()
@@ -195,10 +196,12 @@ namespace detail
195196
}
196197
// }
197198

198-
199-
// { Helpers for make_constructor when called with 3 arguments. These
200-
// dispatch functions are used to discriminate between the cases
201-
// when the 3rd argument is keywords or when it is a signature.
199+
//
200+
// These dispatch functions are used to discriminate between the
201+
// cases when the 3rd argument is keywords or when it is a
202+
// signature.
203+
//
204+
// @group Helpers for make_constructor when called with 3 arguments. {
202205
//
203206
template <class F, class CallPolicies, class Keywords>
204207
object make_constructor_dispatch(F f, CallPolicies const& policies, Keywords const& kw, mpl::true_)
@@ -224,9 +227,10 @@ namespace detail
224227
// }
225228
}
226229

227-
// { These overloaded functions wrap a function or member function
230+
// These overloaded functions wrap a function or member function
228231
// pointer as a Python object, using optional CallPolicies,
229-
// Keywords, and/or Signature.
232+
// Keywords, and/or Signature. @group {
233+
//
230234
template <class F>
231235
object make_constructor(F f)
232236
{

include/boost/python/make_function.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ namespace detail
6363
, kw);
6464
}
6565

66-
// { Helpers for make_function when called with 3 arguments. These
66+
// Helpers for make_function when called with 3 arguments. These
6767
// dispatch functions are used to discriminate between the cases
6868
// when the 3rd argument is keywords or when it is a signature.
6969
//
70+
// @group {
7071
template <class F, class CallPolicies, class Keywords>
7172
object make_function_dispatch(F f, CallPolicies const& policies, Keywords const& kw, mpl::true_)
7273
{
@@ -92,9 +93,11 @@ namespace detail
9293

9394
}
9495

95-
// { These overloaded functions wrap a function or member function
96+
// These overloaded functions wrap a function or member function
9697
// pointer as a Python object, using optional CallPolicies,
9798
// Keywords, and/or Signature.
99+
//
100+
// @group {
98101
template <class F>
99102
object make_function(F f)
100103
{

include/boost/python/pure_virtual.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace boost { namespace python {
1818
namespace detail
1919
{
2020
//
21-
// { Helpers for pure_virtual_visitor, below.
21+
// @group Helpers for pure_virtual_visitor. {
2222
//
2323

2424
// Raises a Python RuntimeError reporting that a pure virtual
@@ -55,7 +55,7 @@ namespace detail
5555
}
5656

5757
//
58-
// } Helpers for pure_virtual_visitor
58+
// }
5959
//
6060

6161
//

include/boost/python/signature.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ struct most_derived
4949
>::type type;
5050
};
5151

52-
// {
5352
// The following macros generate expansions for::
5453
//
5554
// template <class RT, class T0... class TN>
@@ -99,6 +98,8 @@ struct most_derived
9998
// this" argument of member functions to Target, because the function
10099
// may actually be a member of a base class which is not wrapped, and
101100
// in that case conversion from python would fail.
101+
//
102+
// @group {
102103

103104
# define BOOST_PP_ITERATION_PARAMS_1 \
104105
(3, (0, BOOST_PYTHON_MAX_ARITY, <boost/python/signature.hpp>))

0 commit comments

Comments
 (0)