使用 doxygen 进行子分组 - >输出到 UML 图得到重复

subgrouping with doxygen -> output to uml diagram gets duplicated

本文关键字:输出 UML gt doxygen 使用      更新时间:2023-10-16

嗨!我有一些代码,我想由doxygen记录下来。因此,我对工作良好的UML图很感兴趣,但现在我想使用一些像这样的子组:

///@{
/// @name The lame constants
/// @details There are two seperate vectors for the first lame constant (in water and ground) but only one for the shear module (also known as second lame constant), since shear module for water is zero! Every element of the vector belongs to one grid point, linear interpolation within vertical direction will be applied. By using this the assumption of an isotrope media is made!
std::vector<double> lamw;           ///< first lame constant for the water area
std::vector<std::complex<double> > lamb;    ///< first lame constant for the area beyond the seabed
std::vector<double> mub;            ///< shear module (second lame constant) for the area beyond the seabed 
///@}

我希望在"公共成员"组中有一个子组(因为变量是在类中定义的(。

但实际情况是:

--------------------
| className        |
--------------------
| + lamw           |
| + lamb           |
| + mub            |
--------------------
| * lamw           |
| * lamb           |
| * mub            |
--------------------

变量显示两次:在成员变量部分和方法部分。当然,这并不是我想发生的事情(星号的部分"太多了"(。。。

所以doxygen似乎与我使用的子组混淆了——我在这里犯了一些错误吗?

这是一个已知的错误。。。。目前尚不清楚这是否是"不会修复"。该代码除了在类图的末尾附加成员组项之外,不尝试做任何事情。

https://bugzilla.gnome.org/show_bug.cgi?id=421218