有没有办法在 doxygen 中引用 class' @brief?
Is there a way to refer to the class' @brief in the doxygen?
比方说,我们有以下 doxygen 评论:
/**
* @brief The cool class.
*
* More info...
*/
class A {};
我想要那个“很酷的 class”。简介已出现在某个任意位置。例如,我想制作一个 table 列表,其中包含一些任意 classes 及其简短描述。所以,我可以选择在这里手动编写摘要,但看起来这个摘要将与那些摘要相同。因此,最好在此 table 中加入一些构造以跳过信息加倍。
我认为 \copybrief
命令适合于此,只是一个带有列表的模型:
/// \file
///
/// Lets try to make a list:
/// - \copybrief A
/// - \copybrief B
/// \brief The cool class
class A {};
/// \brief The other cool class
class B {};
在文件的详细描述中列表中的结果:
比方说,我们有以下 doxygen 评论:
/**
* @brief The cool class.
*
* More info...
*/
class A {};
我想要那个“很酷的 class”。简介已出现在某个任意位置。例如,我想制作一个 table 列表,其中包含一些任意 classes 及其简短描述。所以,我可以选择在这里手动编写摘要,但看起来这个摘要将与那些摘要相同。因此,最好在此 table 中加入一些构造以跳过信息加倍。
我认为 \copybrief
命令适合于此,只是一个带有列表的模型:
/// \file
///
/// Lets try to make a list:
/// - \copybrief A
/// - \copybrief B
/// \brief The cool class
class A {};
/// \brief The other cool class
class B {};
在文件的详细描述中列表中的结果: