summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-23 15:31:35 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-23 15:31:35 (GMT)
commit7295388a3c6b3a12a77dc7a56862333c97e4ccb6 (patch)
tree191fcbf13137ceda80267e217af7556d5a1f194e /src/namespacedef.cpp
parent4c7970f62fae48e85aee5b1d2a6d3d505e25c9b0 (diff)
downloadDoxygen-7295388a3c6b3a12a77dc7a56862333c97e4ccb6.zip
Doxygen-7295388a3c6b3a12a77dc7a56862333c97e4ccb6.tar.gz
Doxygen-7295388a3c6b3a12a77dc7a56862333c97e4ccb6.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");
}