183 return std::make_unique<GroupDefImpl>(fileName,line,name,title,refFileName);
193 if (!refFileName.
empty())
195 m_fileName=stripExtension(refFileName);
199 m_fileName = convertNameToFile(DString(
"group_")+na);
240 mg->distributeMemberGroupDocumentation();
252 mg->findSectionsInDocumentation(
this);
257 if (ml->listType().isDeclaration())
259 ml->findSectionsInDocumentation(
this);
271 [](
const auto &fd1,
const auto &fd2)
272 { return dstricmp_sort(fd1->name(),fd2->name())<0; }),
358 if (ml->listType().isDeclaration())
372 for (
auto &srcMi : *mni)
374 const MemberDef *srcMd = srcMi->memberDef();
375 if (srcMd==md)
return false;
413 case MemberType::Variable:
420 case MemberType::Function:
427 case MemberType::Typedef:
434 case MemberType::Enumeration:
441 case MemberType::EnumValue:
448 case MemberType::Define:
455 case MemberType::Signal:
462 case MemberType::Slot:
471 else if (md->
protection()==Protection::Protected)
488 case MemberType::Event:
495 case MemberType::Property:
502 case MemberType::Friend:
510 err(
"GroupDefImpl::insertMembers(): "
511 "member '{}' (typeid='{}') with scope '{}' inserted in group scope '{}'!\n",
530 case MemberType::Variable:
534 case MemberType::Function:
538 case MemberType::Typedef:
542 case MemberType::Enumeration:
546 case MemberType::EnumValue:
550 case MemberType::Define:
554 case MemberType::Signal:
558 case MemberType::Slot:
564 else if (md->
protection()==Protection::Protected)
575 case MemberType::Event:
579 case MemberType::Property:
583 case MemberType::Friend:
588 err(
"GroupDefImpl::removeMember(): unexpected member remove in file!\n");
601 if (gd->findGroup(def))
627 ml->countDecMembers();
628 ml->countDocMembers();
632 mg->countDecMembers();
633 mg->countDocMembers();
659 tagFile <<
" <compound kind=\"group\">\n";
662 tagFile <<
" <filename>" << fn <<
"</filename>\n";
667 case LayoutDocEntry::GroupClasses:
671 if (cd->isLinkableInProject())
673 tagFile <<
" <class kind=\"" << cd->compoundTypeString()
679 case LayoutDocEntry::GroupConcepts:
683 if (cd->isLinkableInProject())
691 case LayoutDocEntry::GroupModules:
695 if (mod->isLinkableInProject())
703 case LayoutDocEntry::GroupNamespaces:
707 if (nd->isLinkableInProject())
715 case LayoutDocEntry::GroupFiles:
719 if (fd->isLinkableInProject())
721 tagFile <<
" <file path=\""
728 case LayoutDocEntry::GroupPageDocs:
732 DString pageName = pd->getOutputFileBase();
733 if (pd->isLinkableInProject())
735 tagFile <<
" <page>" <<
convertToXML(pageName) <<
"</page>\n";
740 case LayoutDocEntry::GroupDirs:
744 if (dd->isLinkableInProject())
746 tagFile <<
" <dir>" <<
convertToXML(dd->displayName()) <<
"</dir>\n";
751 case LayoutDocEntry::GroupNestedGroups:
757 tagFile <<
" <subgroup>" <<
convertToXML(gd->name()) <<
"</subgroup>\n";
762 case LayoutDocEntry::MemberDecl:
775 case LayoutDocEntry::MemberGroups:
779 mg->writeTagFile(tagFile,
true);
788 tagFile <<
" </compound>\n";
850 .setIndexWords(
true));
862 .setIndexWords(
true));
882 .setSingleLine(
true))
891 ol.
writeDoc(ast.get(),
this,
nullptr);
918 warn_uncond(
"Group dependency graph for '{}' not generated, too many nodes ({}), threshold is {}. Consider increasing DOT_GRAPH_MAX_NODES.\n",
947 if (!fd->hasDocumentation())
continue;
950 if (anc.
empty()) anc=fd->docName();
else anc.
prepend(fd->docName()+
"_");
956 if (!fd->briefDescription().empty() &&
Config_getBool(BRIEF_MEMBER_DESC))
963 fd->briefDescription(),
965 .setSingleLine(
true));
986 if (gd->isVisible()) count++;
998 if (!gd->hasDocumentation())
continue;
1001 if (anc.
empty()) anc=gd->name();
else anc.
prepend(gd->name()+
"_");
1006 if (!gd->briefDescription().empty() &&
Config_getBool(BRIEF_MEMBER_DESC))
1013 gd->briefDescription(),
1015 .setSingleLine(
true));
1036 if (!dd->hasDocumentation())
continue;
1039 if (anc.
empty()) anc=dd->shortName();
else anc.
prepend(dd->shortName()+
"_");
1045 if (!dd->briefDescription().empty() &&
Config_getBool(BRIEF_MEMBER_DESC))
1052 dd->briefDescription(),
1054 .setSingleLine(
true));
1090 for (
const auto *pd :
m_pages)
1092 if (!pd->isReference())
1095 if (pd->hasTitle() && !pd->name().empty() &&
1107 (pd->documentation()+pd->inbodyDocumentation()),
1109 .setIndexWords(
true));
1120 mg->writeDeclarations(ol,
nullptr,
nullptr,
nullptr,
this,
nullptr);
1179 (lde->kind()==LayoutDocEntry::GroupFiles && !
m_fileList.empty()) ||
1180 (lde->kind()==LayoutDocEntry::GroupNestedGroups && !
m_groups.empty()) ||
1181 (lde->kind()==LayoutDocEntry::GroupDirs && !
m_dirList.empty())
1187 DString label = lde->kind()==LayoutDocEntry::GroupClasses ?
"nested-classes" :
1188 lde->kind()==LayoutDocEntry::GroupConcepts ?
"concepts" :
1189 lde->kind()==LayoutDocEntry::GroupModules ?
"modules" :
1190 lde->kind()==LayoutDocEntry::GroupNamespaces ?
"namespaces" :
1191 lde->kind()==LayoutDocEntry::GroupFiles ?
"files" :
1192 lde->kind()==LayoutDocEntry::GroupNestedGroups ?
"groups" :
1198 else if (lde->kind()==LayoutDocEntry::MemberDecl)
1230 int hierarchyLevel = 0;
1239 false ,
DString() , hierarchyLevel);
1242 bool writeOutlinePanel = generateTreeView &&
Config_getBool(PAGE_OUTLINE_PANEL);
1254 .setIndexWords(
true)
1255 .setSingleLine(
true)
1256 .setAutolinkSupport(
false));
1286 switch (lde->kind())
1288 case LayoutDocEntry::BriefDesc:
1291 case LayoutDocEntry::MemberDeclStart:
1294 case LayoutDocEntry::GroupClasses:
1297 case LayoutDocEntry::GroupConcepts:
1300 case LayoutDocEntry::GroupModules:
1303 case LayoutDocEntry::GroupInlineClasses:
1306 case LayoutDocEntry::GroupNamespaces:
1309 case LayoutDocEntry::MemberGroups:
1312 case LayoutDocEntry::MemberDecl:
1321 case LayoutDocEntry::MemberDeclEnd:
1324 case LayoutDocEntry::DetailedDesc:
1327 case LayoutDocEntry::MemberDefStart:
1330 case LayoutDocEntry::MemberDef:
1339 case LayoutDocEntry::MemberDefEnd:
1342 case LayoutDocEntry::GroupNestedGroups:
1345 case LayoutDocEntry::GroupPageDocs:
1348 case LayoutDocEntry::GroupDirs:
1351 case LayoutDocEntry::GroupFiles:
1354 case LayoutDocEntry::GroupGraph:
1357 case LayoutDocEntry::AuthorSection:
1360 case LayoutDocEntry::ClassIncludes:
1361 case LayoutDocEntry::ClassInheritanceGraph:
1362 case LayoutDocEntry::ClassNestedClasses:
1363 case LayoutDocEntry::ClassCollaborationGraph:
1364 case LayoutDocEntry::ClassAllMembersLink:
1365 case LayoutDocEntry::ClassUsedFiles:
1366 case LayoutDocEntry::ClassInlineClasses:
1367 case LayoutDocEntry::NamespaceNestedNamespaces:
1368 case LayoutDocEntry::NamespaceNestedConstantGroups:
1369 case LayoutDocEntry::NamespaceClasses:
1370 case LayoutDocEntry::NamespaceConcepts:
1371 case LayoutDocEntry::NamespaceInterfaces:
1372 case LayoutDocEntry::NamespaceStructs:
1373 case LayoutDocEntry::NamespaceExceptions:
1374 case LayoutDocEntry::NamespaceInlineClasses:
1375 case LayoutDocEntry::ConceptDefinition:
1376 case LayoutDocEntry::FileClasses:
1377 case LayoutDocEntry::FileConcepts:
1378 case LayoutDocEntry::FileInterfaces:
1379 case LayoutDocEntry::FileStructs:
1380 case LayoutDocEntry::FileExceptions:
1381 case LayoutDocEntry::FileNamespaces:
1382 case LayoutDocEntry::FileConstantGroups:
1383 case LayoutDocEntry::FileIncludes:
1384 case LayoutDocEntry::FileIncludeGraph:
1385 case LayoutDocEntry::FileIncludedByGraph:
1386 case LayoutDocEntry::FileSourceLink:
1387 case LayoutDocEntry::FileInlineClasses:
1388 case LayoutDocEntry::ModuleExports:
1389 case LayoutDocEntry::ModuleClasses:
1390 case LayoutDocEntry::ModuleConcepts:
1391 case LayoutDocEntry::ModuleUsedFiles:
1392 case LayoutDocEntry::DirSubDirs:
1393 case LayoutDocEntry::DirFiles:
1394 case LayoutDocEntry::DirGraph:
1395 err(
"Internal inconsistency: member '{}' should not be part of "
1396 "LayoutDocManager::Group entry list\n",lde->entryToString());
1405 if (!subgd->isReference())
1407 if (subgd->partOfGroups().front() ==
this)
1450 if (ml->listType().isDocumentation())
1452 ml->writeDocumentationPage(ol,
name(),
this,hierarchyLevel);
1468 if (md->getGroupDef()==
this && md->isLinkable() && !md->isEnumValue())
1470 if (md->isLinkableInProject())
1472 DString fn = md->getOutputFileBase();
1519 "Found non-existing group '{}' for the command '{}', ignoring command",
1543 "Found non-existing group '{}' for the command '{}', ignoring command",
1563 "Found non-existing group '{}' for the command '{}', ignoring command",
1591 "Found non-existing group '{}' for the command '{}', ignoring command",
1614 "Found non-existing group '{}' for the command '{}', ignoring command",
1636 warn(root->
fileName,root->
startLine,
"Refusing to add group {} to group {}, since the latter is already a "
1637 "subgroup of the former", subGroup->
name(),gd->
name());
1648 "Found non-existing group '{}' for the command '{}', ignoring command",
1668 if (gd && g.
pri >= pri)
1670 if (fgd && gd!=fgd && g.
pri==pri)
1673 "Member {} found in multiple {} groups! "
1674 "The member will be put in group {}, and not in group {}",
1686 "Found non-existing group '{}' for the command '{}', ignoring command",
1698 bool insertit =
false;
1705 bool moveit =
false;
1725 "Member documentation for {} found several times in {} groups!\n"
1726 "{}:{}: The member will remain in group {}, and won't be put into group {}",
1795 "Found non-existing group '{}' for the command '{}', ignoring command",
1818 mg->addListReferences(
this);
1822 if (ml->listType().isDocumentation())
1824 ml->addListReferences(
this);
1834 mg->addRequirementReferences(
this);
1838 if (ml->listType().isDocumentation())
1840 ml->addRequirementReferences(
this);
1850 ml->setNeedsSorting(
1851 (ml->listType().isDeclaration() && sortBriefDocs) ||
1852 (ml->listType().isDocumentation() && sortMemberDocs));
1864 for (
size_t i=0; i<vec.size(); i++)
1866 std::string qni = vec[i]->name().str();
1867 size_t posi = qni.rfind(
"::");
1868 if (posi!=std::string::npos)
1870 std::string scope = qni.substr(0,posi);
1871 auto it = std::find_if( vec.begin(), vec.end(),
1872 [&](
typename Vec::Ptr &cd)
1873 { return cd->name().str()==scope; });
1876 size_t idx = std::distance(vec.begin(),it);
1882 while (k<vec.size() && vec[k]->name().str().substr(0,posi)==scope)
1888 for (
size_t j=i; j<idx; j++)
1890 std::swap(vec[j],vec[j+1]);
1894 else if (idx<i && vec[i-1]->name().str().substr(0,posi)!=scope)
1899 while (idx<i && vec[idx]->name().str().substr(0,posi)==scope)
1904 for (
size_t j=idx; j<i; j++)
1906 std::swap(vec[j],vec[j+1]);
1920 if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(
false); }
1970 if (ml->listType()==lt)
1983 if (optimizeVhdl && ml)
2010 [](
const auto &g1,
const auto &g2)
2011 { return g1->groupTitle() < g2->groupTitle(); });
2018 err(
"Possible recursive group relation while inside {}\n",gd->
name());
2086 if (d==
nullptr)
return nullptr;
2099 if (d==
nullptr)
return nullptr;
2102 return static_cast<const GroupDef*
>(d);
This class represents an function or template argument list.
A abstract class representing of a compound symbol.
virtual DString className() const =0
Returns the name of the class including outer classes, but not including namespaces.
virtual void setGroupDefForAllMembers(GroupDef *g, Grouping::GroupPri_t pri, const DString &fileName, int startLine, bool hasDocs)=0
bool declVisible(const ClassDef::CompoundType *filter=nullptr) const
void writeDocumentation(OutputList &ol, const Definition *container=nullptr) const
void writeDeclaration(OutputList &ol, const ClassDef::CompoundType *filter, const DString &header, bool localNames) const
void writeDeclaration(OutputList &ol, const DString &header, bool localNames) const
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
DString & prepend(const char *s)
size_t length() const
Returns the length of the string, not counting the 0-terminator.
The common base class of all entity definitions found in the sources.
virtual SrcLangExt getLanguage() const =0
Returns the programming language this definition was written in.
virtual DefType definitionType() const =0
virtual const DString & name() const =0
virtual bool isLinkableInProject() const =0
virtual bool isHidden() const =0
virtual const GroupList & partOfGroups() const =0
virtual Definition * getOuterScope() const =0
bool isReference() const override
DString docFile() const override
bool hasUserDocumentation() const override
DString qualifiedName() const override
bool hasBriefDescription() const override
DString briefFile() const override
bool hasRequirementRefs() const override
DString briefDescription(bool abbreviate=false) const override
const DString & name() const override
void setLanguage(SrcLangExt lang) override
DString inbodyFile() const override
void writeRequirementRefs(OutputList &ol) const override
const RefItemVector & xrefListItems() const override
DString documentation() const override
const GroupList & partOfGroups() const override
DefinitionMixin(const DString &defFileName, int defLine, size_t defColumn, const DString &name, const char *b=nullptr, const char *d=nullptr, bool isSymbol=true)
DString inbodyDocumentation() const override
int getStartBodyLine() const override
int docLine() const override
int inbodyLine() const override
int briefLine() const override
void writeDocAnchorsToTagFile(TextStream &fs) const override
SrcLangExt getLanguage() const override
virtual void makePartOfGroup(GroupDef *gd)=0
A model of a directory symbol.
Representation of a group collaboration graph.
static bool suppressDocWarnings
static GroupLinkedMap * groupLinkedMap
Represents an unstructured piece of information, about an entity found in the sources.
DString fileName
file this entry was extracted from
DString doc
documentation block (partly parsed)
std::vector< Grouping > groups
list of groups this entry belongs to
int startLine
start line of entry in the source
A model of a file symbol.
A model of a group of symbols.
virtual void addDir(DirDef *dd)=0
virtual void addExample(PageDef *def)=0
virtual const GroupList & getSubGroups() const =0
virtual bool addClass(ClassDef *def)=0
virtual bool addModule(ModuleDef *def)=0
virtual void removeMember(MemberDef *md)=0
virtual bool insertMember(MemberDef *def, bool docOnly=false)=0
virtual bool addNamespace(NamespaceDef *def)=0
virtual void addGroup(GroupDef *def)=0
virtual bool findGroup(const GroupDef *def) const =0
virtual bool addConcept(ConceptDef *def)=0
void writeConcepts(OutputList &ol, const DString &title)
ConceptLinkedRefMap m_concepts
const ModuleLinkedRefMap & getModules() const override
void endMemberDeclarations(OutputList &ol)
void startMemberDocumentation(OutputList &ol)
void setGroupScope(Definition *d) override
bool isLinkable() const override
bool addNamespace(NamespaceDef *def) override
Definition * getGroupScope() const override
bool hasGroupTitle() const override
void removeMemberFromList(MemberListType lt, MemberDef *md)
bool hasGroupGraph() const override
void writeSummaryLinks(OutputList &ol) const override
void startMemberDeclarations(OutputList &ol)
bool findGroup(const GroupDef *def) const override
void sortMemberLists() override
NamespaceLinkedRefMap m_namespaces
void writeInlineClasses(OutputList &ol)
CodeSymbolType codeSymbolType() const override
const MemberGroupList & getMemberGroups() const override
void removeMember(MemberDef *md) override
void addPage(PageDef *def) override
MemberList * getMemberList(MemberListType lt) const override
bool isASubGroup() const override
bool subGrouping() const override
ModuleLinkedRefMap m_modules
DString getOutputFileBase() const override
DString displayName(bool=true) const override
void addGroup(GroupDef *def) override
void addDir(DirDef *dd) override
MemberGroupList m_memberGroups
bool addModule(ModuleDef *def) override
void addMembersToMemberGroup() override
PageLinkedRefMap m_examples
DString groupTitle() const override
void writeTagFile(TextStream &) override
MemberList m_allMemberList
void writeGroupGraph(OutputList &ol)
bool isVisibleInHierarchy() const override
void writeAuthorSection(OutputList &ol)
void endMemberDocumentation(OutputList &ol)
void writeNamespaces(OutputList &ol, const DString &title)
void writeMemberDeclarations(OutputList &ol, MemberListType lt, const DString &title)
void writeModules(OutputList &ol, const DString &title)
void writeClasses(OutputList &ol, const DString &title)
void sortSubGroups() override
GroupDefImpl(const DString &fileName, int line, const DString &name, const DString &title, const DString &refFileName=DString())
bool addClass(ClassDef *def) override
void updateLanguage(const Definition *)
void writeNestedGroups(OutputList &ol, const DString &title)
void findSectionsInDocumentation() override
const GroupList & getSubGroups() const override
const DirList & getDirs() const override
void addMemberListToGroup(MemberList *, bool(MemberDef::*)() const)
const PageLinkedRefMap & getExamples() const override
void addFile(FileDef *def) override
bool insertMember(MemberDef *def, bool docOnly=false) override
bool hasDetailedDescription() const override
void overrideGroupGraph(bool e) override
const FileList & getFiles() const override
void writePageDocumentation(OutputList &ol)
DString anchor() const override
void writeFiles(OutputList &ol, const DString &title)
const NamespaceLinkedRefMap & getNamespaces() const override
const PageLinkedRefMap & getPages() const override
void writeMemberGroups(OutputList &ol)
void writeDirs(OutputList &ol, const DString &title)
Definition * m_groupScope
ClassLinkedRefMap m_classes
void writeMemberPages(OutputList &ol, int hierarchyLevel) override
void setGroupTitleLocal(const DString &title)
const MemberLists & getMemberLists() const override
void setGroupTitle(const DString &newtitle) override
const ClassLinkedRefMap & getClasses() const override
void writePageNavigation(OutputList &ol) const override
MemberNameInfoLinkedMap m_allMemberNameInfoLinkedMap
bool addConcept(ConceptDef *def) override
void writeDetailedDescription(OutputList &ol, const DString &title)
DefType definitionType() const override
void distributeMemberGroupDocumentation() override
void computeAnchors() override
void writeQuickMemberLinks(OutputList &ol, const MemberDef *currentMd) const override
void addRequirementReferences() override
void addListReferences() override
void writeMemberDocumentation(OutputList &ol, MemberListType lt, const DString &title)
bool containsFile(const FileDef *def) const override
void countMembers() override
bool isLinkableInProject() const override
MemberLists m_memberLists
size_t numDocMembers() const override
void addMemberToList(MemberListType lt, MemberDef *md)
DString groupTitleAsText() const override
const ConceptLinkedRefMap & getConcepts() const override
void writeDocumentation(OutputList &ol) override
void writeBriefDescription(OutputList &ol)
void addExample(PageDef *def) override
static LayoutDocManager & instance()
Returns a reference to this singleton.
bool del(const DString &key)
T * add(const char *k, Args &&... args)
const T * find(const std::string &key) const
bool add(const char *k, T *obj)
const T * find(const std::string &key) const
A model of a class/file/namespace member symbol.
virtual bool getGroupHasDocs() const =0
virtual const ClassDef * getClassDef() const =0
virtual const MemberDef * getGroupAlias() const =0
virtual const ArgumentList & templateArguments() const =0
virtual GroupDef * getGroupDef()=0
virtual const MemberVector & enumFieldList() const =0
virtual const FileDef * getFileDef() const =0
virtual const ArgumentList & argumentList() const =0
virtual int getGroupStartLine() const =0
virtual bool isFunction() const =0
virtual Grouping::GroupPri_t getGroupPri() const =0
virtual const ClassDef * getClassDefOfAnonymousType() const =0
virtual Protection protection() const =0
virtual bool isEnumerate() const =0
virtual MemberType memberType() const =0
virtual DString getGroupFileName() const =0
virtual bool isStrong() const =0
virtual DString typeString() const =0
virtual Specifier virtualness(int count=0) const =0
virtual DString memberTypeName() const =0
virtual void setGroupAlias(const MemberDef *md)=0
virtual void setGroupDef(GroupDef *gd, Grouping::GroupPri_t pri, const DString &fileName, int startLine, bool hasDocs, MemberDef *member=nullptr)=0
A list of MemberDef objects as shown in documentation sections.
void writeTagFile(TextStream &, bool useQualifiedName=false, bool showNamespaceMembers=true)
void writeDeclarations(OutputList &ol, const ClassDef *cd, const NamespaceDef *nd, const FileDef *fd, const GroupDef *gd, const ModuleDef *mod, const DString &title, const DString &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 writeDocumentation(OutputList &ol, const DString &scopeName, const Definition *container, const DString &title, const DString &anchor, bool showEnumValues=false, bool showInline=false) const
MemberListType listType() const
Wrapper class for the MemberListType type.
constexpr const char * toLabel() const noexcept
const std::unique_ptr< MemberList > & get(MemberListType lt, MemberListContainer con)
void remove(const MemberDef *md)
size_type size() const noexcept
void push_back(const T &value)
void writeDeclaration(OutputList &ol, const DString &header, bool localNames) const
An abstract interface of a namespace symbol.
void writeDeclaration(OutputList &ol, const DString &title, bool isConstantGroup=false, bool localName=false)
bool declVisible(bool isContantGroup) const
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 startTitleHead(const DString &fileName)
void startMemberDeclaration()
void parseText(const DString &textStr)
void endTitleHead(const DString &fileName, const DString &name)
void disable(OutputType o)
void startParagraph(const DString &classDef=DString())
void writePageLink(const DString &name, bool first)
void writeObjectLink(const DString &ref, const DString &file, const DString &anchor, const DString &name)
void endGroupCollaboration(DotGroupCollaboration &g)
void enable(OutputType o)
void endMemberDescription()
void endTextBlock(bool paraBreak=false)
void endMemberDeclaration(const DString &anchor, const DString &inheritId)
void startGroupCollaboration()
void docify(const DString &s)
void startMemberHeader(const DString &anchor, int typ=2)
void writeAnchor(const DString &fileName, const DString &name)
void startHeaderSection()
void insertMemberAlign(bool templ=false)
void writeString(const DString &text)
void endSection(const DString &lab, SectionType t)
void startMemberSections()
void endMemberItem(OutputGenerator::MemberItemType type)
void pushGeneratorState()
void writeSummaryLink(const DString &file, const DString &anchor, const DString &title, bool first)
void disableAllBut(OutputType o)
void startTextBlock(bool dense=false)
void startTextLink(const DString &file, const DString &anchor)
void endGroupHeader(int extraLevels=0)
void startMemberItem(const DString &anchor, OutputGenerator::MemberItemType type, const DString &id=DString())
void startMemberDescription(const DString &anchor, const DString &inheritId=DString(), bool typ=false)
void generateDoc(const DString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const DString &docStr, const DocOptions &options)
void startSection(const DString &lab, const DString &title, SectionType t)
void startGroupHeader(const DString &id=DString(), int extraLevels=0)
A model of a page symbol.
static RequirementManager & instance()
void addRequirementRefsForSymbol(const Definition *symbol)
class that provide information about a section.
static SectionManager & instance()
returns a reference to the singleton
static constexpr int Subsection
Text streaming class that buffers data.
virtual DString trGroup(bool first_capital, bool singular)=0
virtual DString trAuthor(bool first_capital, bool singular)=0
virtual DString trCollaborationDiagram(const DString &clName)=0
virtual DString trDir(bool first_capital, bool singular)=0
virtual DString trMore()=0
virtual DString trGeneratedAutomatically(const DString &s)=0
virtual DString trFile(bool first_capital, bool singular)=0
static void writeVhdlDeclarations(const MemberList *, OutputList &, const GroupDef *, const ClassDef *, const FileDef *, const NamespaceDef *, const ModuleDef *)
ClassDefMutable * toClassDefMutable(Definition *d)
ConceptDefMutable * toConceptDefMutable(Definition *d)
#define Config_getInt(name)
#define Config_getBool(name)
#define Config_getString(name)
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
bool compareDirDefs(const DirDef *item1, const DirDef *item2)
DString parseCommentAsText(const Definition *scope, const MemberDef *md, const DString &doc, const DString &fileName, int lineNr)
IDocParserPtr createDocParser()
factory function to create a parser
void docFindSections(const DString &input, const Definition *d, const DString &fileName)
IDocNodeASTPtr validatingParseDoc(IDocParser &parserIntf, const DString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const DString &input, const DocOptions &options)
int dstricmp_sort(const char *str1, const char *str2)
bool compareFileDefs(const FileDef *fd1, const FileDef *fd2)
void addNamespaceToGroups(const Entry *root, NamespaceDef *nd)
void addGroupToGroups(const Entry *root, GroupDef *subGroup)
void addClassToGroups(const Entry *root, ClassDef *cd)
void addDirToGroups(const Entry *root, DirDef *dd)
std::unique_ptr< GroupDef > createGroupDef(const DString &fileName, int line, const DString &name, const DString &title, const DString &refFileName)
static void groupClassesWithSameScope(Vec &vec)
void addModuleToGroups(const Entry *root, ModuleDef *mod)
GroupDef * toGroupDef(Definition *d)
void addConceptToGroups(const Entry *root, ConceptDef *cd)
static bool hasNonReferenceNestedGroupRec(const GroupDef *gd, int level)
void addExampleToGroups(const Entry *root, PageDef *eg)
void addMemberToGroups(const Entry *root, MemberDef *md)
void endFile(OutputList &ol, bool skipNavIndex, bool skipEndContents, const DString &navPath)
void startFile(OutputList &ol, const DString &name, bool isSource, const DString &manName, const DString &title, HighlightedItem hli, bool additionalIndices, const DString &altSidebarName, int hierarchyLevel, const DString &allMembersFile)
Translator * theTranslator
MemberDefMutable * toMemberDefMutable(Definition *d)
#define warn_uncond(fmt,...)
#define warn(file, line, fmt,...)
NamespaceDefMutable * toNamespaceDefMutable(Definition *d)
void addRefItem(const RefItemVector &sli, const DString &key, const DString &prefix, const DString &name, const DString &title, const DString &args, const Definition *scope)
Helper class to pass options when calling OutputList::generateDoc().
DString groupname
name of the group
static constexpr const char * getGroupPriName(GroupPri_t priority) noexcept
GroupPri_t
Grouping priority.
@ GROUPING_INGROUP
membership in group was defined by @ingroup
GroupPri_t pri
priority of this definition
Represents of a member declaration list with configurable title and subtitle.
DString title(SrcLangExt lang) const
Represents of a member definition list with configurable title.
DString title(SrcLangExt lang) const
DString title(SrcLangExt lang) const
void addGroupListToTitle(OutputList &ol, const Definition *d)
void createSubDirs(const Dir &d)
DString convertToHtml(const DString &s, bool keepEntities)
bool matchArguments2(const Definition *srcScope, const FileDef *srcFileScope, const DString &srcReturnType, const ArgumentList *srcAl, const Definition *dstScope, const FileDef *dstFileScope, const DString &dstReturnType, const ArgumentList *dstAl, bool checkCV, SrcLangExt lang)
void addHtmlExtensionIfMissing(DString &fName)
DString convertToXML(const DString &s, bool keepEntities, const bool citeEntry)
DString stripFromPath(const DString &path)
A bunch of utility functions.