diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-11-25 18:56:18 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-11-25 18:56:18 (GMT) |
commit | cce8b9505201c95443798341d3d6176922db9253 (patch) | |
tree | 6643370adedf0cbaac88d674978bd44175ab1475 /src/classdef.cpp | |
parent | c736b03f16a88b6654ff9c1ae680e46b86e50218 (diff) | |
download | Doxygen-cce8b9505201c95443798341d3d6176922db9253.zip Doxygen-cce8b9505201c95443798341d3d6176922db9253.tar.gz Doxygen-cce8b9505201c95443798341d3d6176922db9253.tar.bz2 |
Release-1.2.12-20011125
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r-- | src/classdef.cpp | 79 |
1 files changed, 44 insertions, 35 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index 4b1b949..a65e76b 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -84,9 +84,8 @@ ClassDef::ClassDef( m_fileDef=0; m_usesImplClassDict=0; m_usesIntfClassDict=0; - m_memberGroupList = new MemberGroupList; - m_memberGroupList->setAutoDelete(TRUE); - m_memberGroupDict = new MemberGroupDict(17); + memberGroupSDict = new MemberGroupSDict; + memberGroupSDict->setAutoDelete(TRUE); m_innerClasses = new ClassSDict(17); //int i=name().findRev("::"); // TODO: broken if A<N::C> is the class name //if (i==-1) @@ -117,8 +116,7 @@ ClassDef::~ClassDef() delete m_usesImplClassDict; delete m_usesIntfClassDict; delete m_incInfo; - delete m_memberGroupList; - delete m_memberGroupDict; + delete memberGroupSDict; delete m_innerClasses; delete m_templateInstances; delete m_templBaseClassNames; @@ -157,29 +155,29 @@ void ClassDef::insertSubClass(ClassDef *cd,Protection p, void ClassDef::addMembersToMemberGroup() { - ::addMembersToMemberGroup(&pubTypes,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&pubMembers,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&pubAttribs,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&pubSlots,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&signals,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&dcopMethods,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&pubStaticMembers,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&pubStaticAttribs,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&proTypes,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&proMembers,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&proAttribs,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&proSlots,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&proStaticMembers,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&proStaticAttribs,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&priTypes,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&priMembers,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&priAttribs,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&priSlots,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&priStaticMembers,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&priStaticAttribs,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&friends,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&related,m_memberGroupDict,m_memberGroupList); - ::addMembersToMemberGroup(&properties,m_memberGroupDict,m_memberGroupList); + ::addMembersToMemberGroup(&pubTypes,memberGroupSDict); + ::addMembersToMemberGroup(&pubMembers,memberGroupSDict); + ::addMembersToMemberGroup(&pubAttribs,memberGroupSDict); + ::addMembersToMemberGroup(&pubSlots,memberGroupSDict); + ::addMembersToMemberGroup(&signals,memberGroupSDict); + ::addMembersToMemberGroup(&dcopMethods,memberGroupSDict); + ::addMembersToMemberGroup(&pubStaticMembers,memberGroupSDict); + ::addMembersToMemberGroup(&pubStaticAttribs,memberGroupSDict); + ::addMembersToMemberGroup(&proTypes,memberGroupSDict); + ::addMembersToMemberGroup(&proMembers,memberGroupSDict); + ::addMembersToMemberGroup(&proAttribs,memberGroupSDict); + ::addMembersToMemberGroup(&proSlots,memberGroupSDict); + ::addMembersToMemberGroup(&proStaticMembers,memberGroupSDict); + ::addMembersToMemberGroup(&proStaticAttribs,memberGroupSDict); + ::addMembersToMemberGroup(&priTypes,memberGroupSDict); + ::addMembersToMemberGroup(&priMembers,memberGroupSDict); + ::addMembersToMemberGroup(&priAttribs,memberGroupSDict); + ::addMembersToMemberGroup(&priSlots,memberGroupSDict); + ::addMembersToMemberGroup(&priStaticMembers,memberGroupSDict); + ::addMembersToMemberGroup(&priStaticAttribs,memberGroupSDict); + ::addMembersToMemberGroup(&friends,memberGroupSDict); + ::addMembersToMemberGroup(&related,memberGroupSDict); + ::addMembersToMemberGroup(&properties,memberGroupSDict); } // adds new member definition to the class @@ -527,7 +525,7 @@ void ClassDef::computeAnchors() void ClassDef::distributeMemberGroupDocumentation() { - MemberGroupListIterator mgli(*m_memberGroupList); + MemberGroupSDict::Iterator mgli(*memberGroupSDict); MemberGroup *mg; for (;(mg=mgli.current());++mgli) { @@ -737,8 +735,17 @@ void ClassDef::writeDocumentation(OutputList &ol) if (!nm.isEmpty()) { ol.startTypewriter(); - ol.docify("#include "); - if (m_incInfo->local) + bool isIDLorJava = nm.right(4)==".idl" || + nm.right(5)==".java"; + if (isIDLorJava) + { + ol.docify("import "); + } + else + { + ol.docify("#include "); + } + if (m_incInfo->local || isIDLorJava) ol.docify("\""); else ol.docify("<"); @@ -756,10 +763,12 @@ void ClassDef::writeDocumentation(OutputList &ol) ol.docify(nm); } ol.popGeneratorState(); - if (m_incInfo->local) + if (m_incInfo->local || isIDLorJava) ol.docify("\""); else ol.docify(">"); + if (isIDLorJava) + ol.docify(";"); ol.endTypewriter(); ol.newParagraph(); } @@ -973,7 +982,7 @@ void ClassDef::writeDocumentation(OutputList &ol) ol.startMemberSections(); // write user defined member groups - MemberGroupListIterator mgli(*m_memberGroupList); + MemberGroupSDict::Iterator mgli(*memberGroupSDict); MemberGroup *mg; for (;(mg=mgli.current());++mgli) { @@ -1485,7 +1494,7 @@ void ClassDef::writeDeclaration(OutputList &ol,MemberDef *md,bool inGroup) ol.endMemberItem(FALSE); // write user defined member groups - MemberGroupListIterator mgli(*m_memberGroupList); + MemberGroupSDict::Iterator mgli(*memberGroupSDict); MemberGroup *mg; for (;(mg=mgli.current());++mgli) { @@ -2361,7 +2370,7 @@ void ClassDef::addListReferences() theTranslator->trClass(TRUE,TRUE), getOutputFileBase(),name() ); - MemberGroupListIterator mgli(*m_memberGroupList); + MemberGroupSDict::Iterator mgli(*memberGroupSDict); MemberGroup *mg; for (;(mg=mgli.current());++mgli) { |