嘿!我有一些代码,我想用 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
///@}
我想要“公共(public)成员”组中的子组(因为变量是在类中定义的)。
但是发生的事情是这样的:
--------------------
| className |
--------------------
| + lamw |
| + lamb |
| + mub |
--------------------
| * lamw |
| * lamb |
| * mub |
--------------------
变量显示两次:在成员变量部分和方法部分。这当然不是我想要发生的事情(带有星号的部分“太多了”)...
所以 doxygen 似乎与我使用的子分组混淆了 - 我在这里犯了什么错误吗?
最佳答案
这是一个已知的错误....目前还不清楚它是否不会修复。除了在类图的末尾追加成员组项目之外,代码没有尝试做任何事情。
关于c++ - 使用 doxygen 分组 -> 到 uml 图的输出被复制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32175903/