使doxygen生成到用作模板参数的类的链接

时间:2014-01-28 09:40:05

标签: c++ templates inheritance doxygen

假设我有一个像这样的简单类层次结构:

template<class T> class TBase {};

class Param {};

class Derived : TBase<Param> {};

此处Derived类派生自专门使用TBase类的模板Param类。 Doxygen为Derived生成以下继承图:

enter image description here

协作图看起来完全一样。 Doxygen看到我使用Param类来构造我的Derived类。但是这个类没有来自Derived类的文档页面的链接!我可以点击带有TBase<T>TBase<Param>的矩形来访问TBase类的页面,但只需点击一下就无法进入Param课程。

更重要的是,我希望在协作图上看到如下内容:

enter image description here

现在很明显,我使用Param来构建Derived。有没有办法让doxygen生成这样的图表?或者有没有办法至少使箭头的<Param>标题可点击?

PS。我使用了以下doxygen设置:

HAVE_DOT               = YES
TEMPLATE_RELATIONS     = YES 
HIDE_UNDOC_CLASSES     = NO 
CLASS_GRAPH            = YES  
COLLABORATION_GRAPH    = YES    

0 个答案:

没有答案
相关问题