summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-11-15 10:53:26 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-11-15 10:53:26 (GMT)
commit62e55b73b0762251bdcf51e2f4c7b8f4cdcb4ddb (patch)
treed63c83519da5e61c3bae876a6833c1b536c06103
parent6728e04f215353429aec7b468448fa3eaeaa499d (diff)
downloadDoxygen-62e55b73b0762251bdcf51e2f4c7b8f4cdcb4ddb.zip
Doxygen-62e55b73b0762251bdcf51e2f4c7b8f4cdcb4ddb.tar.gz
Doxygen-62e55b73b0762251bdcf51e2f4c7b8f4cdcb4ddb.tar.bz2
Refactoring: move ClassDefSet to the classdef header
-rw-r--r--src/classdef.h5
-rw-r--r--src/context.h2
-rw-r--r--src/dotgfxhierarchytable.h2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/classdef.h b/src/classdef.h
index e23bc19..1cbf7b1 100644
--- a/src/classdef.h
+++ b/src/classdef.h
@@ -19,6 +19,7 @@
#define CLASSDEF_H
#include <vector>
+#include <set>
#include <qlist.h>
#include <qdict.h>
@@ -474,6 +475,10 @@ ClassDefMutable *createClassDef(
ClassDef *createClassDefAlias(const Definition *newScope,const ClassDef *cd);
+// --- Set of classes
+
+using ClassDefSet = std::set<const ClassDef*>;
+
// --- Cast functions
ClassDef *toClassDef(Definition *d);
diff --git a/src/context.h b/src/context.h
index 3bedb69..dca5d91 100644
--- a/src/context.h
+++ b/src/context.h
@@ -503,8 +503,6 @@ class ClassHierarchyContext : public RefCountedContext, public TemplateStructInt
//----------------------------------------------------
-using ClassDefSet = std::set<const ClassDef*>;
-
class NestingNodeContext : public RefCountedContext, public TemplateStructIntf
{
public:
diff --git a/src/dotgfxhierarchytable.h b/src/dotgfxhierarchytable.h
index d09298e..2076472 100644
--- a/src/dotgfxhierarchytable.h
+++ b/src/dotgfxhierarchytable.h
@@ -20,7 +20,6 @@
#include <string>
#include <unordered_map>
#include <vector>
-#include <set>
#include "classdef.h"
#include "ftextstream.h"
@@ -44,7 +43,6 @@ class DotGfxHierarchyTable : public DotGraph
virtual void computeTheGraph();
private:
- using ClassDefSet = std::set<const ClassDef*>;
void addHierarchy(DotNode *n,const ClassDef *cd,ClassDefSet &visited);
void addClassList(const ClassSDict *cl,ClassDefSet &visited);