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 |
QCString | writeGraph (TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &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 | |
QCString | getBaseName () const override |
QCString | getMapLabel () const override |
void | computeTheGraph () override |
QCString | getImgAltText () const override |
Protected Member Functions inherited from DotGraph | |
int | getNextNodeNumber () |
returns the node number. | |
int | getNextEdgeNumber () |
returns the edge number. | |
QCString | writeGraph (TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1) |
virtual QCString | absMapName () const |
QCString | absBaseName () const |
QCString | absDotName () const |
QCString | imgName () const |
QCString | absImgName () const |
QCString | 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 QCString &label, const QCString &usedName, const QCString &templSpec, bool base, int distance) |
Private Attributes | |
DotNode * | m_startNode |
DotNodeMap | m_usedNodes |
GraphType | m_graphType |
QCString | m_collabFileName |
QCString | m_inheritFileName |
bool | m_lrRank |
Additional Inherited Members | |
Static Protected Member Functions inherited from DotGraph | |
static void | writeGraphHeader (TextStream &t, const QCString &title=QCString()) |
static void | writeGraphFooter (TextStream &t) |
static void | computeGraph (DotNode *root, GraphType gt, GraphOutputFormat format, const QCString &rank, bool renderParents, bool backArrows, const QCString &title, QCString &graphStr) |
Protected Attributes inherited from DotGraph | |
GraphOutputFormat | m_graphFormat = GraphOutputFormat::BITMAP |
EmbeddedOutputFormat | m_textFormat = EmbeddedOutputFormat::Html |
Dir | m_dir |
QCString | m_fileName |
QCString | m_relPath |
bool | m_generateImageMap = false |
int | m_graphId = 0 |
QCString | m_absPath |
QCString | m_baseName |
QCString | 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 28 of file dotclassgraph.h.
Definition at line 313 of file dotclassgraph.cpp.
References Definition::anchor(), Definition::briefDescriptionAsTooltip(), buildGraph(), ClassDef::collaborationGraphFileName(), Config_getInt, determineTruncatedNodes(), determineVisibleNodes(), Definition::displayName(), DotGraph::DotNode, FALSE, Definition::getOutputFileBase(), Definition::getReference(), Inheritance, ClassDef::inheritanceGraphFileName(), QCString::isEmpty(), Definition::isHidden(), Definition::isLinkable(), m_collabFileName, m_graphType, m_inheritFileName, m_lrRank, m_startNode, m_usedNodes, QCString::str(), and TRUE.
|
override |
Definition at line 374 of file dotclassgraph.cpp.
References DotNode::deleteNodes(), and m_startNode.
|
private |
Definition at line 26 of file dotclassgraph.cpp.
References DotNode::addChild(), DotNode::addParent(), Definition::anchor(), Definition::briefDescriptionAsTooltip(), buildGraph(), Config_getBool, EdgeInfo::Dashed, Definition::displayName(), DotGraph::DotNode, FALSE, Definition::getOutputFileBase(), Definition::getReference(), insertTemplateSpecifierInScope(), Definition::isAnonymous(), QCString::isEmpty(), Definition::isHidden(), Definition::isLinkable(), m_usedNodes, Definition::name(), EdgeInfo::Orange, EdgeInfo::Orange2, DotNode::setDistance(), EdgeInfo::Solid, QCString::str(), and stripScope().
Referenced by buildGraph().
|
private |
Definition at line 249 of file dotclassgraph.cpp.
References addClass(), ClassDef::baseClasses(), Collaboration, Config_getBool, DotGraph::DotNode, FALSE, ClassDef::getTemplateInstances(), Inheritance, joinLabels(), m_graphType, EdgeInfo::Orange, EdgeInfo::Orange2, EdgeInfo::protectionToColor(), EdgeInfo::Purple, ClassDef::subClasses(), ClassDef::templateMaster(), ClassDef::templateTypeConstraints(), TRUE, ClassDef::usedByImplementationClasses(), and ClassDef::usedImplementationClasses().
Referenced by addClass(), and DotClassGraph().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 396 of file dotclassgraph.cpp.
References DotGraph::computeGraph(), Inheritance, DotGraph::m_graphFormat, m_graphType, m_lrRank, m_startNode, DotGraph::m_theGraph, and TRUE.
|
private |
Definition at line 114 of file dotclassgraph.cpp.
References DotNode::children(), DotGraph::DotNode, FALSE, DotNode::isTruncated(), DotNode::isVisible(), DotNode::markAsTruncated(), DotNode::parents(), TRUE, and DotNode::Unknown.
Referenced by DotClassGraph().
|
private |
Definition at line 145 of file dotclassgraph.cpp.
References DotNode::children(), Config_getBool, Config_getInt, DotNode::distance(), DotGraph::DotNode, FALSE, DotNode::isVisible(), DotNode::label(), QCString::length(), DotNode::markAsVisible(), DotNode::parents(), and TRUE.
Referenced by DotClassGraph().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 379 of file dotclassgraph.cpp.
References ASSERT, Collaboration, Inheritance, m_collabFileName, m_graphType, and m_inheritFileName.
|
overrideprotectedvirtual |
Reimplemented from DotGraph.
Definition at line 429 of file dotclassgraph.cpp.
References ASSERT, Collaboration, Inheritance, and m_graphType.
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 410 of file dotclassgraph.cpp.
References ASSERT, Collaboration, escapeCharsInString(), FALSE, Inheritance, m_graphType, and m_startNode.
bool DotClassGraph::isTooBig | ( | ) | const |
Definition at line 358 of file dotclassgraph.cpp.
References Config_getInt, and numNodes().
Referenced by ClassDefImpl::writeCollaborationGraph(), and ClassDefImpl::writeInheritanceGraph().
bool DotClassGraph::isTrivial | ( | ) | const |
Definition at line 350 of file dotclassgraph.cpp.
References Config_getBool, Inheritance, m_graphType, and m_startNode.
Referenced by generateDEFForClass(), PerlModGenerator::generatePerlModForClass(), generateXMLForClass(), ClassDefImpl::writeCollaborationGraph(), and ClassDefImpl::writeInheritanceGraph().
int DotClassGraph::numNodes | ( | ) | const |
Definition at line 363 of file dotclassgraph.cpp.
References Inheritance, m_graphType, m_startNode, and numNodes().
Referenced by isTooBig(), numNodes(), ClassDefImpl::writeCollaborationGraph(), and ClassDefImpl::writeInheritanceGraph().
void DotClassGraph::writeDEF | ( | TextStream & | t | ) |
Definition at line 477 of file dotclassgraph.cpp.
References m_usedNodes.
Referenced by generateDEFForClass().
void DotClassGraph::writeDocbook | ( | TextStream & | t | ) |
Definition at line 469 of file dotclassgraph.cpp.
References m_usedNodes, and TRUE.
QCString DotClassGraph::writeGraph | ( | TextStream & | t, |
GraphOutputFormat | gf, | ||
EmbeddedOutputFormat | ef, | ||
const QCString & | path, | ||
const QCString & | fileName, | ||
const QCString & | relPath, | ||
bool | TBRank = TRUE, | ||
bool | imageMap = TRUE, | ||
int | graphId = -1 ) |
Definition at line 446 of file dotclassgraph.cpp.
References DotGraph::writeGraph().
Referenced by DocbookGenerator::endDotGraph(), HtmlGenerator::endDotGraph(), LatexGenerator::endDotGraph(), and RTFGenerator::endDotGraph().
void DotClassGraph::writeXML | ( | TextStream & | t | ) |
Definition at line 461 of file dotclassgraph.cpp.
References m_usedNodes, and TRUE.
Referenced by generateXMLForClass().
|
private |
Definition at line 63 of file dotclassgraph.h.
Referenced by DotClassGraph(), and getBaseName().
|
private |
Definition at line 62 of file dotclassgraph.h.
Referenced by buildGraph(), computeTheGraph(), DotClassGraph(), getBaseName(), getImgAltText(), getMapLabel(), isTrivial(), and numNodes().
|
private |
Definition at line 64 of file dotclassgraph.h.
Referenced by DotClassGraph(), and getBaseName().
|
private |
Definition at line 65 of file dotclassgraph.h.
Referenced by computeTheGraph(), and DotClassGraph().
|
private |
Definition at line 60 of file dotclassgraph.h.
Referenced by computeTheGraph(), DotClassGraph(), getMapLabel(), isTrivial(), numNodes(), and ~DotClassGraph().
|
private |
Definition at line 61 of file dotclassgraph.h.
Referenced by addClass(), DotClassGraph(), writeDEF(), writeDocbook(), and writeXML().