summaryrefslogtreecommitdiffstats
path: root/trunk/examples/memgrp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/examples/memgrp.cpp')
-rw-r--r--trunk/examples/memgrp.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/trunk/examples/memgrp.cpp b/trunk/examples/memgrp.cpp
new file mode 100644
index 0000000..77f03a4
--- /dev/null
+++ b/trunk/examples/memgrp.cpp
@@ -0,0 +1,41 @@
+/** A class. Details */
+class Test
+{
+ public:
+ //@{
+ /** Same documentation for both members. Details */
+ void func1InGroup1();
+ void func2InGroup1();
+ //@}
+
+ /** Function without group. Details. */
+ void ungroupedFunction();
+ void func1InGroup2();
+ protected:
+ void func2InGroup2();
+};
+
+void Test::func1InGroup1() {}
+void Test::func2InGroup1() {}
+
+/** @name Group2
+ * Description of group 2.
+ */
+///@{
+/** Function 2 in group 2. Details. */
+void Test::func2InGroup2() {}
+/** Function 1 in group 2. Details. */
+void Test::func1InGroup2() {}
+///@}
+
+/*! \file
+ * docs for this file
+ */
+
+//!@{
+//! one description for all members of this group
+//! (because DISTRIBUTE_GROUP_DOC is YES in the config file)
+#define A 1
+#define B 2
+void glob_func();
+//!@}