@@ -108,11 +108,11 @@ class NamespaceDefImpl : public DefinitionMixin<NamespaceDefMutable>
108108 const MemberLists &getMemberLists () const override { return m_memberLists; }
109109 const MemberDef *getMemberByName (const QCString &) const override ;
110110 const MemberGroupList &getMemberGroups () const override { return m_memberGroups; }
111- ClassLinkedRefMap getClasses () const override { return classes ; }
112- ClassLinkedRefMap getInterfaces () const override { return interfaces ; }
113- ClassLinkedRefMap getStructs () const override { return structs ; }
114- ClassLinkedRefMap getExceptions () const override { return exceptions ; }
115- NamespaceLinkedRefMap getNamespaces () const override { return namespaces ; }
111+ ClassLinkedRefMap getClasses () const override { return m_classes ; }
112+ ClassLinkedRefMap getInterfaces () const override { return m_interfaces ; }
113+ ClassLinkedRefMap getStructs () const override { return m_structs ; }
114+ ClassLinkedRefMap getExceptions () const override { return m_exceptions ; }
115+ NamespaceLinkedRefMap getNamespaces () const override { return m_namespaces ; }
116116 ConceptLinkedRefMap getConcepts () const override { return m_concepts; }
117117 void setName (const QCString &name) override ;
118118
@@ -158,12 +158,12 @@ class NamespaceDefImpl : public DefinitionMixin<NamespaceDefMutable>
158158 MemberLinkedRefMap m_allMembers;
159159 MemberLists m_memberLists;
160160 MemberGroupList m_memberGroups;
161- ClassLinkedRefMap classes ;
162- ClassLinkedRefMap interfaces ;
163- ClassLinkedRefMap structs ;
164- ClassLinkedRefMap exceptions ;
161+ ClassLinkedRefMap m_classes ;
162+ ClassLinkedRefMap m_interfaces ;
163+ ClassLinkedRefMap m_structs ;
164+ ClassLinkedRefMap m_exceptions ;
165165 ConceptLinkedRefMap m_concepts;
166- NamespaceLinkedRefMap namespaces ;
166+ NamespaceLinkedRefMap m_namespaces ;
167167 bool m_subGrouping = false ;
168168 enum { NAMESPACE, MODULE, CONSTANT_GROUP, LIBRARY } m_type;
169169 bool m_isPublished = false ;
@@ -409,21 +409,21 @@ void NamespaceDefImpl::addInnerCompound(Definition *d)
409409
410410void NamespaceDefImpl::insertClass (ClassDef *cd)
411411{
412- ClassLinkedRefMap *d = &classes ;
412+ ClassLinkedRefMap *d = &m_classes ;
413413
414414 if (Config_getBool (OPTIMIZE_OUTPUT_SLICE))
415415 {
416416 if (cd->compoundType ()==ClassDef::Interface)
417417 {
418- d = &interfaces ;
418+ d = &m_interfaces ;
419419 }
420420 else if (cd->compoundType ()==ClassDef::Struct)
421421 {
422- d = &structs ;
422+ d = &m_structs ;
423423 }
424424 else if (cd->compoundType ()==ClassDef::Exception)
425425 {
426- d = &exceptions ;
426+ d = &m_exceptions ;
427427 }
428428 }
429429
@@ -437,7 +437,7 @@ void NamespaceDefImpl::insertConcept(ConceptDef *cd)
437437
438438void NamespaceDefImpl::insertNamespace (NamespaceDef *nd)
439439{
440- namespaces .add (nd->name (),nd);
440+ m_namespaces .add (nd->name (),nd);
441441}
442442
443443
@@ -617,7 +617,7 @@ void NamespaceDefImpl::writeTagFile(TextStream &tagFile)
617617 {
618618 case LayoutDocEntry::NamespaceNestedNamespaces:
619619 {
620- for (const auto &nd : namespaces )
620+ for (const auto &nd : m_namespaces )
621621 {
622622 if (nd->isLinkableInProject ())
623623 {
@@ -628,22 +628,22 @@ void NamespaceDefImpl::writeTagFile(TextStream &tagFile)
628628 break ;
629629 case LayoutDocEntry::NamespaceClasses:
630630 {
631- writeClassesToTagFile (tagFile, classes );
631+ writeClassesToTagFile (tagFile, m_classes );
632632 }
633633 break ;
634634 case LayoutDocEntry::NamespaceInterfaces:
635635 {
636- writeClassesToTagFile (tagFile, interfaces );
636+ writeClassesToTagFile (tagFile, m_interfaces );
637637 }
638638 break ;
639639 case LayoutDocEntry::NamespaceStructs:
640640 {
641- writeClassesToTagFile (tagFile, structs );
641+ writeClassesToTagFile (tagFile, m_structs );
642642 }
643643 break ;
644644 case LayoutDocEntry::NamespaceExceptions:
645645 {
646- writeClassesToTagFile (tagFile, exceptions );
646+ writeClassesToTagFile (tagFile, m_exceptions );
647647 }
648648 break ;
649649 case LayoutDocEntry::NamespaceConcepts:
@@ -817,13 +817,13 @@ void NamespaceDefImpl::writeConcepts(OutputList &ol,const QCString &title)
817817
818818void NamespaceDefImpl::writeInlineClasses (OutputList &ol)
819819{
820- classes .writeDocumentation (ol,this );
820+ m_classes .writeDocumentation (ol,this );
821821}
822822
823823void NamespaceDefImpl::writeNamespaceDeclarations (OutputList &ol,const QCString &title,
824824 bool const isConstantGroup)
825825{
826- namespaces .writeDeclaration (ol,title,isConstantGroup,TRUE );
826+ m_namespaces .writeDeclaration (ol,title,isConstantGroup,TRUE );
827827}
828828
829829void NamespaceDefImpl::writeMemberGroups (OutputList &ol)
@@ -859,37 +859,37 @@ void NamespaceDefImpl::writeSummaryLinks(OutputList &ol) const
859859 for (const auto &lde : LayoutDocManager::instance ().docEntries (LayoutDocManager::Namespace))
860860 {
861861 const LayoutDocEntrySection *ls = dynamic_cast <const LayoutDocEntrySection*>(lde.get ());
862- if (lde->kind ()==LayoutDocEntry::NamespaceClasses && classes .declVisible () && ls)
862+ if (lde->kind ()==LayoutDocEntry::NamespaceClasses && m_classes .declVisible () && ls)
863863 {
864864 QCString label = " nested-classes" ;
865865 ol.writeSummaryLink (QCString (),label,ls->title (lang),first);
866866 first=FALSE ;
867867 }
868- else if (lde->kind ()==LayoutDocEntry::NamespaceInterfaces && interfaces .declVisible () && ls)
868+ else if (lde->kind ()==LayoutDocEntry::NamespaceInterfaces && m_interfaces .declVisible () && ls)
869869 {
870870 QCString label = " interfaces" ;
871871 ol.writeSummaryLink (QCString (),label,ls->title (lang),first);
872872 first=FALSE ;
873873 }
874- else if (lde->kind ()==LayoutDocEntry::NamespaceStructs && structs .declVisible () && ls)
874+ else if (lde->kind ()==LayoutDocEntry::NamespaceStructs && m_structs .declVisible () && ls)
875875 {
876876 QCString label = " structs" ;
877877 ol.writeSummaryLink (QCString (),label,ls->title (lang),first);
878878 first=FALSE ;
879879 }
880- else if (lde->kind ()==LayoutDocEntry::NamespaceExceptions && exceptions .declVisible () && ls)
880+ else if (lde->kind ()==LayoutDocEntry::NamespaceExceptions && m_exceptions .declVisible () && ls)
881881 {
882882 QCString label = " exceptions" ;
883883 ol.writeSummaryLink (QCString (),label,ls->title (lang),first);
884884 first=FALSE ;
885885 }
886- else if (lde->kind ()==LayoutDocEntry::NamespaceNestedNamespaces && namespaces .declVisible (false ) && ls)
886+ else if (lde->kind ()==LayoutDocEntry::NamespaceNestedNamespaces && m_namespaces .declVisible (false ) && ls)
887887 {
888888 QCString label = " namespaces" ;
889889 ol.writeSummaryLink (QCString (),label,ls->title (lang),first);
890890 first=FALSE ;
891891 }
892- else if (lde->kind ()==LayoutDocEntry::NamespaceNestedConstantGroups && namespaces .declVisible (true ) && ls)
892+ else if (lde->kind ()==LayoutDocEntry::NamespaceNestedConstantGroups && m_namespaces .declVisible (true ) && ls)
893893 {
894894 QCString label = " constantgroups" ;
895895 ol.writeSummaryLink (QCString (),label,ls->title (lang),first);
@@ -1014,22 +1014,22 @@ void NamespaceDefImpl::writeDocumentation(OutputList &ol)
10141014 break ;
10151015 case LayoutDocEntry::NamespaceClasses:
10161016 {
1017- if (ls) writeClassDeclarations (ol,ls->title (lang),classes );
1017+ if (ls) writeClassDeclarations (ol,ls->title (lang),m_classes );
10181018 }
10191019 break ;
10201020 case LayoutDocEntry::NamespaceInterfaces:
10211021 {
1022- if (ls) writeClassDeclarations (ol,ls->title (lang),interfaces );
1022+ if (ls) writeClassDeclarations (ol,ls->title (lang),m_interfaces );
10231023 }
10241024 break ;
10251025 case LayoutDocEntry::NamespaceStructs:
10261026 {
1027- if (ls) writeClassDeclarations (ol,ls->title (lang),structs );
1027+ if (ls) writeClassDeclarations (ol,ls->title (lang),m_structs );
10281028 }
10291029 break ;
10301030 case LayoutDocEntry::NamespaceExceptions:
10311031 {
1032- if (ls) writeClassDeclarations (ol,ls->title (lang),exceptions );
1032+ if (ls) writeClassDeclarations (ol,ls->title (lang),m_exceptions );
10331033 }
10341034 break ;
10351035 case LayoutDocEntry::NamespaceConcepts:
@@ -1453,25 +1453,35 @@ void NamespaceDefImpl::sortMemberLists()
14531453 if (ml->needsSorting ()) { ml->sort (); ml->setNeedsSorting (FALSE ); }
14541454 }
14551455
1456- auto classComp = []( const ClassLinkedRefMap::Ptr &c1, const ClassLinkedRefMap::Ptr &c2 )
1456+ if ( Config_getBool (SORT_BRIEF_DOCS) )
14571457 {
1458- return Config_getBool (SORT_BY_SCOPE_NAME) ?
1459- qstricmp_sort (c1->name (), c2->name ())<0 :
1460- qstricmp_sort (c1->className (), c2->className ())<0 ;
1461- };
1458+ auto classComp = [](const ClassLinkedRefMap::Ptr &c1,const ClassLinkedRefMap::Ptr &c2)
1459+ {
1460+ return Config_getBool (SORT_BY_SCOPE_NAME) ?
1461+ qstricmp_sort (c1->name (), c2->name ())<0 :
1462+ qstricmp_sort (c1->className (), c2->className ())<0 ;
1463+ };
14621464
1463- std::stable_sort (classes .begin (), classes .end (), classComp);
1464- std::stable_sort (interfaces .begin (),interfaces .end (),classComp);
1465- std::stable_sort (structs .begin (), structs .end (), classComp);
1466- std::stable_sort (exceptions .begin (),exceptions .end (),classComp);
1465+ std::stable_sort (m_classes .begin (), m_classes .end (), classComp);
1466+ std::stable_sort (m_interfaces .begin (),m_interfaces .end (),classComp);
1467+ std::stable_sort (m_structs .begin (), m_structs .end (), classComp);
1468+ std::stable_sort (m_exceptions .begin (),m_exceptions .end (),classComp);
14671469
1470+ auto conceptComp = [](const ConceptLinkedRefMap::Ptr &c1,const ConceptLinkedRefMap::Ptr &c2)
1471+ {
1472+ return qstricmp_sort (c1->name (),c2->name ())<0 ;
1473+ };
14681474
1469- auto namespaceComp = [](const NamespaceLinkedRefMap::Ptr &n1,const NamespaceLinkedRefMap::Ptr &n2)
1470- {
1471- return qstricmp_sort (n1->name (),n2->name ())<0 ;
1472- };
1475+ std::stable_sort (m_concepts.begin (), m_concepts.end (), conceptComp);
1476+
1477+ auto namespaceComp = [](const NamespaceLinkedRefMap::Ptr &n1,const NamespaceLinkedRefMap::Ptr &n2)
1478+ {
1479+ return qstricmp_sort (n1->name (),n2->name ())<0 ;
1480+ };
1481+
1482+ std::stable_sort (m_namespaces.begin (),m_namespaces.end (),namespaceComp);
1483+ }
14731484
1474- std::stable_sort (namespaces.begin (),namespaces.end (),namespaceComp);
14751485}
14761486
14771487MemberList *NamespaceDefImpl::getMemberList (MemberListType lt) const
0 commit comments