50 bool sortConstructorsFirst =
Config_getBool(SORT_MEMBERS_CTORS_1ST);
51 if (sortConstructorsFirst)
90 if (md->isBriefSectionVisible())
100 if (!md->isReimplementedBy(inheritedFrom)) count++;
111 count+=mg->countInheritableMembers(inheritedFrom);
130 if ((inheritedFrom==
nullptr || !md->isReimplementedBy(inheritedFrom)) &&
131 md->isBriefSectionVisible())
133 switch(md->memberType())
161 !md->argsString().isEmpty() ||
162 !md->initializer().isEmpty() ||
163 md->hasDocumentation()
169 err(
"Unknown member type found for member '{}'!\n",md->name());
175 mg->countDecMembers();
196 if (md->isDetailedSectionVisible(
m_container) && !md->isAlias())
208 mg->countDocMembers();
220 if (md->isBriefSectionVisible())
227 for (
const auto &vmd : md->enumFieldList())
233 if ((vtype.
find(name))!=-1)
244 mg->setAnonymousEnumType();
259 if ((vtype.
find(name))!=-1)
265 return numEnumValues;
272 if (md->isBriefSectionVisible())
274 switch (md->memberType())
324 err(
"MemberList::numDecMembers()==-1, so the members of this list have not been counted. Please report as a bug.\n");
342 if ((inheritedFrom==
nullptr || !md->isReimplementedBy(inheritedFrom)) &&
343 md->isBriefSectionVisible())
346 switch(md->memberType())
364 md->writeDeclaration(ol,cd,nd,fd,gd,mod,inGroup,indentLevel,inheritedFrom,inheritId);
381 bool detailsLinkable = md->hasDetailedDescription();
382 if (!detailsLinkable)
385 ol.
addLabel(md->getOutputFileBase(),md->anchor());
387 if (md->isSliceLocal())
394 if (md->isEnumStruct())
404 md->writeEnumDeclaration(ol,cd,nd,fd,gd,mod);
405 if (!detailsLinkable)
410 if (!md->briefDescription().isEmpty() &&
Config_getBool(BRIEF_MEMBER_DESC))
414 md->briefFile(),md->briefLine(),
424 if (md->hasDetailedDescription())
439 md->warnIfUndocumented();
443 if (inheritedFrom==
nullptr)
450 md->writeDeclaration(ol,cd,nd,fd,gd,mod,inGroup,indentLevel,inheritedFrom,inheritId);
459 md->writeDeclaration(ol,cd,nd,fd,gd,mod,
true,indentLevel,inheritedFrom,inheritId);
499 (void)showEnumValues;
506 if (ctx==
nullptr && nd) ctx = nd;
507 if (ctx==
nullptr && gd) ctx = gd;
508 if (ctx==
nullptr && mod) ctx = mod;
509 if (ctx==
nullptr && fd) ctx = fd;
516 if (inheritedFrom && num>0)
518 if (cd && !optimizeVhdl)
522 if (showSectionTitle && !title.
isEmpty())
530 else if (num>numEnumValues)
560 if (num>numEnumValues)
581 bool hasHeader=!mg->header().isEmpty();
591 if (!mg->documentation().isEmpty())
595 ol.
generateDoc(mg->docFile(),mg->docLine(),mg->memberContainer(),
nullptr,mg->documentation()+
"\n",
FALSE,
FALSE,
602 mg->writePlainDeclarations(ol,inGroup,cd,nd,fd,gd,mod,0,inheritedFrom,inheritId);
609 if (inheritedFrom && cd)
620 const QCString &title,
bool showEnumValues,
bool showInline)
const
624 err(
"MemberList::numDocMembers()==-1, so the members of this list have not been counted. Please report as a bug.\n");
648 std::unordered_map<std::string,OverloadInfo> overloadInfo;
653 !(md->isEnumValue() && !showInline))
655 auto it = overloadInfo.emplace(md->name().str(),OverloadInfo()).first;
663 !(md->isEnumValue() && !showInline))
665 auto it = overloadInfo.find(md->name().str());
666 uint32_t overloadCount = it->second.total;
667 uint32_t &count = it->second.count;
679 mg->writeDocumentation(ol,scopeName,
container,showEnumValues,showInline);
719 std::unordered_map<std::string,OverloadInfo> overloadInfo;
728 auto it = overloadInfo.emplace(md->
name().
str(),OverloadInfo()).first;
739 auto it = overloadInfo.find(md->
name().
str());
740 uint32_t overloadCount = it->second.total;
741 uint32_t &count = it->second.count;
745 if (!generateTreeView)
752 if (generateTreeView)
761 ol.
writeString(
"<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"
763 " <td valign=\"top\">\n");
768 ol.
writeString(
" <td valign=\"top\" class=\"mempage\">\n");
782 mg->writeDocumentationPage(ol,scopeName,
container);
803 for (
const auto &vmd : enumFields)
817 mg->addListReferences(def);
833 mg->findSectionsInDocumentation(d);
851 md->
writeTagFile(tagFile,useQualifiedName,showNamespaceMembers);
859 vmd->
writeTagFile(tagFile,useQualifiedName,showNamespaceMembers);
872 mg->writeTagFile(tagFile,useQualifiedName);
A abstract class representing of a compound symbol.
virtual bool isJavaEnum() const =0
virtual void addGroupedInheritedMembers(OutputList &ol, MemberListType lt, const ClassDef *inheritedFrom, const QCString &inheritId) const =0
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 QCString getDefFileName() const =0
virtual int getDefLine() const =0
virtual DefType definitionType() const =0
virtual QCString anchor() const =0
virtual QCString briefDescription(bool abbreviate=FALSE) const =0
virtual QCString getReference() const =0
virtual QCString qualifiedName() const =0
virtual QCString displayName(bool includeScope=TRUE) const =0
virtual bool isAlias() const =0
virtual QCString getOutputFileBase() const =0
virtual bool isReference() const =0
virtual const QCString & name() const =0
A model of a file symbol.
A model of a group of symbols.
A model of a class/file/namespace member symbol.
virtual bool isDestructor() const =0
virtual bool hasDetailedDescription() const =0
virtual bool isConstructor() const =0
virtual GroupDef * getGroupDef()=0
virtual const MemberVector & enumFieldList() const =0
virtual MemberType memberType() const =0
virtual bool isStrong() const =0
virtual QCString argsString() const =0
virtual void writeMemberDocSimple(OutputList &ol, const Definition *container) const =0
virtual void writeDocumentation(const MemberList *ml, int memCount, int memTotal, OutputList &ol, const QCString &scopeName, const Definition *container, bool inGroup, bool showEnumValues=FALSE, bool showInline=FALSE) const =0
virtual void addListReference(Definition *d)=0
virtual void findSectionsInDocumentation()=0
virtual void setAnonymousEnumType(const MemberDef *md)=0
virtual void writeTagFile(TextStream &, bool useQualifiedName, bool showNamespaceMembers) const =0
virtual void setAnchor()=0
A class representing a group of members.
int numDecEnumValues() const
int numDocMembers() const
int numDocEnumValues() const
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.
int countEnumValues(const MemberDef *md) const
void writeTagFile(TextStream &, bool useQualifiedName=false, bool showNamespaceMembers=true)
MemberListContainer container() const
void addListReferences(Definition *def)
MemberList(MemberListType lt, MemberListContainer container)
int numDecMembers() const
MemberGroupRefList m_memberGroupRefList
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
MemberListContainer m_container
void setNeedsSorting(bool b)
void writeSimpleDocumentation(OutputList &ol, const Definition *container) const
void countDecMembers() const
MemberListType m_listType
void writeDocumentation(OutputList &ol, const QCString &scopeName, const Definition *container, const QCString &title, bool showEnumValues=FALSE, bool showInline=FALSE) const
void findSectionsInDocumentation(const Definition *d)
void addMemberGroup(MemberGroup *mg)
int numDecMembers(const ClassDef *inheritedFrom) const
void writeDocumentationPage(OutputList &ol, const QCString &scopeName, const DefinitionMutable *container, int hierarchyLevel=0) const
Wrapper class for the MemberListType type.
constexpr const char * toLabel() const
A vector of MemberDef object.
bool empty() const noexcept
An abstract interface of a namespace symbol.
Class representing a list of output generators that are written to in parallel.
void startMemberGroupHeader(bool b)
void writeString(const QCString &text)
void startGroupHeader(int extraLevels=0)
void startMemberDeclaration()
void disable(OutputType o)
void endMemberDescription()
void endMemberGroupDocs()
void writeDoc(const IDocNodeAST *ast, const Definition *ctx, const MemberDef *md)
void startMemberDescription(const QCString &anchor, const QCString &inheritId=QCString(), bool typ=false)
void endDoxyAnchor(const QCString &fn, const QCString &anchor)
void docify(const QCString &s)
void endMemberItem(OutputGenerator::MemberItemType type)
void generateDoc(const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &docStr, bool indexWords, bool isExample, const QCString &exampleName, bool singleLine, bool linkFromIndex, bool markdownSupport)
void addLabel(const QCString &fName, const QCString &anchor)
void pushGeneratorState()
void insertMemberAlign(bool templ=FALSE)
void disableAllBut(OutputType o)
void endGroupHeader(int extraLevels=0)
void startDoxyAnchor(const QCString &fName, const QCString &manName, const QCString &anchor, const QCString &name, const QCString &args)
void endMemberGroupHeader()
void endMemberGroup(bool last)
void startMemberGroupDocs()
void startMemberDocSimple(bool b)
void endMemberDeclaration(const QCString &anchor, const QCString &inheritId)
void startMemberItem(const QCString &anchor, OutputGenerator::MemberItemType type, const QCString &id=QCString())
void startMemberDocList()
void endMemberDocSimple(bool b)
void startMemberSubtitle()
void parseText(const QCString &textStr)
void writeInheritedSectionTitle(const QCString &id, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &title, const QCString &name)
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
size_t length() const
Returns the length of the string, not counting the 0-terminator.
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
const std::string & str() const
QCString right(size_t len) const
int findRev(char c, int index=-1, bool cs=TRUE) const
Text streaming class that buffers data.
static void writeTagFile(MemberDefMutable *mdef, TextStream &tagFile)
static void writeVhdlDeclarations(const MemberList *, OutputList &, const GroupDef *, const ClassDef *, const FileDef *, const NamespaceDef *, const ModuleDef *)
ClassDef * toClassDef(Definition *d)
#define Config_getBool(name)
Definition * toDefinition(DefinitionMutable *dm)
IDocParserPtr createDocParser()
factory function to create a parser
IDocNodeASTPtr validatingParseDoc(IDocParser &parserIntf, const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &input, bool indexWords, bool isExample, const QCString &exampleName, bool singleLine, bool linkFromIndex, bool markdownSupport)
void endFile(OutputList &ol, bool skipNavIndex, bool skipEndContents, const QCString &navPath)
void startFile(OutputList &ol, const QCString &name, const QCString &manName, const QCString &title, HighlightedItem hli, bool additionalIndices, const QCString &altSidebarName, int hierarchyLevel)
void endFileWithNavPath(OutputList &ol, const Definition *d)
Translator * theTranslator
MemberDefMutable * toMemberDefMutable(Definition *d)
int genericCompareMembers(const MemberDef *c1, const MemberDef *c2)
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
int qstricmp_sort(const char *str1, const char *str2)
QCString stripPath(const QCString &s)
A bunch of utility functions.