summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-07-23 15:31:35 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-07-23 15:31:35 (GMT)
commit422c14b6f19d70c78762ea571031f142acf9a972 (patch)
tree191fcbf13137ceda80267e217af7556d5a1f194e /src/namespacedef.cpp
parent686cb8df0c558cdfe8b0b9a48355566391daf073 (diff)
downloadDoxygen-422c14b6f19d70c78762ea571031f142acf9a972.zip
Doxygen-422c14b6f19d70c78762ea571031f142acf9a972.tar.gz
Doxygen-422c14b6f19d70c78762ea571031f142acf9a972.tar.bz2
Release-1.2.0
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp62
1 files changed, 53 insertions, 9 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index 366e49b..54aa1e6 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -66,14 +66,23 @@ void NamespaceDef::distributeMemberGroupDocumentation()
}
void NamespaceDef::insertUsedFile(const char *f)
{
- if (files.find(f)==-1) files.append(f);
+ if (files.find(f)==-1)
+ {
+ if (Config::sortMembersFlag)
+ files.inSort(f);
+ else
+ files.append(f);
+ }
}
void NamespaceDef::insertClass(ClassDef *cd)
{
if (classDict->find(cd->name())==0)
{
- classList->append(cd);
+ if (Config::sortMembersFlag)
+ classList->inSort(cd);
+ else
+ classList->append(cd);
classDict->insert(cd->name(),cd);
}
}
@@ -121,13 +130,48 @@ void NamespaceDef::insertMember(MemberDef *md)
allMemberList.append(md);
switch(md->memberType())
{
- case MemberDef::Variable: varMembers.inSort(md); break;
- case MemberDef::Function: funcMembers.inSort(md); break;
- case MemberDef::Typedef: typedefMembers.inSort(md); break;
- case MemberDef::Enumeration: enumMembers.inSort(md); break;
- case MemberDef::EnumValue: enumValMembers.inSort(md); break;
- case MemberDef::Prototype: protoMembers.inSort(md); break;
- case MemberDef::Define: defineMembers.inSort(md); break;
+ case MemberDef::Variable:
+ if (Config::sortMembersFlag)
+ varMembers.inSort(md);
+ else
+ varMembers.append(md);
+ break;
+ case MemberDef::Function:
+ if (Config::sortMembersFlag)
+ funcMembers.inSort(md);
+ else
+ funcMembers.append(md);
+ break;
+ case MemberDef::Typedef:
+ if (Config::sortMembersFlag)
+ typedefMembers.inSort(md);
+ else
+ typedefMembers.append(md);
+ break;
+ case MemberDef::Enumeration:
+ if (Config::sortMembersFlag)
+ enumMembers.inSort(md);
+ else
+ enumMembers.append(md);
+ break;
+ case MemberDef::EnumValue:
+ if (Config::sortMembersFlag)
+ enumValMembers.inSort(md);
+ else
+ enumValMembers.append(md);
+ break;
+ case MemberDef::Prototype:
+ if (Config::sortMembersFlag)
+ protoMembers.inSort(md);
+ else
+ protoMembers.append(md);
+ break;
+ case MemberDef::Define:
+ if (Config::sortMembersFlag)
+ defineMembers.inSort(md);
+ else
+ defineMembers.append(md);
+ break;
default:
err("NamespaceDef::insertMembers(): unexpected member inserted in namespace!\n");
}