182 return std::make_unique<GroupDefImpl>(fileName,line,name,title,refFileName);
192 if (!refFileName.
empty())
194 m_fileName=stripExtension(refFileName);
198 m_fileName = convertNameToFile(DString(
"group_")+na);
239 mg->distributeMemberGroupDocumentation();
251 mg->findSectionsInDocumentation(
this);
256 if (ml->listType().isDeclaration())
258 ml->findSectionsInDocumentation(
this);
270 [](
const auto &fd1,
const auto &fd2)
271 { return dstricmp_sort(fd1->name(),fd2->name())<0; }),
357 if (ml->listType().isDeclaration())
371 for (
auto &srcMi : *mni)
373 const MemberDef *srcMd = srcMi->memberDef();
374 if (srcMd==md)
return false;
412 case MemberType::Variable:
419 case MemberType::Function:
426 case MemberType::Typedef:
433 case MemberType::Enumeration:
440 case MemberType::EnumValue:
447 case MemberType::Define:
454 case MemberType::Signal:
461 case MemberType::Slot:
470 else if (md->
protection()==Protection::Protected)
487 case MemberType::Event:
494 case MemberType::Property:
501 case MemberType::Friend:
509 err(
"GroupDefImpl::insertMembers(): "
510 "member '{}' (typeid='{}') with scope '{}' inserted in group scope '{}'!\n",
529 case MemberType::Variable:
533 case MemberType::Function:
537 case MemberType::Typedef:
541 case MemberType::Enumeration:
545 case MemberType::EnumValue:
549 case MemberType::Define:
553 case MemberType::Signal:
557 case MemberType::Slot:
563 else if (md->
protection()==Protection::Protected)
574 case MemberType::Event:
578 case MemberType::Property:
582 case MemberType::Friend:
587 err(
"GroupDefImpl::removeMember(): unexpected member remove in file!\n");
600 if (gd->findGroup(def))
626 ml->countDecMembers();
627 ml->countDocMembers();
631 mg->countDecMembers();
632 mg->countDocMembers();
658 tagFile <<
" <compound kind=\"group\">\n";
661 tagFile <<
" <filename>" << fn <<
"</filename>\n";
666 case LayoutDocEntry::GroupClasses:
670 if (cd->isLinkableInProject())
672 tagFile <<
" <class kind=\"" << cd->compoundTypeString()
678 case LayoutDocEntry::GroupConcepts:
682 if (cd->isLinkableInProject())
690 case LayoutDocEntry::GroupModules:
694 if (mod->isLinkableInProject())
702 case LayoutDocEntry::GroupNamespaces:
706 if (nd->isLinkableInProject())
714 case LayoutDocEntry::GroupFiles:
718 if (fd->isLinkableInProject())
720 tagFile <<
" <file path=\""
727 case LayoutDocEntry::GroupPageDocs:
731 DString pageName = pd->getOutputFileBase();
732 if (pd->isLinkableInProject())
734 tagFile <<
" <page>" <<
convertToXML(pageName) <<
"</page>\n";
739 case LayoutDocEntry::GroupDirs:
743 if (dd->isLinkableInProject())
745 tagFile <<
" <dir>" <<
convertToXML(dd->displayName()) <<
"</dir>\n";
750 case LayoutDocEntry::GroupNestedGroups:
756 tagFile <<
" <subgroup>" <<
convertToXML(gd->name()) <<
"</subgroup>\n";
761 case LayoutDocEntry::MemberDecl:
774 case LayoutDocEntry::MemberGroups:
778 mg->writeTagFile(tagFile,
true);
787 tagFile <<
" </compound>\n";
849 .setIndexWords(
true));
861 .setIndexWords(
true));
881 .setSingleLine(
true))
890 ol.
writeDoc(ast.get(),
this,
nullptr);
917 warn_uncond(
"Group dependency graph for '{}' not generated, too many nodes ({}), threshold is {}. Consider increasing DOT_GRAPH_MAX_NODES.\n",
946 if (!fd->hasDocumentation())
continue;
949 if (anc.
empty()) anc=fd->docName();
else anc.
prepend(fd->docName()+
"_");
955 if (!fd->briefDescription().empty() &&
Config_getBool(BRIEF_MEMBER_DESC))
962 fd->briefDescription(),
964 .setSingleLine(
true));
985 if (gd->isVisible()) count++;
997 if (!gd->hasDocumentation())
continue;
1000 if (anc.
empty()) anc=gd->name();
else anc.
prepend(gd->name()+
"_");
1005 if (!gd->briefDescription().empty() &&
Config_getBool(BRIEF_MEMBER_DESC))
1012 gd->briefDescription(),
1014 .setSingleLine(
true));
1035 if (!dd->hasDocumentation())
continue;
1038 if (anc.
empty()) anc=dd->shortName();
else anc.
prepend(dd->shortName()+
"_");
1044 if (!dd->briefDescription().empty() &&
Config_getBool(BRIEF_MEMBER_DESC))
1051 dd->briefDescription(),
1053 .setSingleLine(
true));
1089 for (
const auto *pd :
m_pages)
1091 if (!pd->isReference())
1094 if (pd->hasTitle() && !pd->name().empty() &&
1106 (pd->documentation()+pd->inbodyDocumentation()),
1108 .setIndexWords(
true));
1119 mg->writeDeclarations(ol,
nullptr,
nullptr,
nullptr,
this,
nullptr);
1178 (lde->kind()==LayoutDocEntry::GroupFiles && !
m_fileList.empty()) ||
1179 (lde->kind()==LayoutDocEntry::GroupNestedGroups && !
m_groups.empty()) ||
1180 (lde->kind()==LayoutDocEntry::GroupDirs && !
m_dirList.empty())
1186 DString label = lde->kind()==LayoutDocEntry::GroupClasses ?
"nested-classes" :
1187 lde->kind()==LayoutDocEntry::GroupConcepts ?
"concepts" :
1188 lde->kind()==LayoutDocEntry::GroupModules ?
"modules" :
1189 lde->kind()==LayoutDocEntry::GroupNamespaces ?
"namespaces" :
1190 lde->kind()==LayoutDocEntry::GroupFiles ?
"files" :
1191 lde->kind()==LayoutDocEntry::GroupNestedGroups ?
"groups" :
1197 else if (lde->kind()==LayoutDocEntry::MemberDecl)
1229 int hierarchyLevel = 0;
1238 false ,
DString() , hierarchyLevel);
1241 bool writeOutlinePanel = generateTreeView &&
Config_getBool(PAGE_OUTLINE_PANEL);
1253 .setIndexWords(
true)
1254 .setSingleLine(
true)
1255 .setAutolinkSupport(
false));
1285 switch (lde->kind())
1287 case LayoutDocEntry::BriefDesc:
1290 case LayoutDocEntry::MemberDeclStart:
1293 case LayoutDocEntry::GroupClasses:
1296 case LayoutDocEntry::GroupConcepts:
1299 case LayoutDocEntry::GroupModules:
1302 case LayoutDocEntry::GroupInlineClasses:
1305 case LayoutDocEntry::GroupNamespaces:
1308 case LayoutDocEntry::MemberGroups:
1311 case LayoutDocEntry::MemberDecl:
1320 case LayoutDocEntry::MemberDeclEnd:
1323 case LayoutDocEntry::DetailedDesc:
1326 case LayoutDocEntry::MemberDefStart:
1329 case LayoutDocEntry::MemberDef:
1338 case LayoutDocEntry::MemberDefEnd:
1341 case LayoutDocEntry::GroupNestedGroups:
1344 case LayoutDocEntry::GroupPageDocs:
1347 case LayoutDocEntry::GroupDirs:
1350 case LayoutDocEntry::GroupFiles:
1353 case LayoutDocEntry::GroupGraph:
1356 case LayoutDocEntry::AuthorSection:
1359 case LayoutDocEntry::ClassIncludes:
1360 case LayoutDocEntry::ClassInheritanceGraph:
1361 case LayoutDocEntry::ClassNestedClasses:
1362 case LayoutDocEntry::ClassCollaborationGraph:
1363 case LayoutDocEntry::ClassAllMembersLink:
1364 case LayoutDocEntry::ClassUsedFiles:
1365 case LayoutDocEntry::ClassInlineClasses:
1366 case LayoutDocEntry::NamespaceNestedNamespaces:
1367 case LayoutDocEntry::NamespaceNestedConstantGroups:
1368 case LayoutDocEntry::NamespaceClasses:
1369 case LayoutDocEntry::NamespaceConcepts:
1370 case LayoutDocEntry::NamespaceInterfaces:
1371 case LayoutDocEntry::NamespaceStructs:
1372 case LayoutDocEntry::NamespaceExceptions:
1373 case LayoutDocEntry::NamespaceInlineClasses:
1374 case LayoutDocEntry::ConceptDefinition:
1375 case LayoutDocEntry::FileClasses:
1376 case LayoutDocEntry::FileConcepts:
1377 case LayoutDocEntry::FileInterfaces:
1378 case LayoutDocEntry::FileStructs:
1379 case LayoutDocEntry::FileExceptions:
1380 case LayoutDocEntry::FileNamespaces:
1381 case LayoutDocEntry::FileConstantGroups:
1382 case LayoutDocEntry::FileIncludes:
1383 case LayoutDocEntry::FileIncludeGraph:
1384 case LayoutDocEntry::FileIncludedByGraph:
1385 case LayoutDocEntry::FileSourceLink:
1386 case LayoutDocEntry::FileInlineClasses:
1387 case LayoutDocEntry::ModuleExports:
1388 case LayoutDocEntry::ModuleClasses:
1389 case LayoutDocEntry::ModuleConcepts:
1390 case LayoutDocEntry::ModuleUsedFiles:
1391 case LayoutDocEntry::DirSubDirs:
1392 case LayoutDocEntry::DirFiles:
1393 case LayoutDocEntry::DirGraph:
1394 err(
"Internal inconsistency: member '{}' should not be part of "
1395 "LayoutDocManager::Group entry list\n",lde->entryToString());
1404 if (!subgd->isReference())
1406 if (subgd->partOfGroups().front() ==
this)
1449 if (ml->listType().isDocumentation())
1451 ml->writeDocumentationPage(ol,
name(),
this,hierarchyLevel);
1467 if (md->getGroupDef()==
this && md->isLinkable() && !md->isEnumValue())
1469 if (md->isLinkableInProject())
1471 DString fn = md->getOutputFileBase();
1518 "Found non-existing group '{}' for the command '{}', ignoring command",
1542 "Found non-existing group '{}' for the command '{}', ignoring command",
1562 "Found non-existing group '{}' for the command '{}', ignoring command",
1590 "Found non-existing group '{}' for the command '{}', ignoring command",
1613 "Found non-existing group '{}' for the command '{}', ignoring command",
1635 warn(root->
fileName,root->
startLine,
"Refusing to add group {} to group {}, since the latter is already a "
1636 "subgroup of the former", subGroup->
name(),gd->
name());
1647 "Found non-existing group '{}' for the command '{}', ignoring command",
1667 if (gd && g.
pri >= pri)
1669 if (fgd && gd!=fgd && g.
pri==pri)
1672 "Member {} found in multiple {} groups! "
1673 "The member will be put in group {}, and not in group {}",
1685 "Found non-existing group '{}' for the command '{}', ignoring command",
1697 bool insertit =
false;
1704 bool moveit =
false;
1724 "Member documentation for {} found several times in {} groups!\n"
1725 "{}:{}: The member will remain in group {}, and won't be put into group {}",
1794 "Found non-existing group '{}' for the command '{}', ignoring command",
1817 mg->addListReferences(
this);
1821 if (ml->listType().isDocumentation())
1823 ml->addListReferences(
this);
1833 mg->addRequirementReferences(
this);
1837 if (ml->listType().isDocumentation())
1839 ml->addRequirementReferences(
this);
1849 ml->setNeedsSorting(
1850 (ml->listType().isDeclaration() && sortBriefDocs) ||
1851 (ml->listType().isDocumentation() && sortMemberDocs));
1863 for (
size_t i=0; i<vec.size(); i++)
1865 std::string qni = vec[i]->name().str();
1866 size_t posi = qni.rfind(
"::");
1867 if (posi!=std::string::npos)
1869 std::string scope = qni.substr(0,posi);
1870 auto it = std::find_if( vec.begin(), vec.end(),
1871 [&](
typename Vec::Ptr &cd)
1872 { return cd->name().str()==scope; });
1875 size_t idx = std::distance(vec.begin(),it);
1881 while (k<vec.size() && vec[k]->name().str().substr(0,posi)==scope)
1887 for (
size_t j=i; j<idx; j++)
1889 std::swap(vec[j],vec[j+1]);
1893 else if (idx<i && vec[i-1]->name().str().substr(0,posi)!=scope)
1898 while (idx<i && vec[idx]->name().str().substr(0,posi)==scope)
1903 for (
size_t j=idx; j<i; j++)
1905 std::swap(vec[j],vec[j+1]);
1919 if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(
false); }
1969 if (ml->listType()==lt)
1982 if (optimizeVhdl && ml)
2009 [](
const auto &g1,
const auto &g2)
2010 { return g1->groupTitle() < g2->groupTitle(); });
2017 err(
"Possible recursive group relation while inside {}\n",gd->
name());
2085 if (d==
nullptr)
return nullptr;
2098 if (d==
nullptr)
return nullptr;
2101 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)
void addMembersToMemberGroup(MemberList *ml, MemberGroupList *pMemberGroups, const Definition *context)
#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)
Web server based search engine.
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.