diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-01 18:34:38 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-01 18:34:38 (GMT) |
commit | 1708261ebe54b03c45a4bfe3c1e78581779b2a80 (patch) | |
tree | 6dab4342e5ad2e3a894d3a0d542c9f73c20aeb51 /src/dotclassgraph.cpp | |
parent | 5456e9a65c2e7a29f61d17d19906aa9616678ca6 (diff) | |
download | Doxygen-1708261ebe54b03c45a4bfe3c1e78581779b2a80.zip Doxygen-1708261ebe54b03c45a4bfe3c1e78581779b2a80.tar.gz Doxygen-1708261ebe54b03c45a4bfe3c1e78581779b2a80.tar.bz2 |
Refactoring: Introduce type names for commonly used container types
Diffstat (limited to 'src/dotclassgraph.cpp')
-rw-r--r-- | src/dotclassgraph.cpp | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/dotclassgraph.cpp b/src/dotclassgraph.cpp index eb6c179..28967f4 100644 --- a/src/dotclassgraph.cpp +++ b/src/dotclassgraph.cpp @@ -13,8 +13,7 @@ * */ -#include <vector> - +#include "containers.h" #include "dotclassgraph.h" #include "dotnode.h" @@ -74,7 +73,7 @@ void DotClassGraph::addClass(const ClassDef *cd,DotNode *n,int prot, QCString displayName=className; if (HIDE_SCOPE_NAMES) displayName=stripScope(displayName); QCString tmp_url; - if (cd->isLinkable() && !cd->isHidden()) + if (cd->isLinkable() && !cd->isHidden()) { tmp_url=cd->getReference()+"$"+cd->getOutputFileBase(); if (!cd->anchor().isEmpty()) @@ -123,9 +122,9 @@ void DotClassGraph::determineTruncatedNodes(QList<DotNode> &queue,bool includePa const DotNode *dn; for (li.toFirst();(dn=li.current());++li) { - if (!dn->isVisible()) + if (!dn->isVisible()) truncated = TRUE; - else + else queue.append(dn); } } @@ -135,9 +134,9 @@ void DotClassGraph::determineTruncatedNodes(QList<DotNode> &queue,bool includePa const DotNode *dn; for (li.toFirst();(dn=li.current());++li) { - if (!dn->isVisible()) + if (!dn->isVisible()) truncated = TRUE; - else + else queue.append(dn); } } @@ -151,11 +150,11 @@ bool DotClassGraph::determineVisibleNodes(DotNode *rootNode, { QList<DotNode> childQueue; QList<DotNode> parentQueue; - std::vector<int> childTreeWidth; - std::vector<int> parentTreeWidth; + IntVector childTreeWidth; + IntVector parentTreeWidth; childQueue.append(rootNode); if (includeParents) parentQueue.append(rootNode); - bool firstNode=TRUE; // flag to force reprocessing rootNode in the parent loop + bool firstNode=TRUE; // flag to force reprocessing rootNode in the parent loop // despite being marked visible in the child loop while ((childQueue.count()>0 || parentQueue.count()>0) && maxNodes>0) { @@ -258,7 +257,7 @@ void DotClassGraph::buildGraph(const ClassDef *cd,DotNode *n,bool base,int dista //printf("-------- inheritance relation %s->%s templ='%s'\n", // cd->name().data(),bcd->classDef->name().data(),bcd->templSpecifiers.data()); addClass(bcd->classDef,n,bcd->prot,0,bcd->usedName, - bcd->templSpecifiers,base,distance); + bcd->templSpecifiers,base,distance); } } } @@ -284,7 +283,7 @@ void DotClassGraph::buildGraph(const ClassDef *cd,DotNode *n,bool base,int dista int maxLabels=10; for (;(s=dvi.currentKey()) && count<maxLabels;++dvi,++count) { - if (first) + if (first) { label=s; first=FALSE; @@ -379,7 +378,7 @@ DotClassGraph::DotClassGraph(const ClassDef *cd,GraphType t) //printf("--------------- DotClassGraph::DotClassGraph '%s'\n",cd->displayName().data()); m_graphType = t; QCString tmp_url=""; - if (cd->isLinkable() && !cd->isHidden()) + if (cd->isLinkable() && !cd->isHidden()) { tmp_url=cd->getReference()+"$"+cd->getOutputFileBase(); if (!cd->anchor().isEmpty()) @@ -492,7 +491,7 @@ QCString DotClassGraph::getMapLabel() const return escapeCharsInString(m_startNode->label(),FALSE)+"_"+escapeCharsInString(mapName,FALSE); } -QCString DotClassGraph::getImgAltText() const +QCString DotClassGraph::getImgAltText() const { switch (m_graphType) { @@ -506,7 +505,7 @@ QCString DotClassGraph::getImgAltText() const ASSERT(0); break; } - return ""; + return ""; } QCString DotClassGraph::writeGraph(FTextStream &out, |