void buildVariableDict(ClassDef *cd) { if(cd==0) return; variableDict.clear(); MemberList* ml=cd->getMemberList(MemberListType_variableMembers); if(ml) { MemberListIterator mnii(*ml); MemberDef *md; for (mnii.toFirst();(md=mnii.current());++mnii) { VerilogDocGen::adjustMemberName(md); variableDict.insert(md->name().data(),md); } } ml=cd->getMemberList(MemberListType_pubMethods); if(ml) { MemberListIterator mnii(*ml); MemberDef *md; for (mnii.toFirst();(md=mnii.current());++mnii) variableDict.insert(md->name().data(),md); } }
void buildVariableDict(ClassDef *inst, ClassDef *cl) { MemberList *instPort=NULL; MemberList *classPort=NULL; instPortDict.clear(); classPortDict.clear(); if(inst!=NULL) instPort=inst->getMemberList(MemberListType_variableMembers); if(cl!=NULL) classPort=cl->getMemberList(MemberListType_variableMembers); if(instPort) { MemberListIterator mnii(*instPort); MemberDef *md; for (mnii.toFirst();(md=mnii.current());++mnii){ //printf("\n Inst: %s %s %s",md->name().data(),md->getOutputFileBase().data(),md->getReference().data()); instPortDict.insert(md->name().data(),md); } } if(classPort) { MemberListIterator mnii(*classPort); MemberDef *md; for (mnii.toFirst();(md=mnii.current());++mnii){ // printf("\n Class: %s %s %s",md->name().data(),md->getOutputFileBase().data(),md->getReference().data()); classPortDict.insert(md->name().data(),md); } } }//funct
void GroupDef::removeMember(MemberDef *md) { // fprintf(stderr, "GroupDef(%s)::removeMember( %s )\n", title.data(), md->name().data()); MemberNameInfo *mni = allMemberNameInfoSDict->find(md->name()); if (mni) { MemberNameInfoIterator mnii(*mni); while( mnii.current() ) { if( mnii.current()->memberDef == md ) { mni->remove(mnii.current()); break; } ++mnii; } if( mni->isEmpty() ) { allMemberNameInfoSDict->remove(md->name()); delete mni; } allMemberList->remove(md); switch(md->memberType()) { case MemberDef::Variable: decVarMembers.remove(md); docVarMembers.remove(md); break; case MemberDef::Function: decFuncMembers.remove(md); docFuncMembers.remove(md); break; case MemberDef::Typedef: decTypedefMembers.remove(md); docTypedefMembers.remove(md); break; case MemberDef::Enumeration: decEnumMembers.remove(md); docEnumMembers.remove(md); break; case MemberDef::EnumValue: break; case MemberDef::Prototype: decProtoMembers.remove(md); docProtoMembers.remove(md); break; case MemberDef::Define: decDefineMembers.remove(md); docDefineMembers.remove(md); break; default: err("GroupDef::removeMember(): unexpected member remove in file!\n"); } } }
void GroupDef::removeMember(MemberDef *md) { // fprintf(stderr, "GroupDef(%s)::removeMember( %s )\n", title.data(), md->name().data()); MemberNameInfo *mni = allMemberNameInfoSDict->find(md->name()); if (mni) { MemberNameInfoIterator mnii(*mni); while( mnii.current() ) { if( mnii.current()->memberDef == md ) { mni->remove(mnii.current()); break; } ++mnii; } if( mni->isEmpty() ) { allMemberNameInfoSDict->remove(md->name()); delete mni; } removeMemberFromList(MemberList::allMembersList,md); switch(md->memberType()) { case MemberDef::Variable: removeMemberFromList(MemberList::decVarMembers,md); removeMemberFromList(MemberList::docVarMembers,md); break; case MemberDef::Function: removeMemberFromList(MemberList::decFuncMembers,md); removeMemberFromList(MemberList::docFuncMembers,md); break; case MemberDef::Typedef: removeMemberFromList(MemberList::decTypedefMembers,md); removeMemberFromList(MemberList::docTypedefMembers,md); break; case MemberDef::Enumeration: removeMemberFromList(MemberList::decEnumMembers,md); removeMemberFromList(MemberList::docEnumMembers,md); break; case MemberDef::EnumValue: removeMemberFromList(MemberList::decEnumValMembers,md); removeMemberFromList(MemberList::docEnumValMembers,md); break; case MemberDef::Define: removeMemberFromList(MemberList::decDefineMembers,md); removeMemberFromList(MemberList::docDefineMembers,md); break; case MemberDef::Signal: removeMemberFromList(MemberList::decSignalMembers,md); removeMemberFromList(MemberList::docSignalMembers,md); break; case MemberDef::Slot: if (md->protection()==Public) { removeMemberFromList(MemberList::decPubSlotMembers,md); removeMemberFromList(MemberList::docPubSlotMembers,md); } else if (md->protection()==Protected) { removeMemberFromList(MemberList::decProSlotMembers,md); removeMemberFromList(MemberList::docProSlotMembers,md); } else { removeMemberFromList(MemberList::decPriSlotMembers,md); removeMemberFromList(MemberList::docPriSlotMembers,md); } break; case MemberDef::Event: removeMemberFromList(MemberList::decEventMembers,md); removeMemberFromList(MemberList::docEventMembers,md); break; case MemberDef::Property: removeMemberFromList(MemberList::decPropMembers,md); removeMemberFromList(MemberList::docPropMembers,md); break; case MemberDef::Friend: removeMemberFromList(MemberList::decFriendMembers,md); removeMemberFromList(MemberList::docFriendMembers,md); break; default: err("GroupDef::removeMember(): unexpected member remove in file!\n"); } } }