gpt4 book ai didi

doxygen - 如何在 Doxygen 中引用组

转载 作者:行者123 更新时间:2023-12-04 00:35:55 25 4
gpt4 key购买 nike

我知道我们可以使用 \defgroup关键字在doxygen中定义一个组并使用关键字\addtogroup在该组中添加类.我的问题是如何在文档中引用该组。例如,

/**
* \defgroup abc abc
*/

/**
* \addtogroup auxiliary_functions
* @{
*/

/**
* Introduction to A.
*/
class A
{

};
/*
* @}
*/

那么,在一个page section中,如何引用abc组呢?
/** @page tttt
* how to refer to group abc?
*
*/

最佳答案

您可以通过使用其标签来引用任何组。在你的情况下,引用 abc来自页面的群组 ttt使用以下

/** @page tttt
*
* For more information, please see @ref abc
*/

结果页面将包含一个指向您的组的链接,其文本将反射(reflect)组的标题(在您的情况下为 abc )。

关于doxygen - 如何在 Doxygen 中引用组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42815157/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com