summaryrefslogtreecommitdiffstats
path: root/examples/memgrp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/memgrp.cpp')
-rw-r--r--examples/memgrp.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/memgrp.cpp b/examples/memgrp.cpp
new file mode 100644
index 0000000..5501d71
--- /dev/null
+++ b/examples/memgrp.cpp
@@ -0,0 +1,32 @@
+/** A class. Details */
+class Test
+{
+ public:
+ /** @name Group1
+ */
+ //@{
+ /** Function 1 in group 1. 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() {}
+//@}
+