Doxygen
Loading...
Searching...
No Matches
dotclassgraph.cpp File Reference
#include <algorithm>
#include "containers.h"
#include "dotclassgraph.h"
#include "dotnode.h"
#include "textstream.h"
#include "config.h"
#include "util.h"
+ Include dependency graph for dotclassgraph.cpp:

Go to the source code of this file.

Functions

static QCString joinLabels (const StringSet &ss)
 

Function Documentation

◆ joinLabels()

static QCString joinLabels ( const StringSet & ss)
static

Definition at line 230 of file dotclassgraph.cpp.

231{
232 QCString label;
233 int count=1;
234 int maxLabels=10;
235 auto it = std::begin(ss), e = std::end(ss);
236 if (it!=e) // set not empty
237 {
238 label += (*it++).c_str();
239 for (; it!=e && count < maxLabels ; ++it,++count)
240 {
241 label += '\n';
242 label += (*it).c_str();
243 }
244 if (count==maxLabels) label+="\n...";
245 }
246 return label;
247}
This is an alternative implementation of QCString.
Definition qcstring.h:101

Referenced by DotClassGraph::buildGraph().