71 else if (!hideScopeNames)
79 if (!scName.
isEmpty()) scName+=scopeSeparator;
86 if (actualParams && *actualParamIndex<actualParams->size())
93 (*actualParamIndex)++;
113 if (lang==SrcLangExt::VHDL)
148 if (lang==SrcLangExt::Fortran)
159 default:
return "unknown";
175 default:
return "unknown";
238 const ArgumentLists *actualParams=
nullptr,uint32_t *actualParamIndex=
nullptr)
const override;
278 const QCString &templSpec,
bool &freshInstance)
override;
333 const QCString &header,
bool localNames)
const override;
373 const ClassDef *inheritedFrom,
bool invert,
374 bool showAlways)
const;
378 int indentLevel,
const ClassDef *inheritedFrom,
const QCString &inheritId)
const;
401 const ClassDef *inheritedFrom,
bool invert,
bool showAlways,
564 const QCString &fileName,
int startLine,
int startColumn,
567 bool isSymbol,
bool isJavaEnum)
569 return std::make_unique<ClassDefImpl>(fileName,startLine,startColumn,name,ct,ref,fName,isSymbol,isJavaEnum);
670 const ArgumentLists *actualParams=
nullptr,uint32_t *actualParamIndex=
nullptr)
const override
752 const QCString &header,
bool localNames)
const override
766 int indentLevel,
const ClassDef *inheritedFrom,
const QCString &inheritId)
const override
794 auto acd = std::make_unique<ClassDefAliasImpl>(newScope,cd);
805 const QCString &defFileName,
int defLine,
int defColumn,
824 m_prot=Protection::Public;
846 if ((lang==SrcLangExt::Cpp || lang==SrcLangExt::ObjC) &&
guessSection(defFileName).isSource())
869 auto result = std::make_unique<ClassDefImpl>(
885 result->m_incInfo = std::make_unique<IncludeInfo>();
927 result->m_fileName = compTypeString+
name;
930 result->m_inheritFileName =
convertNameToFile(result->m_fileName+
"_inherit_graph");
940 result->addInnerCompound(cd);
952 for (
auto &mi : *mni)
960 mmd->moveTo(result.get());
962 result->internalInsertMember(newMd.get(),newMd->protection(),
true);
1013 if (!extractPrivate && cd->
protection()==Protection::Private)
return;
1022 if (!ml->listType().isDetailed())
1034 mg->addToDeclarationSection();
1095 case Protection::Protected:
1096 case Protection::Package:
1099 case Protection::Public:
1102 case Protection::Private:
1114 case Protection::Protected:
1117 case Protection::Package:
1120 case Protection::Public:
1123 case Protection::Private:
1132 case Protection::Protected:
1135 case Protection::Package:
1138 case Protection::Public:
1141 case Protection::Private:
1153 case Protection::Protected:
1156 case Protection::Package:
1159 case Protection::Public:
1162 const int MAX_CELL_SIZE=60;
1166 case Protection::Private:
1175 case Protection::Protected:
1178 case Protection::Package:
1181 case Protection::Public:
1187 case Protection::Private:
1196 case Protection::Protected:
1199 case Protection::Package:
1202 case Protection::Public:
1205 case Protection::Private:
1289 md->
name(), this->name());
1313 if (md->
name()==
"operator->")
1355 if (!ml->listType().isDetailed())
1371 mg->distributeMemberGroupDocumentation();
1382 mg->findSectionsInDocumentation(
this);
1386 if (!ml->listType().isDetailed())
1388 ml->findSectionsInDocumentation(
this);
1397 if (fd ==
nullptr)
return;
1409 if (bcd.
prot!=Protection::Public || bcd.
virt!=Specifier::Normal)
1414 if (bcd.
prot==Protection::Protected) sl.emplace_back(
"protected");
1415 else if (bcd.
prot==Protection::Private) sl.emplace_back(
"private");
1416 if (bcd.
virt==Specifier::Virtual) sl.emplace_back(
"virtual");
1418 for (
const auto &s : sl)
1420 if (!first) ol.
docify(
", ");
1430 const QCString &includeName,
bool local,
bool force)
1435 (fd!=
nullptr &&
m_incInfo->fileDef==
nullptr)
1443 if (force && !includeName.
isEmpty())
1480 if (!name.
isEmpty()) name+=
"::";
1515 auto it = al.begin();
1516 while (it!=al.end())
1537 if (it!=al.end()) ol.
docify(
", ");
1574 .setIndexWords(
true)
1575 .setSingleLine(
true));
1630 .setIndexWords(
true));
1641 .setIndexWords(
true));
1708 size_t numFiles =
m_files.size();
1709 if (lang==SrcLangExt::Fortran)
1717 result =
theTranslator->trEnumGeneratedFromFiles(numFiles==1);
1721 result =
theTranslator->trServiceGeneratedFromFiles(numFiles==1);
1725 result =
theTranslator->trSingletonGeneratedFromFiles(numFiles==1);
1754 for (
const auto &fd :
m_files)
1770 if (!fd->getVersion().isEmpty())
1772 fname +=
" (" + fd->getVersion() +
")";
1778 if (fd->generateSourceFile())
1782 else if (fd->isLinkable())
1797 if (fd->isLinkable())
1846 if (classGraph == CLASS_GRAPH_t::NO)
return;
1850 bool renderDiagram =
FALSE;
1851 if (haveDot && (classGraph==CLASS_GRAPH_t::YES || classGraph==CLASS_GRAPH_t::GRAPH))
1857 warn_uncond(
"Inheritance graph for '{}' not generated, too many nodes ({}), threshold is {}. Consider increasing DOT_GRAPH_MAX_NODES.\n",
1868 renderDiagram =
TRUE;
1871 else if ((classGraph==CLASS_GRAPH_t::YES || classGraph==CLASS_GRAPH_t::GRAPH || classGraph==CLASS_GRAPH_t::BUILTIN) && count>0)
1880 renderDiagram =
TRUE;
1892 auto replaceFunc = [
this,&ol](
size_t entryIndex)
1894 for (
size_t index=0; index<
m_inherits.size() ; index++)
1901 if (index==entryIndex)
1928 static_cast<size_t>(count),
1937 auto replaceFunc = [
this,&ol](
size_t entryIndex)
1945 if (index==entryIndex)
1965 static_cast<size_t>(count),
1983 warn_uncond(
"Collaboration graph for '{}' not generated, too many nodes ({}), threshold is {}. Consider increasing DOT_GRAPH_MAX_NODES.\n",
2005 if (!paths.empty() &&
m_incInfo->fileDef)
2010 for (
const auto &s : paths)
2021 if (
prefix.length() > length &&
2024 length =
prefix.length();
2070 if (
m_spec.isInterface())
2074 else if (
m_spec.isStruct())
2078 else if (
m_spec.isException())
2095 if (!first) ol.
docify(
", ");
2104 bool implements =
false;
2120 ol.
docify(
" implements ");
2127 if (!first) ol.
docify(
", ");
2184 mg->writeDeclarations(ol,
this,
nullptr,
nullptr,
nullptr,
nullptr,showInline);
2234 bool inlineInheritedMembers =
Config_getBool(INLINE_INHERITED_MEMB);
2266 if (lang!=SrcLangExt::VHDL)
2270 if (lde->kind()==LayoutDocEntry::ClassNestedClasses &&
2276 if (!innerCd->isAnonymous() &&
2277 !innerCd->isExtension() &&
2278 (innerCd->protection()!=Protection::Private || extractPrivate) &&
2279 innerCd->visibleInParentsDeclList()
2289 else if (lde->kind()==LayoutDocEntry::ClassAllMembersLink &&
2297 else if (lde->kind()==LayoutDocEntry::MemberDecl)
2335 tagFile <<
" <compound kind=\"";
2337 tagFile <<
"struct";
2346 tagFile <<
" <filename>" <<
convertToXML(fn) <<
"</filename>\n";
2354 tagFile <<
" <clangid>" <<
convertToXML(idStr) <<
"</clangid>\n";
2359 if (!a.name.isEmpty())
2363 tagFile <<
"</templarg>\n";
2370 tagFile <<
" <base";
2371 if (ibcd.prot==Protection::Protected)
2373 tagFile <<
" protection=\"protected\"";
2375 else if (ibcd.prot==Protection::Private)
2377 tagFile <<
" protection=\"private\"";
2379 if (ibcd.virt==Specifier::Virtual)
2381 tagFile <<
" virtualness=\"virtual\"";
2390 switch (lde->kind())
2392 case LayoutDocEntry::ClassNestedClasses:
2396 if (innerCd->isLinkableInProject() && !innerCd->isImplicitTemplateInstance() &&
2398 !innerCd->isEmbeddedInOuterScope()
2401 tagFile <<
" <class kind=\"" << innerCd->compoundTypeString() <<
2402 "\">" <<
convertToXML(innerCd->name()) <<
"</class>\n";
2407 case LayoutDocEntry::MemberDecl:
2420 case LayoutDocEntry::MemberGroups:
2424 mg->writeTagFile(tagFile);
2433 tagFile <<
" </compound>\n";
2487 switch (lde->kind())
2489 case LayoutDocEntry::BriefDesc:
2497 case LayoutDocEntry::ClassInheritanceGraph:
2500 case LayoutDocEntry::ClassCollaborationGraph:
2503 case LayoutDocEntry::MemberDeclStart:
2506 case LayoutDocEntry::MemberDecl:
2516 case LayoutDocEntry::MemberGroups:
2519 case LayoutDocEntry::MemberDeclEnd:
2522 case LayoutDocEntry::MemberDefStart:
2525 case LayoutDocEntry::MemberDef:
2541 case LayoutDocEntry::MemberDefEnd:
2583 if (!(usePDFLatex && pdfHyperlinks))
2606 bool extractLocalClasses =
Config_getBool(EXTRACT_LOCAL_CLASSES);
2609 (
protection()!=Protection::Private || extractPrivate) &&
2610 (linkable || (!hideUndocClasses && (!
isLocal() || extractLocalClasses)))
2651 else if (lang==SrcLangExt::VHDL)
2657 ol.
parseText(lang==SrcLangExt::Fortran ?
2672 if (lang!=SrcLangExt::VHDL)
2696 if (lang==SrcLangExt::VHDL)
2715 .setSingleLine(
true))
2717 if (!ast->isEmpty())
2720 ol.
writeDoc(ast.get(),
this,
nullptr);
2735 if (
isFinal()) sl.emplace_back(
"final");
2736 if (
isSealed()) sl.emplace_back(
"sealed");
2737 if (
isAbstract()) sl.emplace_back(
"abstract");
2743 bool alreadyAdded = std::find(sl.begin(), sl.end(), sx) != sl.end();
2756 for (
const auto &s : sl)
2781 switch (lde->kind())
2783 case LayoutDocEntry::BriefDesc:
2786 case LayoutDocEntry::ClassIncludes:
2787 if (lang==SrcLangExt::Slice)
2796 case LayoutDocEntry::ClassInheritanceGraph:
2799 case LayoutDocEntry::ClassCollaborationGraph:
2802 case LayoutDocEntry::ClassAllMembersLink:
2805 case LayoutDocEntry::MemberDeclStart:
2808 case LayoutDocEntry::MemberGroups:
2811 case LayoutDocEntry::MemberDecl:
2821 case LayoutDocEntry::ClassNestedClasses:
2830 case LayoutDocEntry::MemberDeclEnd:
2833 case LayoutDocEntry::DetailedDesc:
2842 case LayoutDocEntry::MemberDefStart:
2845 case LayoutDocEntry::ClassInlineClasses:
2848 case LayoutDocEntry::MemberDef:
2857 case LayoutDocEntry::MemberDefEnd:
2860 case LayoutDocEntry::ClassUsedFiles:
2863 case LayoutDocEntry::AuthorSection:
2866 case LayoutDocEntry::NamespaceNestedNamespaces:
2867 case LayoutDocEntry::NamespaceNestedConstantGroups:
2868 case LayoutDocEntry::NamespaceClasses:
2869 case LayoutDocEntry::NamespaceConcepts:
2870 case LayoutDocEntry::NamespaceInterfaces:
2871 case LayoutDocEntry::NamespaceStructs:
2872 case LayoutDocEntry::NamespaceExceptions:
2873 case LayoutDocEntry::NamespaceInlineClasses:
2874 case LayoutDocEntry::ConceptDefinition:
2875 case LayoutDocEntry::FileClasses:
2876 case LayoutDocEntry::FileConcepts:
2877 case LayoutDocEntry::FileInterfaces:
2878 case LayoutDocEntry::FileStructs:
2879 case LayoutDocEntry::FileExceptions:
2880 case LayoutDocEntry::FileNamespaces:
2881 case LayoutDocEntry::FileConstantGroups:
2882 case LayoutDocEntry::FileIncludes:
2883 case LayoutDocEntry::FileIncludeGraph:
2884 case LayoutDocEntry::FileIncludedByGraph:
2885 case LayoutDocEntry::FileSourceLink:
2886 case LayoutDocEntry::FileInlineClasses:
2887 case LayoutDocEntry::GroupClasses:
2888 case LayoutDocEntry::GroupConcepts:
2889 case LayoutDocEntry::GroupModules:
2890 case LayoutDocEntry::GroupInlineClasses:
2891 case LayoutDocEntry::GroupNamespaces:
2892 case LayoutDocEntry::GroupDirs:
2893 case LayoutDocEntry::GroupNestedGroups:
2894 case LayoutDocEntry::GroupFiles:
2895 case LayoutDocEntry::GroupGraph:
2896 case LayoutDocEntry::GroupPageDocs:
2897 case LayoutDocEntry::ModuleExports:
2898 case LayoutDocEntry::ModuleClasses:
2899 case LayoutDocEntry::ModuleConcepts:
2900 case LayoutDocEntry::ModuleUsedFiles:
2901 case LayoutDocEntry::DirSubDirs:
2902 case LayoutDocEntry::DirFiles:
2903 case LayoutDocEntry::DirGraph:
2904 err(
"Internal inconsistency: member '{}' should not be part of LayoutDocManager::Class entry list\n",lde->entryToString());
2917 auto getReferenceTitle = [
this](std::function<
QCString()> translateFunc) ->
QCString
2922 if (lang==SrcLangExt::Fortran)
2924 pageTitle = getReferenceTitle([
this](){
2928 else if (lang==SrcLangExt::Slice)
2930 pageTitle = getReferenceTitle([
this](){
2934 else if (lang==SrcLangExt::VHDL)
2936 pageTitle = getReferenceTitle([
this](){
2942 pageTitle = getReferenceTitle([
this](){
2950 pageTitle = getReferenceTitle([
this](){
2956 pageTitle = getReferenceTitle([
this](){
2962 pageTitle = getReferenceTitle([
this](){
2968 pageTitle = getReferenceTitle([
this](){
3012 bool hasAllMembersLink=
false;
3015 if (lde->kind()==LayoutDocEntry::ClassAllMembersLink)
3017 hasAllMembersLink =
true;
3027 if (!generateTreeView)
3062 if (ml->numDocMembers()>ml->numDocEnumValues() && ml->listType().isDetailed())
3064 ml->writeDocumentationPage(ol,
displayName(),
this);
3080 for (
auto &mi : *mni)
3123 innerCd->isLinkableInProject() && !innerCd->isImplicitTemplateInstance() &&
3125 !innerCd->isEmbeddedInOuterScope()
3128 msg(
"Generating docs for nested compound {}...\n",innerCd->displayName());
3129 innerCd->writeDocumentation(ol);
3130 innerCd->writeMemberList(ol);
3132 innerCd->writeDocumentationForInnerClasses(ol);
3175 if (!generateTreeView)
3200 for (
auto &mi : *mni)
3212 bool memberWritten=
FALSE;
3290 ol.
writeString(
"+ </td><td class=\"entry\">");
3292 ol.
writeString(
"- </td><td class=\"entry\">");
3345 (prot!=Protection::Public || (virt!=Specifier::Normal &&
getLanguage()!=SrcLangExt::ObjC) ||
3351 md->
isStatic() || lang==SrcLangExt::VHDL
3356 if (lang==SrcLangExt::VHDL)
3360 else if (md->
isFriend()) sl.emplace_back(
"friend");
3361 else if (md->
isRelated()) sl.emplace_back(
"related");
3365 sl.emplace_back(
"inline");
3366 if (md->
isExplicit()) sl.emplace_back(
"explicit");
3367 if (md->
isMutable()) sl.emplace_back(
"mutable");
3369 if (prot==Protection::Protected) sl.emplace_back(
"protected");
3370 else if (prot==Protection::Private) sl.emplace_back(
"private");
3371 else if (prot==Protection::Package) sl.emplace_back(
"package");
3372 if (virt==Specifier::Virtual &&
getLanguage()!=SrcLangExt::ObjC)
3373 sl.emplace_back(
"virtual");
3374 else if (virt==Specifier::Pure) sl.emplace_back(
"pure virtual");
3375 if (md->
isStatic()) sl.emplace_back(
"static");
3376 if (md->
isSignal()) sl.emplace_back(
"signal");
3377 if (md->
isSlot()) sl.emplace_back(
"slot");
3379 if (md->
isOptional()) sl.emplace_back(
"optional");
3380 if (md->
isAttribute()) sl.emplace_back(
"attribute");
3382 if (md->
isReadonly()) sl.emplace_back(
"readonly");
3383 if (md->
isBound()) sl.emplace_back(
"bound");
3384 if (md->
isRemovable()) sl.emplace_back(
"removable");
3386 if (md->
isTransient()) sl.emplace_back(
"transient");
3387 if (md->
isMaybeVoid()) sl.emplace_back(
"maybevoid");
3391 bool firstSpan=
true;
3392 for (
const auto &s : sl)
3442 if (cd==
nullptr && !hideUndocRelation)
3446 std::unique_ptr<ClassDef>(
3464 [&cd](
const auto &ccd) { return ccd.classDef==cd; });
3471 (*it).addAccessor(type);
3482 if (!a.typeConstraint.isEmpty())
3486 while ((i=a.typeConstraint.find(
'&',p))!=-1)
3521 err(
"Possible recursive class relation while inside {} and looking for base class {}\n",cd->
name(),bcd->
name());
3598 mg->writePlainDeclarations(ol,inGroup,
this,
nullptr,
nullptr,
nullptr,
nullptr,indentLevel,inheritedFrom,inheritId);
3603 if (lde->kind()==LayoutDocEntry::MemberDecl)
3675 !hideUndocClasses ||
3701 const ClassDef *ccd = bclass.classDef;
3706 if (ccd==bcd && (templSpec.
isEmpty() || templSpec==bclass.templSpecifiers))
3713 int d = ccd->
isBaseClass(bcd,followInstances,templSpec);
3716 err(
"Possible recursive class relation while inside {} and looking for base class {}\n",
name(),bcd->
name());
3721 if (distance==0 || d+1<distance)
3738 err(
"Possible recursive class relation while inside {} and looking for derived class {}\n",
name(),cd->
name());
3744 found = (ccd==cd) || ccd->
isSubClass(cd,level+1);
3754 return md->
name()==
"operator=" ||
3763 size_t sepLen = sep.
length();
3764 bool inlineInheritedMembers =
Config_getBool(INLINE_INHERITED_MEMB);
3777 for (
auto &srcMni : srcMnd)
3787 for (
auto &srcMi : *srcMni)
3791 bool ambiguous=
FALSE;
3794 for (
auto &dstMi : *dstMni)
3796 const MemberDef *dstMd = dstMi->memberDef();
3815 hidden = hidden || !found;
3825 QCString scope=dstMi->scopePath().
left(dstMi->scopePath().find(sep)+sepLen);
3826 if (scope!=dstMi->ambiguityResolutionScope().
left(scope.
length()))
3828 dstMi->setAmbiguityResolutionScope(scope+dstMi->ambiguityResolutionScope());
3839 if ((srcMi->virt()!=Specifier::Normal && dstMi->virt()!=Specifier::Normal) ||
3840 bClass->
name()+sep+srcMi->scopePath() == dstMi->scopePath() ||
3854 QCString scope=dstMi->scopePath().
left(dstMi->scopePath().find(sep)+sepLen);
3855 if (scope!=dstMi->ambiguityResolutionScope().
left(scope.
length()))
3857 dstMi->setAmbiguityResolutionScope(dstMi->ambiguityResolutionScope()+scope);
3876 srcMi->virtualBaseClass()==mergeVirtualBaseClass && lang!=SrcLangExt::Python)
3879 if (bcd.prot==Protection::Protected && prot==Protection::Public)
3883 else if (bcd.prot==Protection::Private)
3888 if (inlineInheritedMembers)
3898 if (virt==Specifier::Normal && bcd.virt!=Specifier::Normal) virt=bcd.virt;
3899 bool virtualBaseClass = bcd.virt!=Specifier::Normal;
3901 auto newMi = std::make_unique<MemberInfo>(srcMd,prot,virt,
TRUE,virtualBaseClass);
3902 newMi->setScopePath(bClass->
name()+sep+srcMi->scopePath());
3911 if (scope!=srcMi->ambiguityResolutionScope().
left(scope.
length()))
3913 newMi->setAmbiguityResolutionScope(scope+srcMi->ambiguityResolutionScope());
3918 if (srcMi->ambigClass()==
nullptr)
3920 newMi->setAmbigClass(bClass);
3921 newMi->setAmbiguityResolutionScope(bClass->
name()+sep);
3925 newMi->setAmbigClass(srcMi->ambigClass());
3926 newMi->setAmbiguityResolutionScope(srcMi->ambigClass()->name()+sep);
3929 dstMni->push_back(std::move(newMi));
3941 for (
auto &mi : *srcMni)
3943 if (mi->virtualBaseClass()==mergeVirtualBaseClass && !mi->memberDef()->isFriend())
3946 if (bcd.prot==Protection::Protected)
3948 if (prot==Protection::Public) prot=Protection::Protected;
3950 else if (bcd.prot==Protection::Private)
3952 prot=Protection::Private;
3955 bool virtualBaseClass = bcd.virt!=Specifier::Normal || mi->virtualBaseClass();
3956 if (virt==Specifier::Normal && bcd.virt!=Specifier::Normal) virt=bcd.virt;
3964 if (prot!=Protection::Private || extractPrivate)
3967 if (inlineInheritedMembers)
3976 std::unique_ptr<MemberInfo> newMi = std::make_unique<MemberInfo>(mi->memberDef(),prot,virt,
TRUE,virtualBaseClass);
3977 newMi->setScopePath(bClass->
name()+sep+mi->scopePath());
3978 newMi->setAmbigClass(mi->ambigClass());
3979 newMi->setAmbiguityResolutionScope(mi->ambiguityResolutionScope());
4007 for (
auto &srcMni : srcMnd)
4015 for (it=dstMni->
begin();it!=dstMni->
end();)
4024 it = dstMni->
erase(it);
4031 if (dstMni->
empty())
4033 dstMnd.
del(srcMni->memberName());
4092 bool extractLocalMethods =
Config_getBool(EXTRACT_LOCAL_METHODS);
4093 bool makePrivate = category->
isLocal();
4096 if (makePrivate && !extractLocalMethods)
return;
4107 insertBaseClass(bcd.classDef,bcd.usedName,bcd.prot,bcd.virt,bcd.templSpecifiers);
4111 for (
auto &scd : scl)
4113 if (scd.classDef==category)
4118 bcd.classDef->updateSubClasses(scl);
4127 for (
auto &srcMni : srcMnd)
4133 const auto &dstMi = dstMni->
front();
4134 const auto &srcMi = srcMni->front();
4155 for (
auto &mi : *srcMni)
4160 auto newMd = mi->memberDef()->deepCopy();
4167 auto newMi=std::make_unique<MemberInfo>(newMd.get(),prot,mi->virt(),mi->inherited(),mi->virtualBaseClass());
4168 newMi->setScopePath(mi->scopePath());
4169 newMi->setAmbigClass(mi->ambigClass());
4170 newMi->setAmbiguityResolutionScope(mi->ambiguityResolutionScope());
4178 mmd->setCategory(category);
4179 mmd->setCategoryRelation(mi->memberDef());
4181 if (miMmd) miMmd->setCategoryRelation(newMd.get());
4185 mmd->makeImplementationDetail();
4203 if (prot==Protection::Private && !extractPrivate)
return;
4208 [&cd](
const auto &ucd) { return ucd.classDef==cd; });
4221 case Protection::Public: acc.
prepend(
"+");
break;
4222 case Protection::Private: acc.
prepend(
"-");
break;
4223 case Protection::Protected: acc.
prepend(
"#");
break;
4224 case Protection::Package: acc.
prepend(
"~");
break;
4227 (*it).addAccessor(acc);
4235 if (prot==Protection::Private && !extractPrivate)
return;
4240 [&cd](
const auto &ucd) { return ucd.classDef==cd; });
4253 case Protection::Public: acc.
prepend(
"+");
break;
4254 case Protection::Private: acc.
prepend(
"-");
break;
4255 case Protection::Protected: acc.
prepend(
"#");
break;
4256 case Protection::Package: acc.
prepend(
"~");
break;
4259 (*it).addAccessor(acc);
4270 bool inlineGroupedClasses =
Config_getBool(INLINE_GROUPED_CLASSES);
4271 bool inlineSimpleClasses =
Config_getBool(INLINE_SIMPLE_STRUCTS);
4329 for (
auto &mi : *mni)
4334 md->
setGroupDef(gd,pri,fileName,startLine,hasDocs);
4359 int startLine,
int startColumn,
const QCString &templSpec,
bool &freshInstance)
4361 freshInstance =
FALSE;
4364 [&templSpec](
const auto &ti) { return templSpec==ti.templSpec; });
4370 if (templateClass==
nullptr)
4373 AUTO_TRACE(
"New template instance class name='{}' templSpec='{}' inside '{}' hidden={}",
4384 std::unique_ptr<ClassDef>(
4400 QCString innerName = tcname+
"::"+innerCd->localName();
4404 std::unique_ptr<ClassDef>(
4418 return templateClass;
4445 mmd->setMemberClass(
this);
4446 mmd->setTemplateMaster(md);
4452 mmd->setArtificial(
true);
4469 for (
const auto &mi : *mni)
4530 const ArgumentLists *actualParams,uint32_t *actualParamIndex)
const
4539 if (lang==SrcLangExt::CSharp)
4565 mg->addListReferences(
this);
4569 if (ml->listType().isDetailed())
4571 ml->addListReferences(
this);
4582 mg->addRequirementReferences(
this);
4586 if (ml->listType().isDetailed())
4588 ml->addRequirementReferences(
this);
4599 const int maxInheritanceDepth = 100000;
4600 int mdist=maxInheritanceDepth;
4601 for (
auto &mi : *mni)
4603 const ClassDef *mcd=mi->memberDef()->getClassDef();
4610 xmd=mi->memberDef();
4627 if (ml->listType()==lt)
4641 ml->setNeedsSorting((isBrief && sortBriefDocs) || (!isBrief && sortMemberDocs));
4645 if (!ml->listType().isDetailed())
4659 if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(
FALSE); }
4665 [](
const auto &c1,
const auto &c2)
4667 return Config_getBool(SORT_BY_SCOPE_NAME) ?
4668 qstricmp_sort(c1->name(), c2->name() )<0 :
4669 qstricmp_sort(c1->className(), c2->className())<0 ;
4698 count+=mg->countGroupedInheritedMembers(lt);
4699 if (!lt2.
isInvalid()) count+=mg->countGroupedInheritedMembers(lt2);
4702 bool inlineInheritedMembers =
Config_getBool(INLINE_INHERITED_MEMB);
4703 if (!inlineInheritedMembers)
4716 if (lde->kind()==LayoutDocEntry::MemberDecl)
4728 else if (lde->kind()==LayoutDocEntry::MemberGroups)
4732 mg->setAnonymousEnumType();
4742 ml->countDecMembers();
4743 ml->countDocMembers();
4747 mg->countDecMembers();
4748 mg->countDocMembers();
4753 const ClassDef *inheritedFrom,
bool invert,
bool showAlways,
4758 bool process = count>0;
4761 if ((process^invert) || showAlways)
4773 if (visitedClasses.find(icd)==visitedClasses.end())
4775 visitedClasses.insert(icd);
4794 if (lde->kind()==LayoutDocEntry::MemberDecl)
4797 if (lmd && lmd->
type==type)
4814 if (lde->kind()==LayoutDocEntry::MemberDecl)
4817 if (lmd && lmd->
type!=MemberListType::Friends())
4833 if (lde->kind()==LayoutDocEntry::MemberDecl)
4836 if (lmd && lmd->
type!=MemberListType::Friends())
4846 const ClassDef *inheritedFrom,
bool additional)
const
4857 bool hasOwnSection = !mg->allMembersInSameSection() ||
4859 if ((additional && hasOwnSection) || (!additional && !hasOwnSection))
4861 count+=mg->countGroupedInheritedMembers(lt);
4872 const ClassDef *inheritedFrom,
bool invert,
bool showAlways)
const
4875 bool process = count>0;
4878 if ((process^invert) || showAlways)
4894 if (visitedClasses.find(icd)==visitedClasses.end())
4896 visitedClasses.insert(icd);
4916 bool invert,
bool showAlways)
const
4941 ml->
writeDeclarations(ol,
this,
nullptr,
nullptr,
nullptr,
nullptr,tt,st,
FALSE,showInline,inheritedFrom,lt,
true);
4948 ml2->
writeDeclarations(ol,
this,
nullptr,
nullptr,
nullptr,
nullptr,tt,st,
FALSE,showInline,inheritedFrom,lt,ml==
nullptr);
4950 bool inlineInheritedMembers =
Config_getBool(INLINE_INHERITED_MEMB);
4951 if (!inlineInheritedMembers)
4954 inheritedFrom ? inheritedFrom :
this,
4968 mg->addGroupedInheritedMembers(ol,
this,lt,inheritedFrom,inheritId);
4989 int indentLevel,
const ClassDef *inheritedFrom,
const QCString &inheritId)
const
4995 ml->
writePlainDeclarations(ol,inGroup,
this,
nullptr,
nullptr,
nullptr,
nullptr,indentLevel,inheritedFrom,inheritId);
5043 [](
const auto &m1,
const auto &m2)
5045 return qstricmp_sort(m1->memberName(),m2->memberName())<0;
5131 return m_spec.isSealed();
5136 return m_spec.isPublished();
5141 return m_spec.isForwardDecl();
5146 return m_spec.isInterface();
5279 bool inlineGroupedClasses =
Config_getBool(INLINE_GROUPED_CLASSES);
5280 bool inlineSimpleClasses =
Config_getBool(INLINE_SIMPLE_STRUCTS);
5284 bool containerLinkable =
5292 bool b1 = (inlineGroupedClasses && !
partOfGroups().empty());
5294 bool b2 = (inlineSimpleClasses &&
m_isSimple &&
5295 (containerLinkable ||
5337 for (
const auto &sx : qualifiers)
5358 for (
const auto &mi : *mni)
5360 const MemberDef *classMd = mi->memberDef();
5382 int si = n.
find(
'(');
5383 int ei = n.
find(
')');
5497 return static_cast<const ClassDef*
>(d);
5524 if (n.
isEmpty())
return nullptr;
5530 for (
const auto &bcd : bcl)
5554 for (
const auto &bcd : bcl)
5556 if (bcd.classDef->isVisibleInHierarchy())
5576 const int maxInheritanceDepth = 100000;
5582 if (cd==bcd)
return level;
5585 warn_uncond(
"class {} seem to have a recursive inheritance relation!\n",cd->
name());
5588 int m=maxInheritanceDepth;
5611 err(
"Internal inconsistency: found class {} seem to have a recursive "
5612 "inheritance relation! Please send a bug report to doxygen@gmail.com\n",cd->
name());
5614 else if (prot!=Protection::Private)
5619 if (baseProt==Protection::Private) prot=Protection::Private;
5620 else if (baseProt==Protection::Protected) prot=Protection::Protected;
std::vector< ArgumentList > ArgumentLists
This class represents an function or template argument list.
bool isSimple() const override
bool isFortran() const override
Returns TRUE if this class is implemented in Fortran.
QCString requiresClause() const override
void writeTagFile(TextStream &ol) const override
int countMemberDeclarations(MemberListType lt, const ClassDef *inheritedFrom, MemberListType lt2, bool invert, bool showAlways, ClassDefSet &visitedClasses) const override
bool isSubClass(ClassDef *bcd, int level=0) const override
Returns TRUE iff bcd is a direct or indirect sub class of this class.
const UsesClassList & usedByImplementationClasses() const override
bool hasDetailedDescription() const override
returns TRUE if this class has a non-empty detailed description
void writePageNavigation(OutputList &ol) const override
ModuleDef * getModuleDef() const override
Returns the C++20 module in which this compound's definition can be found.
void writeDocumentation(OutputList &ol) const override
const UsesClassList & usedImplementationClasses() const override
StringVector getQualifiers() const override
void writeSummaryLinks(OutputList &ol) const override
bool isVisibleInHierarchy() const override
the class is visible in a class diagram, or class hierarchy
QCString qualifiedNameWithTemplateParameters(const ArgumentLists *actualParams=nullptr, uint32_t *actualParamIndex=nullptr) const override
bool isPublished() const override
Returns TRUE if this class is marked as published.
const MemberNameInfoLinkedMap & memberNameInfoLinkedMap() const override
Returns a dictionary of all members.
QCString anchor() const override
QCString title() const override
bool isImplicitTemplateInstance() const override
const FileList & usedFiles() const override
CodeSymbolType codeSymbolType() const override
bool isFinal() const override
Returns TRUE if this class is marked as final.
const ExampleList & getExamples() const override
void moveTo(Definition *) override
bool isReference() const override
bool isTemplateArgument() const override
void updateSubClasses(const BaseClassList &) override
Update the list of sub classes to the one passed.
bool isForwardDeclared() const override
Returns TRUE if this class represents a forward declaration of a template class.
const ArgumentList & typeConstraints() const override
const IncludeInfo * includeInfo() const override
bool isAccessibleMember(const MemberDef *md) const override
returns TRUE iff md is a member of this class or of the the public/protected members of a base class
QCString getSourceFileBase() const override
void writeMemberPages(OutputList &ol) const override
ClassDefAliasImpl(const Definition *newScope, const ClassDef *cd)
void writeDeclaration(OutputList &ol, const MemberDef *md, bool inGroup, int indentLevel, const ClassDef *inheritedFrom, const QCString &inheritId) const override
void writeQuickMemberLinks(OutputList &ol, const MemberDef *md) const override
void updateBaseClasses(const BaseClassList &) override
Update the list of base classes to the one passed.
bool containsOverload(const MemberDef *md) const override
bool subGrouping() const override
const ArgumentList & templateArguments() const override
Returns the template arguments of this class.
Protection protection() const override
Return the protection level (Public,Protected,Private) in which this compound was found.
bool isCSharp() const override
Returns TRUE if this class is implemented in C#.
const MemberGroupList & getMemberGroups() const override
Returns the member groups defined for this class.
bool isEmbeddedInOuterScope() const override
QCString getReference() const override
int isBaseClass(const ClassDef *bcd, bool followInstances, const QCString &templSpec) const override
Returns TRUE iff bcd is a direct or indirect base class of this class.
int countMembersIncludingGrouped(MemberListType lt, const ClassDef *inheritedFrom, bool additional) const override
void addGroupedInheritedMembers(OutputList &ol, MemberListType lt, const ClassDef *inheritedFrom, const QCString &inheritId) const override
bool isSealed() const override
Returns TRUE if this class is marked as sealed.
bool hasDocumentation() const override
FileDef * getFileDef() const override
Returns the namespace this compound is in, or 0 if it has a global scope.
ArgumentLists getTemplateParameterLists() const override
Returns the template parameter lists that form the template declaration of this class.
QCString getMemberListFileName() const override
bool hasNonReferenceSuperClass() const override
void writeInlineDocumentation(OutputList &ol) const override
const BaseClassList & subClasses() const override
Returns the list of sub classes that directly derive from this class.
bool isJavaEnum() const override
QCString inheritanceGraphFileName() const override
returns the file name to use for the inheritance graph
~ClassDefAliasImpl() override
const TemplateInstanceList & getTemplateInstances() const override
Returns a sorted dictionary with all template instances found for this template class.
QCString compoundTypeString() const override
Returns the type of compound as a string.
bool isLinkableInProject() const override
QCString displayName(bool includeScope=TRUE) const override
QCString className() const override
Returns the name of the class including outer classes, but not including namespaces.
bool isLocal() const override
Returns TRUE if this is a local class definition, see EXTRACT_LOCAL_CLASSES.
QCString getInstanceOutputFileBase() const override
void writeDocumentationForInnerClasses(OutputList &ol) const override
const MemberLists & getMemberLists() const override
Returns the list containing the list of members sorted per type.
MemberList * getMemberList(MemberListType lt) const override
Returns the members in the list identified by lt.
ClassDef * categoryOf() const override
Returns the class of which this is a category (Objective-C only).
const ClassDef * getCdAlias() const
QCString collaborationGraphFileName() const override
returns the file name to use for the collaboration graph
void writeMemberDeclarations(OutputList &ol, ClassDefSet &visitedClasses, MemberListType lt, const QCString &title, const QCString &subTitle=QCString(), bool showInline=FALSE, const ClassDef *inheritedFrom=nullptr, MemberListType lt2=MemberListType::Invalid(), bool invert=FALSE, bool showAlways=FALSE) const override
QCString getOutputFileBase() const override
CompoundType compoundType() const override
Returns the type of compound this is, i.e.
const TemplateNameMap & getTemplateBaseClassNames() const override
void writeDeclarationLink(OutputList &ol, bool &found, const QCString &header, bool localNames) const override
const Definition * findInnerCompound(const QCString &name) const override
DefType definitionType() const override
QCString generatedFromFiles() const override
bool isLinkable() const override
const BaseClassList & baseClasses() const override
Returns the list of base classes from which this class directly inherits.
const ClassDef * tagLessReference() const override
bool isExtension() const override
Returns TRUE if this class represents an Objective-C 2.0 extension (nameless category).
ClassLinkedRefMap getClasses() const override
returns the classes nested into this class
const ConstraintClassList & templateTypeConstraints() const override
bool isInterface() const override
Returns TRUE if this class represents an interface.
std::unique_ptr< ClassDef > deepCopy(const QCString &name) const override
bool isAbstract() const override
Returns TRUE if there is at least one pure virtual member in this class.
bool hasExamples() const override
bool visibleInParentsDeclList() const override
show this class in the declaration section of its parent?
const MemberDef * getMemberByName(const QCString &s) const override
Returns the member with the given name.
const ClassDef * templateMaster() const override
Returns the template master of which this class is an instance.
bool isTemplate() const override
Returns TRUE if this class is a template.
bool isSliceLocal() const override
bool isUsedOnly() const override
const MemberDef * isSmartPointer() const override
bool isObjectiveC() const override
Returns TRUE if this class is implemented in Objective-C.
void writeMemberList(OutputList &ol) const override
A abstract class representing of a compound symbol.
virtual int countMemberDeclarations(MemberListType lt, const ClassDef *inheritedFrom, MemberListType lt2, bool invert, bool showAlways, ClassDefSet &visitedClasses) const =0
virtual bool isSliceLocal() const =0
virtual ModuleDef * getModuleDef() const =0
Returns the C++20 module in which this compound's definition can be found.
virtual bool isAbstract() const =0
Returns TRUE if there is at least one pure virtual member in this class.
virtual bool isFinal() const =0
Returns TRUE if this class is marked as final.
virtual bool visibleInParentsDeclList() const =0
show this class in the declaration section of its parent?
virtual bool subGrouping() const =0
virtual void writeSummaryLinks(OutputList &ol) const =0
virtual bool hasDetailedDescription() const =0
returns TRUE if this class has a non-empty detailed description
virtual const ArgumentList & templateArguments() const =0
Returns the template arguments of this class.
virtual void writeMemberPages(OutputList &ol) const =0
virtual QCString compoundTypeString() const =0
Returns the type of compound as a string.
virtual bool isFortran() const =0
Returns TRUE if this class is implemented in Fortran.
virtual void writeDocumentation(OutputList &ol) const =0
virtual const MemberLists & getMemberLists() const =0
Returns the list containing the list of members sorted per type.
virtual QCString className() const =0
Returns the name of the class including outer classes, but not including namespaces.
virtual void writeMemberList(OutputList &ol) const =0
virtual bool isVisibleInHierarchy() const =0
the class is visible in a class diagram, or class hierarchy
virtual bool isTemplate() const =0
Returns TRUE if this class is a template.
virtual const BaseClassList & baseClasses() const =0
Returns the list of base classes from which this class directly inherits.
virtual bool isSealed() const =0
Returns TRUE if this class is marked as sealed.
virtual const MemberDef * getMemberByName(const QCString &) const =0
Returns the member with the given name.
virtual const TemplateInstanceList & getTemplateInstances() const =0
Returns a sorted dictionary with all template instances found for this template class.
virtual int isBaseClass(const ClassDef *bcd, bool followInstances, const QCString &templSpec=QCString()) const =0
Returns TRUE iff bcd is a direct or indirect base class of this class.
virtual ArgumentLists getTemplateParameterLists() const =0
Returns the template parameter lists that form the template declaration of this class.
virtual const UsesClassList & usedImplementationClasses() const =0
virtual bool isObjectiveC() const =0
Returns TRUE if this class is implemented in Objective-C.
virtual bool hasExamples() const =0
virtual QCString inheritanceGraphFileName() const =0
returns the file name to use for the inheritance graph
virtual StringVector getQualifiers() const =0
virtual bool isLocal() const =0
Returns TRUE if this is a local class definition, see EXTRACT_LOCAL_CLASSES.
virtual void writeQuickMemberLinks(OutputList &ol, const MemberDef *md) const =0
virtual bool isSimple() const =0
virtual Protection protection() const =0
Return the protection level (Public,Protected,Private) in which this compound was found.
virtual const ClassDef * tagLessReference() const =0
virtual MemberList * getMemberList(MemberListType lt) const =0
Returns the members in the list identified by lt.
virtual void writePageNavigation(OutputList &ol) const =0
virtual ClassDef * categoryOf() const =0
Returns the class of which this is a category (Objective-C only).
virtual QCString getInstanceOutputFileBase() const =0
virtual const MemberDef * isSmartPointer() const =0
virtual bool isExtension() const =0
Returns TRUE if this class represents an Objective-C 2.0 extension (nameless category).
virtual bool hasNonReferenceSuperClass() const =0
virtual bool isCSharp() const =0
Returns TRUE if this class is implemented in C#.
virtual bool isForwardDeclared() const =0
Returns TRUE if this class represents a forward declaration of a template class.
virtual QCString generatedFromFiles() const =0
virtual const ExampleList & getExamples() const =0
virtual bool isJavaEnum() const =0
virtual bool isSubClass(ClassDef *bcd, int level=0) const =0
Returns TRUE iff bcd is a direct or indirect sub class of this class.
virtual bool isTemplateArgument() const =0
virtual int countMembersIncludingGrouped(MemberListType lt, const ClassDef *inheritedFrom, bool additional) const =0
virtual const ArgumentList & typeConstraints() const =0
virtual bool isAccessibleMember(const MemberDef *md) const =0
returns TRUE iff md is a member of this class or of the the public/protected members of a base class
virtual QCString collaborationGraphFileName() const =0
returns the file name to use for the collaboration graph
virtual const TemplateNameMap & getTemplateBaseClassNames() const =0
virtual bool isPublished() const =0
Returns TRUE if this class is marked as published.
virtual const FileList & usedFiles() const =0
virtual void writeMemberDeclarations(OutputList &ol, ClassDefSet &visitedClasses, MemberListType lt, const QCString &title, const QCString &subTitle=QCString(), bool showInline=FALSE, const ClassDef *inheritedFrom=nullptr, MemberListType lt2=MemberListType::Invalid(), bool invert=FALSE, bool showAlways=FALSE) const =0
virtual QCString getMemberListFileName() const =0
virtual bool isEmbeddedInOuterScope() const =0
virtual void addGroupedInheritedMembers(OutputList &ol, MemberListType lt, const ClassDef *inheritedFrom, const QCString &inheritId) const =0
virtual const MemberNameInfoLinkedMap & memberNameInfoLinkedMap() const =0
Returns a dictionary of all members.
virtual void writeDeclarationLink(OutputList &ol, bool &found, const QCString &header, bool localNames) const =0
virtual const ConstraintClassList & templateTypeConstraints() const =0
virtual void writeDeclaration(OutputList &ol, const MemberDef *md, bool inGroup, int indentLevel, const ClassDef *inheritedFrom, const QCString &inheritId) const =0
virtual bool isImplicitTemplateInstance() const =0
virtual QCString qualifiedNameWithTemplateParameters(const ArgumentLists *actualParams=nullptr, uint32_t *actualParamIndex=nullptr) const =0
virtual const MemberGroupList & getMemberGroups() const =0
Returns the member groups defined for this class.
virtual const UsesClassList & usedByImplementationClasses() const =0
virtual const ClassDef * templateMaster() const =0
Returns the template master of which this class is an instance.
CompoundType
The various compound types.
virtual CompoundType compoundType() const =0
Returns the type of compound this is, i.e.
virtual bool containsOverload(const MemberDef *md) const =0
virtual ClassLinkedRefMap getClasses() const =0
returns the classes nested into this class
virtual bool isInterface() const =0
Returns TRUE if this class represents an interface.
virtual FileDef * getFileDef() const =0
Returns the namespace this compound is in, or 0 if it has a global scope.
virtual const IncludeInfo * includeInfo() const =0
virtual QCString requiresClause() const =0
virtual void writeInlineDocumentation(OutputList &ol) const =0
virtual void writeTagFile(TextStream &) const =0
virtual QCString title() const =0
virtual void writeDocumentationForInnerClasses(OutputList &ol) const =0
virtual const BaseClassList & subClasses() const =0
Returns the list of sub classes that directly derive from this class.
virtual bool isUsedOnly() const =0
Implementation of the ClassDef interface.
bool isSubClass(ClassDef *bcd, int level=0) const override
Returns TRUE iff bcd is a direct or indirect sub class of this class.
bool addExample(const QCString &anchor, const QCString &name, const QCString &file) override
QCString getReference() const override
QCString getInstanceOutputFileBase() const override
TemplateInstanceList m_templateInstances
void writeIncludeFilesForSlice(OutputList &ol) const
void overrideInheritanceGraph(CLASS_GRAPH_t e) override
ClassLinkedRefMap getClasses() const override
returns the classes nested into this class
QCString m_collabFileName
ArgumentList m_typeConstraints
void writePageNavigation(OutputList &ol) const override
void addMembersToMemberGroup() override
bool subGrouping() const override
void setMetaData(const QCString &md) override
void distributeMemberGroupDocumentation() override
void addMemberToList(MemberListType lt, MemberDef *md, bool isBrief)
bool isObjectiveC() const override
Returns TRUE if this class is implemented in Objective-C.
StringSet m_vhdlSummaryTitles
List of titles to use for the summary.
QCString compoundTypeString() const override
Returns the type of compound as a string.
void setImplicitTemplateInstance(bool b) override
void insertUsedFile(const FileDef *) override
QCString qualifiedNameWithTemplateParameters(const ArgumentLists *actualParams=nullptr, uint32_t *actualParamIndex=nullptr) const override
void writeTemplateSpec(OutputList &ol, const Definition *d, const QCString &type, SrcLangExt lang) const
void addUsedByClass(ClassDef *cd, const QCString &accessName, Protection prot) override
const MemberDef * m_arrowOperator
Does this class overloaded the -> operator?
void addClassAttributes(OutputList &ol) const
void updateSubClasses(const BaseClassList &bcd) override
Update the list of sub classes to the one passed.
void addMemberToTemplateInstance(const MemberDef *md, const ArgumentList &templateArguments, const QCString &templSpec) override
MemberGroupList m_memberGroups
FileDef * getFileDef() const override
Returns the namespace this compound is in, or 0 if it has a global scope.
bool isTemplateArgument() const override
void writeInheritanceGraph(OutputList &ol) const
QCString className() const override
Returns the name of the class including outer classes, but not including namespaces.
const ClassDef * m_tagLessRef
void setAnonymousEnumType() override
void setTagLessReference(const ClassDef *cd) override
bool isLinkableInProject() const override
BaseClassList m_inheritedBy
const TemplateInstanceList & getTemplateInstances() const override
Returns a sorted dictionary with all template instances found for this template class.
MemberLists m_memberLists
const UsesClassList & usedByImplementationClasses() const override
ArgumentLists getTemplateParameterLists() const override
Returns the template parameter lists that form the template declaration of this class.
void writeMemberList(OutputList &ol) const override
void writeMemberDeclarations(OutputList &ol, ClassDefSet &visitedClasses, MemberListType lt, const QCString &title, const QCString &subTitle=QCString(), bool showInline=FALSE, const ClassDef *inheritedFrom=nullptr, MemberListType lt2=MemberListType::Invalid(), bool invert=FALSE, bool showAlways=FALSE) const override
void writeBriefDescription(OutputList &ol, bool exampleFlag) const
void writeInlineClasses(OutputList &ol) const
void moveTo(Definition *) override
const ExampleList & getExamples() const override
UsesClassList m_usesImplClassList
void addListReferences() override
const ArgumentList & templateArguments() const override
Returns the template arguments of this class.
QCString m_inheritFileName
void writeDetailedDocumentationBody(OutputList &ol) const
ClassDefImpl(const QCString &fileName, int startLine, int startColumn, const QCString &name, CompoundType ct, const QCString &ref=QCString(), const QCString &fName=QCString(), bool isSymbol=TRUE, bool isJavaEnum=FALSE)
QCString generatedFromFiles() const override
const ClassDef * m_templateMaster
void writeTagFile(TextStream &) const override
void endMemberDeclarations(OutputList &ol) const
const MemberGroupList & getMemberGroups() const override
Returns the member groups defined for this class.
void sortMemberLists() override
const FileList & usedFiles() const override
void insertExplicitTemplateInstance(ClassDef *instance, const QCString &spec) override
void setTemplateArguments(const ArgumentList &al) override
void mergeCategory(ClassDef *category) override
void countMembers() override
void setClassSpecifier(TypeSpecifier spec) override
const MemberDef * getMemberByName(const QCString &) const override
Returns the member with the given name.
void reclassifyMember(MemberDefMutable *md, MemberType t) override
int countAdditionalInheritedMembers() const
void writePlainMemberDeclaration(OutputList &ol, MemberListType lt, bool inGroup, int indentLevel, const ClassDef *inheritedFrom, const QCString &inheritId) const
bool isFinal() const override
Returns TRUE if this class is marked as final.
void insertSubClass(ClassDef *, Protection p, Specifier s, const QCString &t=QCString()) override
void writeDocumentationForInnerClasses(OutputList &ol) const override
bool isUsedOnly() const override
QCString m_requiresClause
C++20 requires clause.
void addQualifiers(const StringVector &qualifiers) override
void setTypeConstraints(const ArgumentList &al) override
bool isInterface() const override
Returns TRUE if this class represents an interface.
void writeSimpleMemberDocumentation(OutputList &ol, MemberListType lt) const
int countMemberDeclarations(MemberListType lt, const ClassDef *inheritedFrom, MemberListType lt2, bool invert, bool showAlways, ClassDefSet &visitedClasses) const override
void writeInlineDocumentation(OutputList &ol) const override
Write class documentation inside another container (i.e.
int countMembersIncludingGrouped(MemberListType lt, const ClassDef *inheritedFrom, bool additional) const override
bool isLocal() const override
Returns TRUE if this is a local class definition, see EXTRACT_LOCAL_CLASSES.
const BaseClassList & baseClasses() const override
Returns the list of base classes from which this class directly inherits.
void writeCollaborationGraph(OutputList &ol) const
void writeDeclarationLink(OutputList &ol, bool &found, const QCString &header, bool localNames) const override
void setRequiresClause(const QCString &req) override
void writeAuthorSection(OutputList &ol) const
void writeDetailedDescription(OutputList &ol, const QCString &pageType, bool exampleFlag, const QCString &title, const QCString &anchor=QCString()) const
TemplateNameMap m_templBaseClassNames
const ConstraintClassList & templateTypeConstraints() const override
const UsesClassList & usedImplementationClasses() const override
std::unique_ptr< IncludeInfo > m_incInfo
ClassDef * categoryOf() const override
Returns the class of which this is a category (Objective-C only).
bool isReference() const override
bool isPublished() const override
Returns TRUE if this class is marked as published.
bool m_isJavaEnum
Does this class represent a Java style enum?
void writeDeclaration(OutputList &ol, const MemberDef *md, bool inGroup, int indentLevel, const ClassDef *inheritedFrom, const QCString &inheritId) const override
void addGroupedInheritedMembers(OutputList &ol, MemberListType lt, const ClassDef *inheritedFrom, const QCString &inheritId) const override
bool isFortran() const override
Returns TRUE if this class is implemented in Fortran.
void writeMemberPages(OutputList &ol) const override
MemberNameInfoLinkedMap m_allMemberNameInfoLinkedMap
void makeTemplateArgument(bool b=TRUE) override
void endMemberDocumentation(OutputList &ol) const
void writeDocumentation(OutputList &ol) const override
void writeMoreLink(OutputList &ol, const QCString &anchor) const
void setModuleDef(ModuleDef *mod) override
const BaseClassList & subClasses() const override
Returns the list of sub classes that directly derive from this class.
std::unique_ptr< ClassDef > deepCopy(const QCString &name) const override
bool isSimple() const override
void hideDerivedVariablesInPython(ClassDefMutable *cls)
void addUsedInterfaceClasses(MemberDef *md, const QCString &typeStr)
bool hasCollaborationGraph() const override
void writeInheritedMemberDeclarations(OutputList &ol, ClassDefSet &visitedClasses, MemberListType lt, MemberListType lt2, const QCString &title, const ClassDef *inheritedFrom, bool invert, bool showAlways) const
void writeQuickMemberLinks(OutputList &ol, const MemberDef *md) const override
bool containsOverload(const MemberDef *md) const override
void getTitleForMemberListType(MemberListType type, QCString &title, QCString &subtitle) const
bool isJavaEnum() const override
void setCompoundType(CompoundType t) override
void insertMember(MemberDef *) override
int countInheritedDecMembers(MemberListType lt, const ClassDef *inheritedFrom, bool invert, bool showAlways, ClassDefSet &visitedClasses) const
bool m_isSimple
Is this a simple (non-nested) C structure?
const ClassDef * tagLessReference() const override
bool isForwardDeclared() const override
Returns TRUE if this class represents a forward declaration of a template class.
CLASS_GRAPH_t m_typeInheritanceGraph
int countInheritanceNodes() const
void setTemplateBaseClassNames(const TemplateNameMap &templateNames) override
void findSectionsInDocumentation() override
bool isTemplate() const override
Returns TRUE if this class is a template.
int countInheritsNodes() const
void addMembersToTemplateInstance(const ClassDef *cd, const ArgumentList &templateArguments, const QCString &templSpec) override
void mergeMembersFromBaseClasses(bool mergeVirtualBaseClass)
const MemberNameInfoLinkedMap & memberNameInfoLinkedMap() const override
Returns a dictionary of all members.
StringVector m_qualifiers
ArgumentList m_primaryConstructorParams
const ClassDef * templateMaster() const override
Returns the template master of which this class is an instance.
const TemplateNameMap & getTemplateBaseClassNames() const override
ClassDef::CompoundType m_compType
bool m_hasCollaborationGraph
bool isExtension() const override
Returns TRUE if this class represents an Objective-C 2.0 extension (nameless category).
void addTypeConstraint(const QCString &typeConstraint, const QCString &type)
void setIncludeFile(FileDef *fd, const QCString &incName, bool local, bool force) override
bool isAbstract() const override
Returns TRUE if there is at least one pure virtual member in this class.
QCString getOutputFileBase() const override
void setGroupDefForAllMembers(GroupDef *g, Grouping::GroupPri_t pri, const QCString &fileName, int startLine, bool hasDocs) override
const IncludeInfo * includeInfo() const override
void setCategoryOf(ClassDef *cd) override
void addUsedClass(ClassDef *cd, const QCString &accessName, Protection prot) override
void addTypeConstraints() override
void setClassName(const QCString &name) override
QCString title() const override
bool visibleInParentsDeclList() const override
show this class in the declaration section of its parent?
const MemberLists & getMemberLists() const override
Returns the list containing the list of members sorted per type.
void overrideCollaborationGraph(bool e) override
bool isSealed() const override
Returns TRUE if this class is marked as sealed.
ClassLinkedRefMap m_innerClasses
UsesClassList m_usedByImplClassList
bool isSliceLocal() const override
ConstraintClassList m_constraintClassList
void setIsStatic(bool b) override
int countInheritedByNodes() const
QCString getMemberListFileName() const override
void setFileDef(FileDef *fd) override
void insertBaseClass(ClassDef *, const QCString &name, Protection p, Specifier s, const QCString &t=QCString()) override
DefType definitionType() const override
CodeSymbolType codeSymbolType() const override
QCString collaborationGraphFileName() const override
returns the file name to use for the collaboration graph
bool m_usedOnly
Reason of existence is a "use" relation.
bool isCSharp() const override
Returns TRUE if this class is implemented in C#.
void computeAnchors() override
void writeIncludeFiles(OutputList &ol) const
void addRequirementReferences() override
QCString anchor() const override
void addInnerCompound(Definition *d) override
void setSubGrouping(bool enabled) override
void mergeMembers() override
void writeSummaryLinks(OutputList &ol) const override
void writeMemberGroups(OutputList &ol, bool showInline=FALSE) const
int isBaseClass(const ClassDef *bcd, bool followInstances, const QCString &templSpec) const override
Returns TRUE iff bcd is a direct or indirect base class of this class.
QCString requiresClause() const override
void writeAdditionalInheritedMembers(OutputList &ol) const
void writeNestedClasses(OutputList &ol, const QCString &title) const
void removeMemberFromLists(MemberDef *md) override
QCString displayName(bool includeScope=TRUE) const override
bool isVisibleInHierarchy() const override
void writeMemberDocumentation(OutputList &ol, MemberListType lt, const QCString &title, bool showInline=FALSE) const
QCString m_memberListFileName
bool isLinkable() const override
bool m_implicitTemplateInstance
bool hasDocumentation() const override
ModuleDef * getModuleDef() const override
Returns the C++20 module in which this compound's definition can be found.
void internalInsertMember(MemberDef *md, Protection prot, bool addToAllList)
void startMemberDeclarations(OutputList &ol) const
void writeDocumentationContents(OutputList &ol, const QCString &pageTitle) const
bool hasExamples() const override
StringVector getQualifiers() const override
const MemberDef * isSmartPointer() const override
void updateBaseClasses(const BaseClassList &bcd) override
Update the list of base classes to the one passed.
CLASS_GRAPH_t hasInheritanceGraph() const override
MemberList * getMemberList(MemberListType lt) const override
Returns the members in the list identified by lt.
void setUsedOnly(bool b) override
Protection protection() const override
Return the protection level (Public,Protected,Private) in which this compound was found.
const ArgumentList & typeConstraints() const override
void showUsedFiles(OutputList &ol) const
const Definition * findInnerCompound(const QCString &name) const override
ClassDef * insertTemplateInstance(const QCString &fileName, int startLine, int startColumn, const QCString &templSpec, bool &freshInstance) override
bool isEmbeddedInOuterScope() const override
void sortAllMembersList() override
CompoundType compoundType() const override
Returns the type of compound this is, i.e.
bool isAccessibleMember(const MemberDef *md) const override
returns TRUE iff md is a member of this class or of the the public/protected members of a base class
bool isImplicitTemplateInstance() const override
bool hasNonReferenceSuperClass() const override
void setTemplateMaster(const ClassDef *tm) override
QCString inheritanceGraphFileName() const override
returns the file name to use for the inheritance graph
void setPrimaryConstructorParams(const ArgumentList &list) override
void startMemberDocumentation(OutputList &ol) const
QCString getSourceFileBase() const override
void setProtection(Protection p) override
bool hasDetailedDescription() const override
returns TRUE if this class has a non-empty detailed description
virtual void setGroupDefForAllMembers(GroupDef *g, Grouping::GroupPri_t pri, const QCString &fileName, int startLine, bool hasDocs)=0
virtual void setTemplateArguments(const ArgumentList &al)=0
virtual void setTemplateMaster(const ClassDef *tm)=0
virtual void setImplicitTemplateInstance(bool b)=0
virtual void addMemberToTemplateInstance(const MemberDef *md, const ArgumentList &templateArguments, const QCString &templSpec)=0
virtual void setUsedOnly(bool b)=0
virtual void setCategoryOf(ClassDef *cd)=0
virtual void addMembersToTemplateInstance(const ClassDef *cd, const ArgumentList &templateArguments, const QCString &templSpec)=0
virtual void mergeMembers()=0
Class representing a built-in class diagram.
const QCString & name() const override
const Definition * getAlias() const
const Definition * getScope() const
DefinitionAliasMixin(const Definition *scope, const Definition *alias)
The common base class of all entity definitions found in the sources.
virtual QCString docFile() const =0
virtual const QCString & localName() const =0
virtual SrcLangExt getLanguage() const =0
Returns the programming language this definition was written in.
virtual int docLine() const =0
virtual QCString getDefFileName() const =0
virtual bool isLinkable() const =0
virtual int getDefLine() const =0
virtual DefType definitionType() const =0
virtual QCString anchor() const =0
virtual int inbodyLine() const =0
virtual int briefLine() const =0
virtual bool hasDocumentation() const =0
virtual bool isLinkableInProject() const =0
virtual QCString briefDescription(bool abbreviate=FALSE) const =0
virtual bool isAnonymous() const =0
virtual bool isHidden() const =0
virtual const Definition * findInnerCompound(const QCString &name) const =0
virtual QCString getReference() const =0
virtual QCString getSourceFileBase() const =0
virtual QCString documentation() const =0
virtual QCString qualifiedName() const =0
virtual QCString displayName(bool includeScope=TRUE) const =0
virtual bool isArtificial() const =0
virtual QCString briefFile() const =0
virtual CodeSymbolType codeSymbolType() const =0
virtual QCString getOutputFileBase() const =0
virtual Definition * getOuterScope() const =0
virtual bool isReference() const =0
virtual QCString inbodyDocumentation() const =0
virtual QCString inbodyFile() const =0
virtual const QCString & name() const =0
int getDefLine() const override
bool isReference() const override
const QCString & name() const override
void writeSourceDef(OutputList &ol) const override
QCString inbodyFile() const override
QCString getDefFileName() const override
void writeNavigationPath(OutputList &ol) const override
bool isExported() const override
bool hasBriefDescription() const override
QCString docFile() const override
bool hasRequirementRefs() const override
QCString briefFile() const override
QCString qualifiedName() const override
bool isAnonymous() const override
QCString id() const override
void setOuterScope(Definition *def) override
void setReference(const QCString &r) override
void writeRequirementRefs(OutputList &ol) const override
QCString getSourceFileBase() const override
const RefItemVector & xrefListItems() const override
QCString briefDescription(bool abbreviate=FALSE) const override
Definition * getOuterScope() const override
QCString getReference() const override
DefinitionMixin(const QCString &defFileName, int defLine, int defColumn, const QCString &name, const char *b=nullptr, const char *d=nullptr, bool isSymbol=TRUE)
int getEndBodyLine() const override
const QCString & localName() const override
bool isHidden() const override
const GroupList & partOfGroups() const override
const FileDef * getBodyDef() const override
int getStartBodyLine() const override
int getStartDefLine() const override
QCString inbodyDocumentation() const override
int docLine() const override
int inbodyLine() const override
bool isArtificial() const override
int briefLine() const override
QCString documentation() const override
int getDefColumn() const override
void writeDocAnchorsToTagFile(TextStream &fs) const override
bool hasDocumentation() const override
SrcLangExt getLanguage() const override
virtual void setHidden(bool b)=0
virtual void addInnerCompound(Definition *d)=0
virtual void setLanguage(SrcLangExt lang)=0
virtual void setOuterScope(Definition *d)=0
virtual void setArtificial(bool b)=0
Representation of a class inheritance or dependency graph.
static bool suppressDocWarnings
static ClassLinkedMap * classLinkedMap
static NamespaceDefMutable * globalScope
static ClassLinkedMap * hiddenClassLinkedMap
static bool generatingXmlOutput
static MemberNameLinkedMap * memberNameLinkedMap
A model of a file symbol.
Minimal replacement for QFileInfo.
std::string absFilePath() const
A model of a group of symbols.
virtual bool addClass(ClassDef *def)=0
virtual bool insertMember(MemberDef *def, bool docOnly=FALSE)=0
static LayoutDocManager & instance()
Returns a reference to this singleton.
bool del(const QCString &key)
T * add(const char *k, Args &&... args)
const T * find(const std::string &key) const
A model of a class/file/namespace member symbol.
virtual QCString typeString() const =0
virtual bool isSignal() const =0
virtual bool isDestructor() const =0
virtual bool isExplicit() const =0
virtual bool isObjCMethod() const =0
virtual bool isMaybeVoid() const =0
virtual bool isConstructor() const =0
virtual bool isFriend() const =0
virtual bool isRelated() const =0
virtual const ClassDef * getClassDef() const =0
virtual bool isOverride() const =0
virtual bool isTypedef() const =0
virtual ClassDef * category() const =0
virtual bool isSlot() const =0
virtual const FileDef * getFileDef() const =0
virtual bool isInline() const =0
virtual const ArgumentList & argumentList() const =0
virtual bool isMaybeAmbiguous() const =0
virtual VhdlSpecifier getVhdlSpecifiers() const =0
virtual bool isFunction() const =0
virtual bool isAttribute() const =0
virtual int getMemberGroupId() const =0
virtual bool isStatic() const =0
virtual bool isMaybeDefault() const =0
virtual bool isRemovable() const =0
virtual bool isConstrained() const =0
virtual bool isReadonly() const =0
virtual bool isBound() const =0
virtual bool isThreadLocal() const =0
virtual ClassDef * getClassDefOfAnonymousType() const =0
virtual std::unique_ptr< MemberDef > createTemplateInstanceMember(const ArgumentList &formalArgs, const std::unique_ptr< ArgumentList > &actualArgs) const =0
virtual bool isTransient() const =0
virtual Protection protection() const =0
virtual TypeSpecifier getMemberSpecifiers() const =0
virtual bool isOptional() const =0
virtual bool isEnumerate() const =0
virtual MemberType memberType() const =0
virtual std::unique_ptr< MemberDef > deepCopy() const =0
virtual QCString memberTypeName() const =0
virtual bool isVariable() const =0
virtual QCString argsString() const =0
virtual Specifier virtualness(int count=0) const =0
virtual bool isUNOProperty() const =0
virtual bool isFinal() const =0
virtual bool isMutable() const =0
virtual bool isEnumValue() const =0
virtual void setMemberType(MemberType t)=0
virtual void setSectionList(const Definition *container, const MemberList *sl)=0
virtual void setCategory(ClassDef *)=0
virtual void setGroupDef(GroupDef *gd, Grouping::GroupPri_t pri, const QCString &fileName, int startLine, bool hasDocs, MemberDef *member=nullptr)=0
virtual void setCategoryRelation(const MemberDef *)=0
A list of MemberDef objects as shown in documentation sections.
void writeDeclarations(OutputList &ol, const ClassDef *cd, const NamespaceDef *nd, const FileDef *fd, const GroupDef *gd, const ModuleDef *mod, const QCString &title, const QCString &subtitle, bool showEnumValues=FALSE, bool showInline=FALSE, const ClassDef *inheritedFrom=nullptr, MemberListType lt=MemberListType::PubMethods(), bool showSectionTitle=true) const
Writes the list of members to the output.
void writeTagFile(TextStream &, bool useQualifiedName=false, bool showNamespaceMembers=true)
void writePlainDeclarations(OutputList &ol, bool inGroup, const ClassDef *cd, const NamespaceDef *nd, const FileDef *fd, const GroupDef *gd, const ModuleDef *mod, int indentLevel, const ClassDef *inheritedFrom, const QCString &inheritId) const
void setAnonymousEnumType()
int countInheritableMembers(const ClassDef *inheritedFrom) const
void writeSimpleDocumentation(OutputList &ol, const Definition *container) const
MemberListType listType() const
void writeDocumentation(OutputList &ol, const QCString &scopeName, const Definition *container, const QCString &title, const QCString &anchor, bool showEnumValues=FALSE, bool showInline=FALSE) const
int numDecMembers(const ClassDef *inheritedFrom) const
Wrapper class for the MemberListType type.
constexpr const char * toLabel() const noexcept
constexpr bool isInvalid() const noexcept
static constexpr MemberListType Invalid() noexcept
typename Vec::iterator iterator
iterator erase(iterator pos)
Class representing a list of output generators that are written to in parallel.
void writeDoc(const IDocNodeAST *ast, const Definition *ctx, const MemberDef *md, int sectionLevel=-1)
void endTextBlock(bool paraBreak=FALSE)
void writeString(const QCString &text)
void startMemberDeclaration()
void startMemberDoc(const QCString &clName, const QCString &memName, const QCString &anchor, const QCString &title, int memCount, int memTotal, bool showInline)
void startMemberDocName(bool align)
void disable(OutputType o)
void endMemberDoc(bool hasArgs)
void startGroupHeader(const QCString &id=QCString(), int extraLevels=0)
void enable(OutputType o)
void endMemberDescription()
void writeObjectLink(const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name)
void startMemberDescription(const QCString &anchor, const QCString &inheritId=QCString(), bool typ=false)
void endCompoundTemplateParams()
void docify(const QCString &s)
void generateDoc(const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &docStr, const DocOptions &options)
void startParagraph(const QCString &classDef=QCString())
void startTextBlock(bool dense=FALSE)
void addIndexItem(const QCString &s1, const QCString &s2)
void startMemberSections()
void endMemberItem(OutputGenerator::MemberItemType type)
void pushGeneratorState()
void insertMemberAlign(bool templ=FALSE)
void disableAllBut(OutputType o)
void writeSummaryLink(const QCString &file, const QCString &anchor, const QCString &title, bool first)
void writeAnchor(const QCString &fileName, const QCString &name)
void endGroupHeader(int extraLevels=0)
void endClassDiagram(const ClassDiagram &d, const QCString &f, const QCString &n)
void endDotGraph(DotClassGraph &g)
void writeLabel(const QCString &l, bool isLast)
void startCompoundTemplateParams()
void endMemberDeclaration(const QCString &anchor, const QCString &inheritId)
void startMemberItem(const QCString &anchor, OutputGenerator::MemberItemType type, const QCString &id=QCString())
void lineBreak(const QCString &style=QCString())
void parseText(const QCString &textStr)
void startTextLink(const QCString &file, const QCString &anchor)
void startMemberHeader(const QCString &anchor, int typ=2)
This is an alternative implementation of QCString.
int find(char c, int index=0, bool cs=TRUE) const
QCString & prepend(const char *s)
size_t length() const
Returns the length of the string, not counting the 0-terminator.
bool startsWith(const char *s) const
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
bool endsWith(const char *s) const
bool isEmpty() const
Returns TRUE iff the string is empty.
QCString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
QCString right(size_t len) const
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
QCString left(size_t len) const
static RequirementManager & instance()
void addRequirementRefsForSymbol(const Definition *symbol)
ClassDefMutable * resolveClassMutable(const Definition *scope, const QCString &name, bool mayBeUnlinkable=false, bool mayBeHidden=false)
Wrapper around resolveClass that returns a mutable interface to the class object or a nullptr if the ...
Implements TextGeneratorIntf for an OutputDocInterface stream.
Text streaming class that buffers data.
Wrapper class for a number of boolean properties.
static QCString getClassName(const ClassDef *)
static QCString getProtectionName(int prot)
static void writeInlineClassLink(const ClassDef *, OutputList &ol)
static void writeVhdlDeclarations(const MemberList *, OutputList &, const GroupDef *, const ClassDef *, const FileDef *, const NamespaceDef *, const ModuleDef *)
static VhdlClasses convert(Protection prot)
static QCString getClassTitle(const ClassDef *)
static QCString makeQualifiedNameWithTemplateParameters(const ClassDef *cd, const ArgumentLists *actualParams, uint32_t *actualParamIndex)
static QCString getCompoundTypeString(SrcLangExt lang, ClassDef::CompoundType compType, bool isJavaEnum)
ClassDefMutable * toClassDefMutable(Definition *d)
static bool hasNonReferenceSuperClassRec(const ClassDef *cd, int level)
static QCString makeDisplayName(const ClassDef *cd, bool includeScope)
int minClassDistance(const ClassDef *cd, const ClassDef *bcd, int level)
static bool isStandardFunc(const MemberDef *md)
ClassDef * getClass(const QCString &n)
std::unique_ptr< ClassDef > createClassDefAlias(const Definition *newScope, const ClassDef *cd)
static void writeInheritanceSpecifier(OutputList &ol, const BaseClassDef &bcd)
bool classHasVisibleRoot(const BaseClassList &bcl)
std::unique_ptr< ClassDef > createClassDef(const QCString &fileName, int startLine, int startColumn, const QCString &name, ClassDef::CompoundType ct, const QCString &ref, const QCString &fName, bool isSymbol, bool isJavaEnum)
Factory method to create a new ClassDef object.
static void searchTemplateSpecs(const Definition *d, ArgumentLists &result, QCString &name, SrcLangExt lang)
bool classVisibleInIndex(const ClassDef *cd)
ClassDef * toClassDef(Definition *d)
Protection classInheritedProtectionLevel(const ClassDef *cd, const ClassDef *bcd, Protection prot, int level)
bool classHasVisibleChildren(const ClassDef *cd)
std::vector< BaseClassDef > BaseClassList
std::unordered_set< const ClassDef * > ClassDefSet
std::map< std::string, int > TemplateNameMap
std::vector< TemplateInstanceDef > TemplateInstanceList
#define Config_getInt(name)
#define Config_getList(name)
#define Config_getBool(name)
#define Config_getString(name)
#define Config_getEnum(name)
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
std::set< std::string > StringSet
std::vector< std::string > StringVector
std::unique_ptr< ArgumentList > stringToArgumentList(SrcLangExt lang, const QCString &argsString, QCString *extraTypeChars=nullptr)
Definition * toDefinition(DefinitionMutable *dm)
#define AUTO_TRACE_ADD(...)
#define AUTO_TRACE_EXIT(...)
void docFindSections(const QCString &input, const Definition *d, const QCString &fileName)
IDocNodeASTPtr validatingParseDoc(IDocParser &parserIntf, const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &input, const DocOptions &options)
IDocParserPtr createDocParser()
factory function to create a parser
static bool isSpecialization(const ArgumentLists &srcTempArgLists, const ArgumentLists &dstTempArgLists)
static void writeTagFile()
QCString includeClose(SrcLangExt lang, IncludeKind kind)
QCString includeStatement(SrcLangExt lang, IncludeKind kind)
FileDef * toFileDef(Definition *d)
QCString includeOpen(SrcLangExt lang, IncludeKind kind)
void startTitle(OutputList &ol, const QCString &fileName, const DefinitionMutable *def)
void endFile(OutputList &ol, bool skipNavIndex, bool skipEndContents, const QCString &navPath)
void endTitle(OutputList &ol, const QCString &fileName, const QCString &name)
void startFile(OutputList &ol, const QCString &name, bool isSource, const QCString &manName, const QCString &title, HighlightedItem hli, bool additionalIndices, const QCString &altSidebarName, int hierarchyLevel, const QCString &allMembersFile)
void endFileWithNavPath(OutputList &ol, const DefinitionMutable *d, bool showPageNavigation)
Translator * theTranslator
MemberDefMutable * toMemberDefMutable(Definition *d)
void combineDeclarationAndDefinition(MemberDefMutable *mdec, MemberDefMutable *mdef)
#define warn_uncond(fmt,...)
#define warn(file, line, fmt,...)
ModuleDef * toModuleDef(Definition *d)
int qstricmp(const char *s1, const char *s2)
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
Web server based search engine.
This class contains the information about the argument of a function or template.
Class that contains information about an inheritance relation.
ClassDef * classDef
Class definition that this relation inherits from.
QCString templSpecifiers
Template arguments used for the base class.
Specifier virt
Virtualness of the inheritance relation: Normal, or Virtual.
Protection prot
Protection level of the inheritance relation: Public, Protected, or Private.
Data associated with an example.
GroupPri_t
Grouping priority.
Class representing the data associated with a #include statement.
Represents of a member declaration list with configurable title and subtitle.
QCString title(SrcLangExt lang) const
QCString subtitle(SrcLangExt lang) const
Represents of a member definition list with configurable title.
QCString title(SrcLangExt lang) const
QCString title(SrcLangExt lang) const
This file contains a number of basic enums and types.
bool matchArguments2(const Definition *srcScope, const FileDef *srcFileScope, const QCString &srcReturnType, const ArgumentList *srcAl, const Definition *dstScope, const FileDef *dstFileScope, const QCString &dstReturnType, const ArgumentList *dstAl, bool checkCV, SrcLangExt lang)
QCString removeRedundantWhiteSpace(const QCString &s)
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
QCString insertTemplateSpecifierInScope(const QCString &scope, const QCString &templ)
bool protectionLevelVisible(Protection prot)
QCString convertToHtml(const QCString &s, bool keepEntities)
void writeTypeConstraints(OutputList &ol, const Definition *d, const ArgumentList &al)
QCString tempArgListToString(const ArgumentList &al, SrcLangExt lang, bool includeDefault)
void addRefItem(const RefItemVector &sli, const QCString &key, const QCString &prefix, const QCString &name, const QCString &title, const QCString &args, const Definition *scope)
void addGroupListToTitle(OutputList &ol, const Definition *d)
QCString demangleCSharpGenericName(const QCString &name, const QCString &templArgs)
QCString removeAnonymousScopes(const QCString &str)
void createSubDirs(const Dir &d)
QCString stripScope(const QCString &name)
QCString inlineTemplateArgListToDoc(const ArgumentList &al)
QCString stripExtension(const QCString &fName)
static QCString stripFromPath(const QCString &p, const StringVector &l)
QCString convertNameToFile(const QCString &name, bool allowDots, bool allowUnderscore)
QCString convertToXML(const QCString &s, bool keepEntities)
EntryType guessSection(const QCString &name)
void convertProtectionLevel(MemberListType inListType, Protection inProt, MemberListType *outListType1, MemberListType *outListType2)
Computes for a given list type inListType, which are the the corresponding list type(s) in the base c...
QCString argListToString(const ArgumentList &al, bool useCanonicalType, bool showDefVals)
QCString getLanguageSpecificSeparator(SrcLangExt lang, bool classScope)
Returns the scope separator to use given the programming language lang.
void writeMarkerList(OutputList &ol, const std::string &markerText, size_t numMarkers, std::function< void(size_t)> replaceFunc)
void linkifyText(const TextGeneratorIntf &out, const Definition *scope, const FileDef *fileScope, const Definition *self, const QCString &text, bool autoBreak, bool external, bool keepSpaces, int indentLevel)
QCString convertToId(const QCString &s)
void writeExamples(OutputList &ol, const ExampleList &list)
void addHtmlExtensionIfMissing(QCString &fName)
A bunch of utility functions.