|
Doxygen
|
Representation of a class inheritance or dependency graph. More...
#include <src/dotclassgraph.h>
Public Member Functions | |
| DotClassGraph (const ClassDef *cd, GraphType t) | |
| ~DotClassGraph () override | |
| bool | isTrivial () const |
| bool | isTooBig () const |
| int | numNodes () const |
| DString | writeGraph (TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const DString &path, const DString &fileName, const DString &relPath, bool TBRank=true, bool imageMap=true, int graphId=-1) |
| void | writeXML (TextStream &t) |
| void | writeDocbook (TextStream &t) |
| void | writeDEF (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 |
| DString | getImgAltText () const 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 |
| DString | absBaseName () const |
| DString | absDotName () const |
| DString | imgName () const |
| DString | absImgName () const |
| DString | relImgName () const |
Private Member Functions | |
| void | buildGraph (const ClassDef *cd, DotNode *n, bool base, int distance) |
| bool | determineVisibleNodes (DotNode *rootNode, int maxNodes, bool includeParents) |
| void | determineTruncatedNodes (DotNodeDeque &queue, bool includeParents) |
| void | addClass (const ClassDef *cd, DotNode *n, EdgeInfo::Colors color, const DString &label, const DString &usedName, const DString &templSpec, bool base, int distance) |
Private Attributes | |
| DotNode * | m_startNode |
| DotNodeMap | m_usedNodes |
| GraphType | m_graphType |
| DString | m_collabFileName |
| DString | m_inheritFileName |
| bool | m_lrRank |
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 a class inheritance or dependency graph.
Definition at line 29 of file dotclassgraph.h.
Definition at line 317 of file dotclassgraph.cpp.
References Definition::anchor(), Definition::briefDescriptionAsTooltip(), buildGraph(), ClassDef::collaborationGraphFileName(), Config_getInt, determineTruncatedNodes(), determineVisibleNodes(), Definition::displayName(), DotNode::DotNode(), DString::empty(), Definition::getOutputFileBase(), Definition::getReference(), Inheritance, ClassDef::inheritanceGraphFileName(), Definition::isHidden(), Definition::isLinkable(), m_collabFileName, m_graphType, m_inheritFileName, m_lrRank, m_startNode, m_usedNodes, DotNode::setDistance(), and DString::str().
|
override |
Definition at line 378 of file dotclassgraph.cpp.
References DotNode::deleteNodes(), and m_startNode.
|
private |
Definition at line 27 of file dotclassgraph.cpp.
References DotNode::addChild(), DotNode::addParent(), Definition::anchor(), Definition::briefDescriptionAsTooltip(), buildGraph(), Config_getBool, EdgeInfo::Dashed, Definition::displayName(), DotGraph::DotNode, DotNode::DotNode(), DString::empty(), Definition::getOutputFileBase(), Definition::getReference(), insertTemplateSpecifierInScope(), Definition::isAnonymous(), Definition::isHidden(), Definition::isLinkable(), m_usedNodes, Definition::name(), EdgeInfo::Orange, EdgeInfo::Orange2, DotNode::setDistance(), EdgeInfo::Solid, DString::str(), and stripScope().
Referenced by buildGraph().
|
private |
Definition at line 253 of file dotclassgraph.cpp.
References addClass(), ClassDef::baseClasses(), Collaboration, Config_getBool, DotGraph::DotNode, DString::DString(), ClassDef::getTemplateInstances(), Inheritance, joinLabels(), m_graphType, EdgeInfo::Orange, EdgeInfo::Orange2, EdgeInfo::protectionToColor(), EdgeInfo::Purple, ClassDef::subClasses(), ClassDef::templateMaster(), ClassDef::templateTypeConstraints(), ClassDef::usedByImplementationClasses(), and ClassDef::usedImplementationClasses().
Referenced by addClass(), and DotClassGraph().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 400 of file dotclassgraph.cpp.
References DotGraph::computeGraph(), Inheritance, DotNode::label(), DotGraph::m_graphFormat, m_graphType, m_lrRank, m_startNode, and DotGraph::m_theGraph.
|
private |
Definition at line 115 of file dotclassgraph.cpp.
References DotNode::children(), DotGraph::DotNode, DotNode::isTruncated(), DotNode::isVisible(), DotNode::markAsTruncated(), DotNode::parents(), and DotNode::Unknown.
Referenced by DotClassGraph().
|
private |
Definition at line 146 of file dotclassgraph.cpp.
References DotNode::children(), Config_getBool, Config_getInt, DotNode::distance(), DotGraph::DotNode, DotNode::isVisible(), DotNode::label(), DString::length(), DotNode::markAsVisible(), and DotNode::parents().
Referenced by DotClassGraph().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 383 of file dotclassgraph.cpp.
References ASSERT, Collaboration, Inheritance, m_collabFileName, m_graphType, and m_inheritFileName.
|
overrideprotectedvirtual |
Reimplemented from DotGraph.
Definition at line 433 of file dotclassgraph.cpp.
References ASSERT, Collaboration, Inheritance, and m_graphType.
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 414 of file dotclassgraph.cpp.
References ASSERT, Collaboration, escapeCharsInString(), Inheritance, DotNode::label(), m_graphType, and m_startNode.
| bool DotClassGraph::isTooBig | ( | ) | const |
Definition at line 362 of file dotclassgraph.cpp.
References Config_getInt, and numNodes().
Referenced by ClassDefImpl::writeCollaborationGraph(), and ClassDefImpl::writeInheritanceGraph().
| bool DotClassGraph::isTrivial | ( | ) | const |
Definition at line 354 of file dotclassgraph.cpp.
References DotNode::children(), Config_getBool, Inheritance, m_graphType, m_startNode, and DotNode::parents().
Referenced by generateDEFForClass(), PerlModGenerator::generatePerlModForClass(), generateXMLForClass(), ClassDefImpl::writeCollaborationGraph(), and ClassDefImpl::writeInheritanceGraph().
| int DotClassGraph::numNodes | ( | ) | const |
Definition at line 367 of file dotclassgraph.cpp.
References DotNode::children(), Inheritance, m_graphType, m_startNode, numNodes(), and DotNode::parents().
Referenced by isTooBig(), numNodes(), ClassDefImpl::writeCollaborationGraph(), and ClassDefImpl::writeInheritanceGraph().
| void DotClassGraph::writeDEF | ( | TextStream & | t | ) |
Definition at line 483 of file dotclassgraph.cpp.
References m_usedNodes.
Referenced by generateDEFForClass().
| void DotClassGraph::writeDocbook | ( | TextStream & | t | ) |
Definition at line 475 of file dotclassgraph.cpp.
References m_usedNodes.
| DString DotClassGraph::writeGraph | ( | TextStream & | t, |
| GraphOutputFormat | gf, | ||
| EmbeddedOutputFormat | ef, | ||
| const DString & | path, | ||
| const DString & | fileName, | ||
| const DString & | relPath, | ||
| bool | TBRank = true, | ||
| bool | imageMap = true, | ||
| int | graphId = -1 ) |
Definition at line 450 of file dotclassgraph.cpp.
References Html, DotGraph::m_doNotAddImageToIndex, and DotGraph::writeGraph().
Referenced by DocbookGenerator::endDotGraph(), HtmlGenerator::endDotGraph(), LatexGenerator::endDotGraph(), and RTFGenerator::endDotGraph().
| void DotClassGraph::writeXML | ( | TextStream & | t | ) |
Definition at line 467 of file dotclassgraph.cpp.
References m_usedNodes.
Referenced by generateXMLForClass().
|
private |
Definition at line 64 of file dotclassgraph.h.
Referenced by DotClassGraph(), and getBaseName().
|
private |
Definition at line 63 of file dotclassgraph.h.
Referenced by buildGraph(), computeTheGraph(), DotClassGraph(), getBaseName(), getImgAltText(), getMapLabel(), isTrivial(), and numNodes().
|
private |
Definition at line 65 of file dotclassgraph.h.
Referenced by DotClassGraph(), and getBaseName().
|
private |
Definition at line 66 of file dotclassgraph.h.
Referenced by computeTheGraph(), and DotClassGraph().
|
private |
Definition at line 61 of file dotclassgraph.h.
Referenced by computeTheGraph(), DotClassGraph(), getMapLabel(), isTrivial(), numNodes(), and ~DotClassGraph().
|
private |
Definition at line 62 of file dotclassgraph.h.
Referenced by addClass(), DotClassGraph(), writeDEF(), writeDocbook(), and writeXML().