summaryrefslogtreecommitdiffstats
path: root/src/dot.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-06-07 11:47:47 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-06-07 11:47:47 (GMT)
commit0aa47e2a30513b04d1041d528f468d3434a81558 (patch)
treef17d17b67fdefdfdf992328f3f51dd90812c156e /src/dot.h
parent35c2baedaa68519999af733a87d8e6ff9a89358c (diff)
downloadDoxygen-0aa47e2a30513b04d1041d528f468d3434a81558.zip
Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.tar.gz
Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.tar.bz2
Release-1.3.1-20030607
Diffstat (limited to 'src/dot.h')
-rw-r--r--src/dot.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/dot.h b/src/dot.h
index e3246fb..1723e36 100644
--- a/src/dot.h
+++ b/src/dot.h
@@ -29,6 +29,7 @@ class FileDef;
class QTextStream;
class DotNodeList;
class ClassSDict;
+class MemberDef;
enum GraphOutputFormat { BITMAP , EPS };
@@ -48,7 +49,7 @@ struct EdgeInfo
class DotNode
{
public:
- enum GraphType { Dependency, Inheritance, Collaboration, Hierarchy };
+ enum GraphType { Dependency, Inheritance, Collaboration, Hierarchy, CallGraph };
DotNode(int n,const char *lab,const char *url,int distance = 0,bool rootNode=FALSE,ClassDef *cd=0);
~DotNode();
void addChild(DotNode *n,
@@ -96,6 +97,7 @@ class DotNode
friend class DotClassGraph;
friend class DotInclDepGraph;
friend class DotNodeList;
+ friend class DotCallGraph;
friend void writeDotGraph(
DotNode *root,
GraphType gt,
@@ -175,6 +177,25 @@ class DotInclDepGraph
int m_recDepth;
};
+class DotCallGraph
+{
+ public:
+ DotCallGraph(MemberDef *md,int maxRecursionDepth);
+ ~DotCallGraph();
+ QCString writeGraph(QTextStream &t, GraphOutputFormat f,
+ const char *path,bool writeImageMap=TRUE);
+ void buildGraph(DotNode *n,MemberDef *md,int distance);
+ bool isTrivial() const;
+
+ private:
+ DotNode *m_startNode;
+ static int m_curNodeNumber;
+ QDict<DotNode> *m_usedNodes;
+ int m_maxDistance;
+ int m_recDepth;
+ QCString m_diskName;
+};
+
void generateGraphLegend(const char *path);
void writeDotGraphFromFile(const char *inFile,const char *outDir,
const char *outFile,GraphOutputFormat format);