diff options
Diffstat (limited to 'src/dotgraph.h')
-rw-r--r-- | src/dotgraph.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dotgraph.h b/src/dotgraph.h index 417ebe3..db2340b 100644 --- a/src/dotgraph.h +++ b/src/dotgraph.h @@ -32,14 +32,17 @@ enum GraphType { Dependency, Inheritance, Collaboration, Hierarchy, C /** A dot graph */ class DotGraph { + friend class DotNode; public: DotGraph() : m_doNotAddImageToIndex(FALSE), m_noDivTag(FALSE), m_zoomable(TRUE), m_urlOnly(FALSE) {} virtual ~DotGraph() = default; protected: - /** returns node numbers. The Counter is reset by the constructor */ + /** returns the node number. */ int getNextNodeNumber() { return ++m_curNodeNumber; } + /** returns the edge number. */ + int getNextEdgeNumber() { return ++m_curEdgeNumber; } QCString writeGraph(TextStream &t, GraphOutputFormat gf, @@ -102,6 +105,7 @@ class DotGraph void generateCode(TextStream &t); int m_curNodeNumber = 0; + int m_curEdgeNumber = 0; }; #endif |