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);
135 if (md->isBriefSectionVisible())
137 switch(md->memberType())
171 !md->argsString().isEmpty() ||
172 !md->initializer().isEmpty() ||
173 md->hasDocumentation()
180 err(
"Unknown member type found for member '%s'!\n",
qPrint(md->name()));
186 mg->countDecMembers();
213 if (md->isDetailedSectionVisible(
m_container) && !md->isAlias())
225 mg->countDocMembers();
237 if (md->isBriefSectionVisible())
244 for (
const auto &vmd : md->enumFieldList())
250 if ((vtype.
find(name))!=-1)
261 mg->setAnonymousEnumType();
276 if ((vtype.
find(name))!=-1)
282 return numEnumValues;
289 if (md->isBriefSectionVisible())
291 switch (md->memberType())
341 err(
"MemberList::numDecMembers()==-1, so the members of this list have not been counted. Please report as a bug.\n");
359 if ((inheritedFrom==
nullptr || !md->isReimplementedBy(inheritedFrom)) &&
360 md->isBriefSectionVisible())
363 switch(md->memberType())
381 md->writeDeclaration(ol,cd,nd,fd,gd,mod,inGroup,indentLevel,inheritedFrom,inheritId);
398 bool detailsLinkable = md->hasDetailedDescription();
399 if (!detailsLinkable)
402 ol.
addLabel(md->getOutputFileBase(),md->anchor());
404 if (md->isSliceLocal())
411 if (md->isEnumStruct())
421 md->writeEnumDeclaration(ol,cd,nd,fd,gd,mod);
422 if (!detailsLinkable)
427 if (!md->briefDescription().isEmpty() &&
Config_getBool(BRIEF_MEMBER_DESC))
431 md->briefFile(),md->briefLine(),
441 if (md->hasDetailedDescription())
456 md->warnIfUndocumented();
460 if (inheritedFrom==
nullptr)
467 md->writeDeclaration(ol,cd,nd,fd,gd,mod,inGroup,indentLevel,inheritedFrom,inheritId);
476 md->writeDeclaration(ol,cd,nd,fd,gd,mod,
true,indentLevel,inheritedFrom,inheritId);
516 (void)showEnumValues;
523 if (ctx==
nullptr && nd) ctx = nd;
524 if (ctx==
nullptr && gd) ctx = gd;
525 if (ctx==
nullptr && mod) ctx = mod;
526 if (ctx==
nullptr && fd) ctx = fd;
535 if (cd && !optimizeVhdl)
539 if (showSectionTitle && !title.
isEmpty())
547 else if (num>numEnumValues)
577 if (num>numEnumValues)
598 bool hasHeader=!mg->header().isEmpty();
608 if (!mg->documentation().isEmpty())
612 ol.
generateDoc(mg->docFile(),mg->docLine(),mg->memberContainer(),
nullptr,mg->documentation()+
"\n",
FALSE,
FALSE,
619 mg->writePlainDeclarations(ol,inGroup,cd,nd,fd,gd,mod,0,inheritedFrom,inheritId);
626 if (inheritedFrom && cd)
637 const QCString &title,
bool showEnumValues,
bool showInline)
const
641 err(
"MemberList::numDocMembers()==-1, so the members of this list have not been counted. Please report as a bug.\n");
665 std::unordered_map<std::string,OverloadInfo> overloadInfo;
670 !(md->isEnumValue() && !showInline))
672 auto it = overloadInfo.emplace(md->name().str(),OverloadInfo()).first;
680 !(md->isEnumValue() && !showInline))
682 auto it = overloadInfo.find(md->name().str());
683 uint32_t overloadCount = it->second.total;
684 uint32_t &count = it->second.count;
696 mg->writeDocumentation(ol,scopeName,
container,showEnumValues,showInline);
736 std::unordered_map<std::string,OverloadInfo> overloadInfo;
745 auto it = overloadInfo.emplace(md->
name().
str(),OverloadInfo()).first;
756 auto it = overloadInfo.find(md->
name().
str());
757 uint32_t overloadCount = it->second.total;
758 uint32_t &count = it->second.count;
762 if (!generateTreeView)
769 if (generateTreeView)
778 ol.
writeString(
"<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"
780 " <td valign=\"top\">\n");
785 ol.
writeString(
" <td valign=\"top\" class=\"mempage\">\n");
799 mg->writeDocumentationPage(ol,scopeName,
container);
820 for (
const auto &vmd : enumFields)
834 mg->addListReferences(def);
850 mg->findSectionsInDocumentation(d);
868 md->
writeTagFile(tagFile,useQualifiedName,showNamespaceMembers);
876 vmd->
writeTagFile(tagFile,useQualifiedName,showNamespaceMembers);
889 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
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)
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)
const char * qPrint(const char *s)
QCString stripPath(const QCString &s)
A bunch of utility functions.