diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2001-11-25 18:56:18 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2001-11-25 18:56:18 (GMT) |
commit | 79959c79850830e90aa7e00e72d3718785e29214 (patch) | |
tree | 6643370adedf0cbaac88d674978bd44175ab1475 /src/namespacedef.cpp | |
parent | b89fdced7a88c9222faa0d646923bd09fb1765f8 (diff) | |
download | Doxygen-79959c79850830e90aa7e00e72d3718785e29214.zip Doxygen-79959c79850830e90aa7e00e72d3718785e29214.tar.gz Doxygen-79959c79850830e90aa7e00e72d3718785e29214.tar.bz2 |
Release-1.2.12-20011125
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 61 |
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) { |