diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-12-14 15:39:29 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-12-25 12:43:31 (GMT) |
commit | fe818bf8e3a154788a4a180068cfdfbbadd66ff6 (patch) | |
tree | c08545cd15e627b36eef1e0d0a7eb4fa0bb76437 /src/dot.h | |
parent | 3ebc431569aa6566389f3f3fc00aae7b8a90e58b (diff) | |
download | Doxygen-fe818bf8e3a154788a4a180068cfdfbbadd66ff6.zip Doxygen-fe818bf8e3a154788a4a180068cfdfbbadd66ff6.tar.gz Doxygen-fe818bf8e3a154788a4a180068cfdfbbadd66ff6.tar.bz2 |
Added graphical hierarchy support to template engine
Diffstat (limited to 'src/dot.h')
-rw-r--r-- | src/dot.h | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -122,6 +122,7 @@ class DotNode friend class DotNodeList; friend class DotCallGraph; friend class DotGroupCollaboration; + friend class DotInheritanceGraph; friend QCString computeMd5Signature( DotNode *root, GraphType gt, @@ -133,12 +134,15 @@ class DotNode ); }; -inline int DotNode::findParent( DotNode *n ) +/** Class representing a list of DotNode objects. */ +class DotNodeList : public QList<DotNode> { - if( !m_parents ) - return -1; - return m_parents->find(n); -} + public: + DotNodeList() : QList<DotNode>() {} + ~DotNodeList() {} + private: + int compareValues(const DotNode *n1,const DotNode *n2) const; +}; /** Represents a graphical class hierarchy */ class DotGfxHierarchyTable @@ -147,6 +151,8 @@ class DotGfxHierarchyTable DotGfxHierarchyTable(); ~DotGfxHierarchyTable(); void writeGraph(FTextStream &t,const char *path, const char *fileName) const; + void createGraph(DotNode *rootNode,FTextStream &t,const char *path,const char *fileName,int id) const; + const DotNodeList *subGraphs() const { return m_rootSubgraphs; } private: void addHierarchy(DotNode *n,ClassDef *cd,bool hide); |