|
Doxygen
|
Representation of an include dependency graph. More...
#include <src/dotincldepgraph.h>
Public Member Functions | |
| DotInclDepGraph (const FileDef *fd, bool inverse) | |
| ~DotInclDepGraph () override | |
| DString | writeGraph (TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const DString &path, const DString &fileName, const DString &relPath, bool writeImageMap=true, int graphId=-1) |
| bool | isTrivial () const |
| bool | isTooBig () const |
| int | numNodes () const |
| void | writeXML (TextStream &t) |
| void | writeDocbook (TextStream &t) |
| Public Member Functions inherited from DotGraph | |
| DotGraph () | |
| virtual | ~DotGraph ()=default |
Protected Member Functions | |
| DString | getBaseName () const override |
| DString | getMapLabel () const override |
| void | computeTheGraph () override |
| Protected Member Functions inherited from DotGraph | |
| int | getNextNodeNumber () |
| returns the node number. | |
| int | getNextEdgeNumber () |
| returns the edge number. | |
| DString | writeGraph (TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const DString &path, const DString &fileName, const DString &relPath, bool writeImageMap=true, int graphId=-1) |
| virtual DString | absMapName () const |
| virtual DString | getImgAltText () const |
| DString | absBaseName () const |
| DString | absDotName () const |
| DString | imgName () const |
| DString | absImgName () const |
| DString | relImgName () const |
Private Member Functions | |
| DString | diskName () const |
| void | buildGraph (DotNode *n, const FileDef *fd, int distance) |
| void | determineVisibleNodes (DotNodeDeque &queue, int &maxNodes) |
| void | determineTruncatedNodes (DotNodeDeque &queue) |
Private Attributes | |
| DotNode * | m_startNode |
| DotNodeMap | m_usedNodes |
| DString | m_inclDepFileName |
| DString | m_inclByDepFileName |
| bool | m_inverse |
Additional Inherited Members | |
| Static Protected Member Functions inherited from DotGraph | |
| static void | writeGraphHeader (TextStream &t, const DString &title=DString()) |
| static void | writeGraphFooter (TextStream &t) |
| static void | computeGraph (DotNode *root, GraphType gt, GraphOutputFormat format, const DString &rank, bool renderParents, bool backArrows, const DString &title, DString &graphStr) |
| Protected Attributes inherited from DotGraph | |
| GraphOutputFormat | m_graphFormat = GraphOutputFormat::BITMAP |
| EmbeddedOutputFormat | m_textFormat = EmbeddedOutputFormat::Html |
| Dir | m_dir |
| DString | m_fileName |
| DString | m_relPath |
| bool | m_generateImageMap = false |
| int | m_graphId = 0 |
| DString | m_absPath |
| DString | m_baseName |
| DString | m_theGraph |
| bool | m_regenerate = false |
| bool | m_doNotAddImageToIndex = false |
| bool | m_noDivTag = false |
| bool | m_zoomable = true |
| bool | m_urlOnly = false |
Representation of an include dependency graph.
Definition at line 29 of file dotincldepgraph.h.
| DotInclDepGraph::DotInclDepGraph | ( | const FileDef * | fd, |
| bool | inverse ) |
Definition at line 125 of file dotincldepgraph.cpp.
References FileDef::absFilePath(), ASSERT, Definition::briefDescriptionAsTooltip(), buildGraph(), Config_getInt, determineTruncatedNodes(), determineVisibleNodes(), FileDef::docName(), DotNode::DotNode(), Definition::getOutputFileBase(), Definition::getReference(), FileDef::includedByDependencyGraphFileName(), FileDef::includeDependencyGraphFileName(), m_inclByDepFileName, m_inclDepFileName, m_inverse, m_startNode, m_usedNodes, DotNode::setDistance(), and DString::str().
|
override |
Definition at line 151 of file dotincldepgraph.cpp.
References DotNode::deleteNodes(), and m_startNode.
Definition at line 24 of file dotincldepgraph.cpp.
References FileDef::absFilePath(), DotNode::addChild(), DotNode::addParent(), EdgeInfo::Blue, Definition::briefDescriptionAsTooltip(), buildGraph(), Config_getBool, DotGraph::DotNode, DotNode::DotNode(), DString::DString(), FileDef::generateSourceFile(), Definition::getOutputFileBase(), Definition::getReference(), Definition::getSourceFileBase(), FileDef::includedByFileList(), FileDef::includeFileList(), Definition::isHidden(), Definition::isLinkable(), m_inverse, m_usedNodes, DotNode::setDistance(), EdgeInfo::Solid, and DString::str().
Referenced by buildGraph(), diskName(), and DotInclDepGraph().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 168 of file dotincldepgraph.cpp.
References DotGraph::computeGraph(), Dependency, DotNode::label(), DotGraph::m_graphFormat, m_inverse, m_startNode, and DotGraph::m_theGraph.
|
private |
Definition at line 100 of file dotincldepgraph.cpp.
References DotNode::children(), DotGraph::DotNode, DotNode::isTruncated(), DotNode::isVisible(), DotNode::markAsTruncated(), and DotNode::Unknown.
Referenced by diskName(), and DotInclDepGraph().
|
private |
Definition at line 81 of file dotincldepgraph.cpp.
References DotNode::children(), Config_getInt, DotNode::distance(), DotGraph::DotNode, DotNode::isVisible(), and DotNode::markAsVisible().
Referenced by diskName(), and DotInclDepGraph().
|
private |
References buildGraph(), determineTruncatedNodes(), determineVisibleNodes(), and DotGraph::DotNode.
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 156 of file dotincldepgraph.cpp.
References m_inclByDepFileName, m_inclDepFileName, and m_inverse.
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 174 of file dotincldepgraph.cpp.
References escapeCharsInString(), DotNode::label(), m_inverse, and m_startNode.
| bool DotInclDepGraph::isTooBig | ( | ) | const |
Definition at line 205 of file dotincldepgraph.cpp.
References Config_getInt, and numNodes().
Referenced by FileDefImpl::writeIncludedByGraph(), and FileDefImpl::writeIncludeGraph().
| bool DotInclDepGraph::isTrivial | ( | ) | const |
Definition at line 200 of file dotincldepgraph.cpp.
References DotNode::children(), and m_startNode.
Referenced by generateXMLForFile(), FileDefImpl::writeIncludedByGraph(), and FileDefImpl::writeIncludeGraph().
| int DotInclDepGraph::numNodes | ( | ) | const |
Definition at line 210 of file dotincldepgraph.cpp.
References DotNode::children(), and m_startNode.
Referenced by isTooBig(), FileDefImpl::writeIncludedByGraph(), and FileDefImpl::writeIncludeGraph().
| void DotInclDepGraph::writeDocbook | ( | TextStream & | t | ) |
Definition at line 223 of file dotincldepgraph.cpp.
References m_usedNodes.
| DString DotInclDepGraph::writeGraph | ( | TextStream & | t, |
| GraphOutputFormat | gf, | ||
| EmbeddedOutputFormat | ef, | ||
| const DString & | path, | ||
| const DString & | fileName, | ||
| const DString & | relPath, | ||
| bool | writeImageMap = true, | ||
| int | graphId = -1 ) |
Definition at line 186 of file dotincldepgraph.cpp.
References Html, DotGraph::m_doNotAddImageToIndex, and DotGraph::writeGraph().
Referenced by DocbookGenerator::endInclDepGraph(), HtmlGenerator::endInclDepGraph(), LatexGenerator::endInclDepGraph(), and RTFGenerator::endInclDepGraph().
| void DotInclDepGraph::writeXML | ( | TextStream & | t | ) |
Definition at line 215 of file dotincldepgraph.cpp.
References m_usedNodes.
Referenced by generateXMLForFile().
|
private |
Definition at line 59 of file dotincldepgraph.h.
Referenced by DotInclDepGraph(), and getBaseName().
|
private |
Definition at line 58 of file dotincldepgraph.h.
Referenced by DotInclDepGraph(), and getBaseName().
|
private |
Definition at line 60 of file dotincldepgraph.h.
Referenced by buildGraph(), computeTheGraph(), DotInclDepGraph(), getBaseName(), and getMapLabel().
|
private |
Definition at line 56 of file dotincldepgraph.h.
Referenced by computeTheGraph(), DotInclDepGraph(), getMapLabel(), isTrivial(), numNodes(), and ~DotInclDepGraph().
|
private |
Definition at line 57 of file dotincldepgraph.h.
Referenced by buildGraph(), DotInclDepGraph(), writeDocbook(), and writeXML().