summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-11-25 18:56:18 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-11-25 18:56:18 (GMT)
commitcce8b9505201c95443798341d3d6176922db9253 (patch)
tree6643370adedf0cbaac88d674978bd44175ab1475 /src/namespacedef.cpp
parentc736b03f16a88b6654ff9c1ae680e46b86e50218 (diff)
downloadDoxygen-cce8b9505201c95443798341d3d6176922db9253.zip
Doxygen-cce8b9505201c95443798341d3d6176922db9253.tar.gz
Doxygen-cce8b9505201c95443798341d3d6176922db9253.tar.bz2
Release-1.2.12-20011125
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp61
1 files changed, 12 insertions, 49 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index 9e2692d..25b6bad 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -38,9 +38,8 @@ NamespaceDef::NamespaceDef(const char *df,int dl,
usingDirList = 0;
usingDeclList = 0;
setReference(lref);
- memberGroupList = new MemberGroupList;
- memberGroupList->setAutoDelete(TRUE);
- memberGroupDict = new MemberGroupDict(1009);
+ memberGroupSDict = new MemberGroupSDict;
+ memberGroupSDict->setAutoDelete(TRUE);
}
NamespaceDef::~NamespaceDef()
@@ -50,13 +49,12 @@ NamespaceDef::~NamespaceDef()
delete m_innerCompounds;
delete usingDirList;
delete usingDeclList;
- delete memberGroupList;
- delete memberGroupDict;
+ delete memberGroupSDict;
}
void NamespaceDef::distributeMemberGroupDocumentation()
{
- MemberGroupListIterator mgli(*memberGroupList);
+ MemberGroupSDict::Iterator mgli(*memberGroupSDict);
MemberGroup *mg;
for (;(mg=mgli.current());++mgli)
{
@@ -96,44 +94,15 @@ void NamespaceDef::insertNamespace(NamespaceDef *nd)
}
}
-#if 0
-void NamespaceDef::addMemberListToGroup(MemberList *ml,
- bool (MemberDef::*func)() const)
-{
- MemberListIterator mli(*ml);
- MemberDef *md;
- for (;(md=mli.current());++mli)
- {
- int groupId=md->getMemberGroupId();
- if ((md->*func)() && groupId!=-1)
- {
- QCString *pGrpHeader = Doxygen::memberHeaderDict[groupId];
- QCString *pDocs = Doxygen::memberDocDict[groupId];
- if (pGrpHeader)
- {
- MemberGroup *mg = memberGroupDict->find(groupId);
- if (mg==0)
- {
- mg = new MemberGroup(groupId,*pGrpHeader,pDocs ? pDocs->data() : 0);
- memberGroupDict->insert(groupId,mg);
- memberGroupList->append(mg);
- }
- mg->insertMember(md);
- md->setMemberGroup(mg);
- }
- }
- }
-}
-#endif
void NamespaceDef::addMembersToMemberGroup()
{
- ::addMembersToMemberGroup(&decDefineMembers,memberGroupDict,memberGroupList);
- ::addMembersToMemberGroup(&decProtoMembers,memberGroupDict,memberGroupList);
- ::addMembersToMemberGroup(&decTypedefMembers,memberGroupDict,memberGroupList);
- ::addMembersToMemberGroup(&decEnumMembers,memberGroupDict,memberGroupList);
- ::addMembersToMemberGroup(&decFuncMembers,memberGroupDict,memberGroupList);
- ::addMembersToMemberGroup(&decVarMembers,memberGroupDict,memberGroupList);
+ ::addMembersToMemberGroup(&decDefineMembers,memberGroupSDict);
+ ::addMembersToMemberGroup(&decProtoMembers,memberGroupSDict);
+ ::addMembersToMemberGroup(&decTypedefMembers,memberGroupSDict);
+ ::addMembersToMemberGroup(&decEnumMembers,memberGroupSDict);
+ ::addMembersToMemberGroup(&decFuncMembers,memberGroupSDict);
+ ::addMembersToMemberGroup(&decVarMembers,memberGroupSDict);
}
void NamespaceDef::insertMember(MemberDef *md)
@@ -199,12 +168,6 @@ void NamespaceDef::insertMember(MemberDef *md)
void NamespaceDef::computeAnchors()
{
setAnchors('a',&allMemberList);
- //MemberGroupListIterator mgli(*memberGroupList);
- //MemberGroup *mg;
- //for (;(mg=mgli.current());++mgli)
- //{
- // mg->setAnchors();
- //}
}
void NamespaceDef::writeDocumentation(OutputList &ol)
@@ -249,7 +212,7 @@ void NamespaceDef::writeDocumentation(OutputList &ol)
classSDict->writeDeclaration(ol);
/* write user defined member groups */
- MemberGroupListIterator mgli(*memberGroupList);
+ MemberGroupSDict::Iterator mgli(*memberGroupSDict);
MemberGroup *mg;
for (;(mg=mgli.current());++mgli)
{
@@ -380,7 +343,7 @@ void NamespaceDef::addListReferences()
theTranslator->trNamespace(TRUE,TRUE),
getOutputFileBase(),name()
);
- MemberGroupListIterator mgli(*memberGroupList);
+ MemberGroupSDict::Iterator mgli(*memberGroupSDict);
MemberGroup *mg;
for (;(mg=mgli.current());++mgli)
{