The DotClassGraph
Class Reference
Representation of a class inheritance or dependency graph. More...
Declaration
Included Headers
Base class
class | DotGraph |
A dot graph. More... | |
Public Constructors Index
DotClassGraph (const ClassDef *cd, GraphType t) | |
Public Destructor Index
~DotClassGraph () override | |
Public Member Functions Index
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) |
Protected Member Functions Index
QCString | getBaseName () const override |
QCString | getMapLabel () const override |
void | computeTheGraph () override |
QCString | getImgAltText () const override |
Private Member Functions Index
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 Member Attributes Index
DotNode * | m_startNode |
DotNodeMap | m_usedNodes |
GraphType | m_graphType |
QCString | m_collabFileName |
QCString | m_inheritFileName |
bool | m_lrRank |
Description
Representation of a class inheritance or dependency graph.
Definition at line 28 of file dotclassgraph.h.
Public Constructors
DotClassGraph()
Declaration at line 31 of file dotclassgraph.h, definition at line 316 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.
Public Destructor
~DotClassGraph()
|
Declaration at line 32 of file dotclassgraph.h, definition at line 377 of file dotclassgraph.cpp.
References DotNode::deleteNodes and m_startNode.
Public Member Functions
isTooBig()
|
Declaration at line 36 of file dotclassgraph.h, definition at line 361 of file dotclassgraph.cpp.
References Config_getInt and numNodes.
Referenced by ClassDefImpl::writeCollaborationGraph and ClassDefImpl::writeInheritanceGraph.
isTrivial()
|
Declaration at line 35 of file dotclassgraph.h, definition at line 353 of file dotclassgraph.cpp.
References Config_getBool, Inheritance, m_graphType and m_startNode.
Referenced by generateDEFForClass, PerlModGenerator::generatePerlModForClass, generateXMLForClass, ClassDefImpl::writeCollaborationGraph and ClassDefImpl::writeInheritanceGraph.
numNodes()
|
Declaration at line 37 of file dotclassgraph.h, definition at line 366 of file dotclassgraph.cpp.
References Inheritance, m_graphType, m_startNode and numNodes.
Referenced by isTooBig, numNodes, ClassDefImpl::writeCollaborationGraph and ClassDefImpl::writeInheritanceGraph.
writeDEF()
|
Declaration at line 44 of file dotclassgraph.h, definition at line 480 of file dotclassgraph.cpp.
Reference m_usedNodes.
Referenced by generateDEFForClass.
writeDocbook()
|
Declaration at line 43 of file dotclassgraph.h, definition at line 472 of file dotclassgraph.cpp.
References m_usedNodes and TRUE.
writeGraph()
|
Declaration at line 38 of file dotclassgraph.h, definition at line 449 of file dotclassgraph.cpp.
Reference DotGraph::writeGraph.
Referenced by DocbookGenerator::endDotGraph, HtmlGenerator::endDotGraph, LatexGenerator::endDotGraph and RTFGenerator::endDotGraph.
writeXML()
|
Declaration at line 42 of file dotclassgraph.h, definition at line 464 of file dotclassgraph.cpp.
References m_usedNodes and TRUE.
Referenced by generateXMLForClass.
Protected Member Functions
computeTheGraph()
| protected virtual |
Declaration at line 49 of file dotclassgraph.h, definition at line 399 of file dotclassgraph.cpp.
References DotGraph::computeGraph, Inheritance, DotGraph::m_graphFormat, m_graphType, m_lrRank, m_startNode, DotGraph::m_theGraph and TRUE.
getBaseName()
| protected virtual |
Declaration at line 47 of file dotclassgraph.h, definition at line 382 of file dotclassgraph.cpp.
References ASSERT, Collaboration, Inheritance, m_collabFileName, m_graphType and m_inheritFileName.
getImgAltText()
| protected virtual |
Declaration at line 50 of file dotclassgraph.h, definition at line 432 of file dotclassgraph.cpp.
References ASSERT, Collaboration, Inheritance and m_graphType.
getMapLabel()
| protected virtual |
Declaration at line 48 of file dotclassgraph.h, definition at line 413 of file dotclassgraph.cpp.
References ASSERT, Collaboration, escapeCharsInString, FALSE, Inheritance, m_graphType and m_startNode.
Private Member Functions
addClass()
|
Declaration at line 56 of file dotclassgraph.h, 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.
buildGraph()
Declaration at line 53 of file dotclassgraph.h, definition at line 252 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.
determineTruncatedNodes()
|
Declaration at line 55 of file dotclassgraph.h, 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.
determineVisibleNodes()
|
Declaration at line 54 of file dotclassgraph.h, 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.
Private Member Attributes
m_collabFileName
|
Definition at line 63 of file dotclassgraph.h.
Referenced by DotClassGraph and getBaseName.
m_graphType
|
Definition at line 62 of file dotclassgraph.h.
Referenced by buildGraph, computeTheGraph, DotClassGraph, getBaseName, getImgAltText, getMapLabel, isTrivial and numNodes.
m_inheritFileName
|
Definition at line 64 of file dotclassgraph.h.
Referenced by DotClassGraph and getBaseName.
m_lrRank
|
Definition at line 65 of file dotclassgraph.h.
Referenced by computeTheGraph and DotClassGraph.
m_startNode
|
Definition at line 60 of file dotclassgraph.h.
Referenced by computeTheGraph, DotClassGraph, getMapLabel, isTrivial, numNodes and ~DotClassGraph.
m_usedNodes
|
Definition at line 61 of file dotclassgraph.h.
Referenced by addClass, DotClassGraph, writeDEF, writeDocbook and writeXML.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.