Skip to main content

The dotclassgraph.cpp File Reference

Included Headers

#include <algorithm> #include "containers.h" #include "dotclassgraph.h" #include "dotnode.h" #include "textstream.h" #include "config.h" #include "util.h"

Functions Index

static QCStringjoinLabels (const StringSet &ss)

Functions

joinLabels()

QCString joinLabels (const StringSet & ss)
static

Definition at line 230 of file dotclassgraph.cpp.

230static QCString joinLabels(const StringSet &ss)
231{
232 QCString label;
233 int count=1;
234 int maxLabels = Config_getInt(UML_MAX_EDGE_LABELS);
235 auto it = std::begin(ss), e = std::end(ss);
236 if (it!=e) // set not empty
237 {
238 label = *it++;
239 for (; it!=e && (maxLabels==0 || count<maxLabels) ; ++it,++count)
240 {
241 label += '\n';
242 label += *it;
243 }
244 if (maxLabels!=0 && count==maxLabels)
245 {
246 label+="\n ...";
247 }
248 }
249 return label;
250}

Reference Config_getInt.

Referenced by DotClassGraph::buildGraph.


Generated via doxygen2docusaurus by Doxygen 1.14.0.