diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-11-20 20:25:08 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-11-20 20:25:08 (GMT) |
commit | a5792da8b4bf88a9d93cfd0582cec469747de3b2 (patch) | |
tree | fbca47486003fa29ac7b94da94bca88e60d7b8fb /src/namespacedef.h | |
parent | 4211ec287793c0bae93977a9359db9bafef6d2ac (diff) | |
download | Doxygen-a5792da8b4bf88a9d93cfd0582cec469747de3b2.zip Doxygen-a5792da8b4bf88a9d93cfd0582cec469747de3b2.tar.gz Doxygen-a5792da8b4bf88a9d93cfd0582cec469747de3b2.tar.bz2 |
Refactoring: removing setVisited/isVisited members
Diffstat (limited to 'src/namespacedef.h')
-rw-r--r-- | src/namespacedef.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/namespacedef.h b/src/namespacedef.h index 730d68e..18171f7 100644 --- a/src/namespacedef.h +++ b/src/namespacedef.h @@ -16,6 +16,8 @@ #ifndef NAMESPACEDEF_H #define NAMESPACEDEF_H +#include <set> + #include <qstrlist.h> #include <qdict.h> #include "sortdict.h" @@ -31,8 +33,14 @@ class MemberDef; class MemberGroupSDict; class NamespaceSDict; class FTextStream; +class NamespaceDef; class NamespaceDefMutable; +// --- Set of namespaces + +using NamespaceDefSet = std::set<const NamespaceDef*>; + + /** An abstract interface of a namespace symbol. */ class NamespaceDef : public Definition { @@ -81,10 +89,6 @@ class NamespaceDef : public Definition virtual QCString title() const = 0; virtual QCString compoundTypeString() const = 0; - - // --- visited administration - virtual void setVisited(bool v) = 0; - virtual bool isVisited() const = 0; }; class NamespaceDefMutable : public DefinitionMutable, public NamespaceDef @@ -110,7 +114,7 @@ class NamespaceDefMutable : public DefinitionMutable, public NamespaceDef virtual void addInnerCompound(const Definition *d) = 0; virtual void addListReferences() = 0; virtual void setFileName(const QCString &fn) = 0; - virtual void combineUsingRelations() = 0; + virtual void combineUsingRelations(NamespaceDefSet &visitedNamespace) = 0; virtual void addUsingDirective(const NamespaceDef *nd) = 0; virtual void addUsingDeclaration(const ClassDef *cd) = 0; virtual void setInline(bool isInline) = 0; |