summaryrefslogtreecommitdiffstats
path: root/examples/group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/group.cpp')
-rw-r--r--examples/group.cpp76
1 files changed, 49 insertions, 27 deletions
diff --git a/examples/group.cpp b/examples/group.cpp
index 53ea371..0993cc2 100644
--- a/examples/group.cpp
+++ b/examples/group.cpp
@@ -1,52 +1,74 @@
-/*! \defgroup group1 The First Group
+/** @defgroup group1 The First Group
* This is the first group
+ * @{
*/
-/*! \defgroup group2 The Second Group
+/** @brief class C1 in group 1 */
+class C1 {};
+
+/** @brief class C2 in group 1 */
+class C2 {};
+
+/** function in group 1 */
+void func() {}
+
+/** @} end of group1 */
+
+/**
+ * @defgroup group2 The Second Group
* This is the second group
*/
-/*! \defgroup group3 The Third Group
+/** @defgroup group3 The Third Group
* This is the third group
*/
-/*! \defgroup group4 The Fourth Group
- * \ingroup group3
+/** @defgroup group4 The Fourth Group
+ * @ingroup group3
* Group 4 is a subgroup of group 3
*/
-/*! \ingroup group1
- * \brief class C1 in group 1
- */
-class C1 {};
-
-/*! \ingroup group1
- * \brief class C2 in group 1
- */
-class C2 {};
-
-/*! \ingroup group2
- * \brief class C3 in group 2
+/**
+ * @ingroup group2
+ * @brief class C3 in group 2
*/
class C3 {};
-/*! \ingroup group2
- * \brief class C4 in group 2
+/** @ingroup group2
+ * @brief class C4 in group 2
*/
class C4 {};
-/*! \ingroup group3
- * \brief class C5 in \link group3 the third group\endlink.
+/** @ingroup group3
+ * @brief class C5 in @link group3 the third group@endlink.
*/
class C5 {};
-/*! \ingroup group1 group2 group3 group4
- * namespace N1 is in all groups
- * \sa \link group1 The first group\endlink, group2, group3, group4
+/** @ingroup group1 group2 group3 group4
+ * namespace N1 is in four groups
+ * @sa @link group1 The first group@endlink, group2, group3, group4
+ *
+ * Also see @ref mypage2
*/
namespace N1 {};
-/*! \file
- * \ingroup group3
- * \brief this file in group 3
+/** @file
+ * @ingroup group3
+ * @brief this file in group 3
+ */
+
+/** @defgroup group5 The Fifth Group
+ * This is the fifth group
+ * @{
+ */
+
+/** @page mypage1 This is a section in group 5
+ * Text of the first section
+ */
+
+/** @page mypage2 This is another section in group 5
+ * Text of the second section
*/
+
+/** @} */
+