summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-02-27 17:41:30 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-02-27 17:41:30 (GMT)
commitf4f3f1676896e6fd0c0044f001eda9829d9b3f60 (patch)
tree0e10644b6ed5c8878dc59e723fe3dcd591d57839 /src/classdef.cpp
parenta81ce4743212122ae050e5efbc4bfda92e6a664e (diff)
downloadDoxygen-f4f3f1676896e6fd0c0044f001eda9829d9b3f60.zip
Doxygen-f4f3f1676896e6fd0c0044f001eda9829d9b3f60.tar.gz
Doxygen-f4f3f1676896e6fd0c0044f001eda9829d9b3f60.tar.bz2
Release 2000-02-27
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp63
1 files changed, 51 insertions, 12 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index 6726207..9727621 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -121,12 +121,18 @@ void ClassDef::insertMember(const MemberDef *md)
if (md->isRelated() && (Config::extractPrivateFlag || md->protection()!=Private))
{
related.append(md);
- relatedMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ relatedMembers.inSort(md);
+ else
+ relatedMembers.append(md);
}
else if (md->isFriend())
{
friends.append(md);
- relatedMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ relatedMembers.inSort(md);
+ else
+ relatedMembers.append(md);
}
else
{
@@ -134,22 +140,34 @@ void ClassDef::insertMember(const MemberDef *md)
{
case MemberDef::Signal:
signals.append(md);
- functionMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ functionMembers.inSort(md);
+ else
+ functionMembers.append(md);
break;
case MemberDef::Slot:
switch (md->protection())
{
case Protected:
proSlots.append(md);
- functionMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ functionMembers.inSort(md);
+ else
+ functionMembers.append(md);
break;
case Public:
pubSlots.append(md);
- functionMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ functionMembers.inSort(md);
+ else
+ functionMembers.append(md);
break;
case Private:
priSlots.append(md);
- functionMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ functionMembers.inSort(md);
+ else
+ functionMembers.append(md);
break;
}
break;
@@ -183,22 +201,43 @@ void ClassDef::insertMember(const MemberDef *md)
switch (md->memberType())
{
case MemberDef::Typedef:
- typedefMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ typedefMembers.inSort(md);
+ else
+ typedefMembers.append(md);
break;
case MemberDef::Enumeration:
- enumMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ enumMembers.inSort(md);
+ else
+ enumMembers.append(md);
break;
case MemberDef::EnumValue:
- enumValMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ enumValMembers.inSort(md);
+ else
+ enumValMembers.append(md);
break;
case MemberDef::Function:
- if (md->name()==name() || md->name().find('~')!=-1)
+ if (md->name()==name() || // constructor
+ (md->name().find('~')!=-1 && // hack to detect destructor
+ md->name().find("operator")==-1
+ )
+ )
constructors.append(md);
else
- functionMembers.inSort(md);
+ {
+ if (Config::sortMembersFlag)
+ functionMembers.inSort(md);
+ else
+ functionMembers.append(md);
+ }
break;
case MemberDef::Variable:
- variableMembers.inSort(md);
+ if (Config::sortMembersFlag)
+ variableMembers.inSort(md);
+ else
+ variableMembers.append(md);
break;
default:
printf("Unexpected member type %d found!\n",md->memberType());