summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-05-17 19:26:02 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-05-17 19:26:02 (GMT)
commit75fed7362598edf5a7210505cd38c92821863a39 (patch)
treecb90fc9b85934eb220249aae4ffd7e4979489b16 /src/namespacedef.h
parentf5f5db18c34651c19f63a972e70087ce2131e764 (diff)
downloadDoxygen-75fed7362598edf5a7210505cd38c92821863a39.zip
Doxygen-75fed7362598edf5a7210505cd38c92821863a39.tar.gz
Doxygen-75fed7362598edf5a7210505cd38c92821863a39.tar.bz2
Release-20010517
Diffstat (limited to 'src/namespacedef.h')
-rw-r--r--src/namespacedef.h36
1 files changed, 32 insertions, 4 deletions
diff --git a/src/namespacedef.h b/src/namespacedef.h
index 08a8701..bcfee88 100644
--- a/src/namespacedef.h
+++ b/src/namespacedef.h
@@ -21,17 +21,19 @@
#include "qtbc.h"
#include <qstrlist.h>
#include <qdict.h>
+#include "sortdict.h"
#include "definition.h"
#include "memberlist.h"
class ClassDef;
-class OutputList;
class ClassList;
-class ClassDict;
+class OutputList;
+class ClassSDict;
class MemberDef;
class NamespaceList;
class MemberGroupDict;
class MemberGroupList;
+class NamespaceSDict;
class NamespaceDef : public Definition
{
@@ -43,8 +45,11 @@ class NamespaceDef : public Definition
QCString getOutputFileBase() const;
void insertUsedFile(const char *fname);
void writeDocumentation(OutputList &ol);
+
void insertClass(ClassDef *cd);
+ void insertNamespace(NamespaceDef *nd);
void insertMember(MemberDef *md);
+
void computeAnchors();
int countMembers();
void addUsingDirective(NamespaceDef *nd);
@@ -65,6 +70,9 @@ class NamespaceDef : public Definition
}
void addMembersToMemberGroup();
void distributeMemberGroupDocumentation();
+
+ virtual Definition *findInnerCompound(const char *name);
+ void addInnerCompound(Definition *d);
//protected:
// void addMemberListToGroup(MemberList *,bool (MemberDef::*)() const);
@@ -73,10 +81,15 @@ class NamespaceDef : public Definition
//QCString reference;
QCString fileName;
QStrList files;
- ClassList *classList;
- ClassDict *classDict;
+
+ /*! Classes inside this namespace */
+ ClassSDict *classSDict;
+ /*! Namespaces inside this namespace */
+ NamespaceSDict *namespaceSDict;
+
NamespaceList *usingDirList;
ClassList *usingDeclList;
+ SDict<Definition> *m_innerCompounds;
MemberList allMemberList;
@@ -128,4 +141,19 @@ class NamespaceDict : public QDict<NamespaceDef>
~NamespaceDict() {}
};
+class NamespaceSDict : public SDict<NamespaceDef>
+{
+ public:
+ NamespaceSDict(int size) : SDict<NamespaceDef>(size) {}
+ ~NamespaceSDict() {}
+ int compareItems(GCI item1,GCI item2)
+ {
+ return stricmp(((NamespaceDef *)item1)->name(),
+ ((NamespaceDef *)item2)->name()
+ );
+ }
+};
+
+
+
#endif