mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-12 05:41:42 +00:00
Merged revisions 55370,55729,56440,56570-56571,56603,56697-56699 via svnmerge from https://svn.boost.org/svn/boost/trunk ........ r55370 | danieljames | 2009-08-02 19:18:14 +0100 (Sun, 02 Aug 2009) | 1 line Pass through more elements in doxygen2boostbook. Refs #3309. ........ r55729 | danieljames | 2009-08-23 11:07:25 +0100 (Sun, 23 Aug 2009) | 3 lines Add depencies on doxygen documentation to standalone documentation targets. This seems to be needed for building pdfs. ........ r56440 | danieljames | 2009-09-27 20:11:39 +0100 (Sun, 27 Sep 2009) | 1 line Fix silly error in doxygen test file. ........ r56570 | danieljames | 2009-10-04 11:37:36 +0100 (Sun, 04 Oct 2009) | 1 line Clean up some unordered TODOs. ........ r56571 | danieljames | 2009-10-04 11:37:56 +0100 (Sun, 04 Oct 2009) | 1 line Detab. ........ r56603 | danieljames | 2009-10-05 22:29:39 +0100 (Mon, 05 Oct 2009) | 1 line Various inspect fixes. ........ r56697 | danieljames | 2009-10-10 14:00:28 +0100 (Sat, 10 Oct 2009) | 1 line Add forwarding html file for accumulators. ........ r56698 | danieljames | 2009-10-10 14:01:14 +0100 (Sat, 10 Oct 2009) | 1 line Missing newline. ........ r56699 | danieljames | 2009-10-10 14:01:30 +0100 (Sat, 10 Oct 2009) | 1 line Add copyright to boostbook reference xml. ........ [SVN r56702]
100 lines
2.4 KiB
C++
100 lines
2.4 KiB
C++
|
|
// Copyright 2009 Daniel James.
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
/*!
|
|
\class example::example
|
|
|
|
\brief Documentation for class example
|
|
*/
|
|
|
|
/*!
|
|
\def EXAMPLE
|
|
|
|
\brief Documentation for macro example
|
|
*/
|
|
|
|
int global_integer;
|
|
static int global_static_integer;
|
|
const int global_const_integer = 1;
|
|
static const int global_static_const_integer = 2;
|
|
enum global_enum { enumerator1 = 1, enumerator2 };
|
|
|
|
namespace example
|
|
{
|
|
int namespace_integer;
|
|
static int namespace_static_integer;
|
|
const int namespace_const_integer = 1;
|
|
static const int namespace_static_const_integer = 2;
|
|
enum namespace_enum { enumerator };
|
|
|
|
class example
|
|
{
|
|
public:
|
|
int integer;
|
|
static int static_integer;
|
|
mutable int mutable_integer;
|
|
const int const_integer;
|
|
static const int static_const_integer;
|
|
|
|
class inner_class {
|
|
public:
|
|
int x;
|
|
}
|
|
|
|
enum class_enum { enumerator };
|
|
|
|
/// INTERNAL ONLY
|
|
enum internal_enum { internal_enumerator };
|
|
protected:
|
|
int protected_integer;
|
|
static int protected_static_integer;
|
|
mutable int protected_mutable_integer;
|
|
const int protected_const_integer;
|
|
static const int protected_static_const_integer;
|
|
|
|
enum protected_class_enum { enumerator2 };
|
|
private:
|
|
int private_integer;
|
|
static int private_static_integer;
|
|
mutable int private_mutable_integer;
|
|
const int private_const_integer;
|
|
static const int private_static_const_integer;
|
|
|
|
enum private_class_enum { enumerator3 };
|
|
};
|
|
|
|
/**
|
|
* Test some doxygen markup
|
|
*
|
|
* Embedded docbook list:
|
|
*
|
|
* \xmlonly
|
|
* <orderedlist><listitem>1</listitem><listitem>2</listitem></orderedlist>
|
|
* \endxmlonly
|
|
*
|
|
* \a Special \b Bold \c Typewriter \e Italics \em emphasis \p parameter
|
|
*
|
|
* \arg Arg1 first argument.
|
|
* \arg Arg2 second argument.
|
|
*
|
|
* \li First list item.
|
|
* \li Second list item
|
|
*
|
|
* Line 1\n
|
|
* Line 2
|
|
*
|
|
* \code
|
|
* void foo() {}
|
|
* \endcode
|
|
*
|
|
*/
|
|
|
|
template <typename TypeParameter, int NonTypeParameter,
|
|
typename TypeParameterWithDefault = int>
|
|
struct example_template {};
|
|
}
|
|
|
|
#define EXAMPLE(m) The macro
|