summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-08-09 08:29:54 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-08-09 08:29:54 (GMT)
commitf1ddf16acd015f8cf9ffc1fbf5719e8c764150e2 (patch)
treea09074ed1c9a5c1efb292f69db4f9bbb3a97cb19 /src/namespacedef.h
parent3a7dcb4cbc953fcf5ab62243743707e5e0e3d379 (diff)
downloadDoxygen-f1ddf16acd015f8cf9ffc1fbf5719e8c764150e2.zip
Doxygen-f1ddf16acd015f8cf9ffc1fbf5719e8c764150e2.tar.gz
Doxygen-f1ddf16acd015f8cf9ffc1fbf5719e8c764150e2.tar.bz2
Release-1.4.7-20060809
Diffstat (limited to 'src/namespacedef.h')
-rw-r--r--src/namespacedef.h78
1 files changed, 29 insertions, 49 deletions
diff --git a/src/namespacedef.h b/src/namespacedef.h
index 03418bc..e32f170 100644
--- a/src/namespacedef.h
+++ b/src/namespacedef.h
@@ -64,17 +64,8 @@ class NamespaceDef : public Definition
void combineUsingRelations();
QCString displayName() const;
- bool isLinkableInProject() const
- {
- int i = name().findRev("::");
- if (i==-1) i=0; else i+=2;
- return !name().isEmpty() && name().at(i)!='@' &&
- hasDocumentation() && !isReference() && !isHidden();
- }
- bool isLinkable() const
- {
- return isLinkableInProject() || isReference();
- }
+ bool isLinkableInProject() const;
+ bool isLinkable() const;
void addMembersToMemberGroup();
void distributeMemberGroupDocumentation();
void findSectionsInDocumentation();
@@ -83,49 +74,38 @@ class NamespaceDef : public Definition
void addInnerCompound(Definition *d);
void addListReferences();
- //protected:
- // void addMemberListToGroup(MemberList *,bool (MemberDef::*)() const);
+ MemberList *getMemberList(MemberList::ListType lt) const;
+ const QList<MemberList> &getMemberLists() const { return m_memberLists; }
- public:
-
- // members in the declaration part of the documentation
- MemberList decDefineMembers;
- MemberList decProtoMembers;
- MemberList decTypedefMembers;
- MemberList decEnumMembers;
- MemberList decFuncMembers;
- MemberList decVarMembers;
-
- // members in the documentation part of the documentation
- MemberList docAllMemberList;
- MemberList docDefineMembers;
- MemberList docProtoMembers;
- MemberList docTypedefMembers;
- MemberList docEnumMembers;
- MemberList docFuncMembers;
- MemberList docVarMembers;
-
- /* user defined member groups */
- MemberGroupSDict *memberGroupSDict;
-
- /*! Classes inside this namespace */
- ClassSDict *classSDict;
- /*! Namespaces inside this namespace */
- NamespaceSDict *namespaceSDict;
+ /*! Returns the user defined member groups */
+ MemberGroupSDict *getMemberGroupSDict() const { return memberGroupSDict; }
- bool visited;
-
- private:
- //QCString reference;
- QCString fileName;
- QStrList files;
+ /*! Returns the classes contained in this namespace */
+ ClassSDict *getClassSDict() const { return classSDict; }
+ /*! Returns the namespaces contained in this namespace */
+ NamespaceSDict *getNamespaceSDict() const { return namespaceSDict; }
- NamespaceSDict *usingDirList;
- SDict<Definition> *usingDeclList;
- SDict<Definition> *m_innerCompounds;
+ bool visited;
- MemberList allMemberList;
+ private:
+ MemberList *createMemberList(MemberList::ListType lt);
+ void addMemberToList(MemberList::ListType lt,MemberDef *md);
+ void writeMemberDeclarations(OutputList &ol,MemberList::ListType lt,const QCString &title);
+ void writeMemberDocumentation(OutputList &ol,MemberList::ListType lt,const QCString &title);
+
+ QCString fileName;
+ QStrList files;
+
+ NamespaceSDict *usingDirList;
+ SDict<Definition> *usingDeclList;
+ SDict<Definition> *m_innerCompounds;
+
+ MemberList *allMemberList;
+ QList<MemberList> m_memberLists;
+ MemberGroupSDict *memberGroupSDict;
+ ClassSDict *classSDict;
+ NamespaceSDict *namespaceSDict;
};