Doxygen
|
A list of MemberDef objects as shown in documentation sections. More...
#include <src/memberlist.h>
Public Member Functions | |
MemberList (MemberListType lt, MemberListContainer container) | |
~MemberList () | |
MemberListType | listType () const |
MemberListContainer | container () const |
int | numDecMembers () const |
int | numDecEnumValues () const |
int | numDocMembers () const |
int | numDocEnumValues () const |
bool | needsSorting () const |
void | countDecMembers () |
void | countDocMembers () |
int | countInheritableMembers (const ClassDef *inheritedFrom) const |
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 | 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 | writeDocumentation (OutputList &ol, const QCString &scopeName, const Definition *container, const QCString &title, bool showEnumValues=FALSE, bool showInline=FALSE) const |
void | writeSimpleDocumentation (OutputList &ol, const Definition *container) const |
void | writeDocumentationPage (OutputList &ol, const QCString &scopeName, const DefinitionMutable *container, int hierarchyLevel=0) const |
void | writeTagFile (TextStream &, bool useQualifiedName=false, bool showNamespaceMembers=true) |
bool | declVisible () const |
void | addMemberGroup (MemberGroup *mg) |
void | addListReferences (Definition *def) |
void | findSectionsInDocumentation (const Definition *d) |
void | setNeedsSorting (bool b) |
const MemberGroupRefList & | getMemberGroupList () const |
void | setAnonymousEnumType () |
void | setAnchors () |
Public Member Functions inherited from MemberVector | |
void | push_back (const T &value) |
void | push_back (T &&value) |
iterator | erase (iterator pos) |
iterator | erase (const_iterator pos) |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
size_type | size () const noexcept |
bool | empty () const noexcept |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
reference | operator[] (size_type pos) |
const_reference | operator[] (size_type pos) const |
void | sort () |
void | inSort (MemberDef *md) |
void | remove (const MemberDef *md) |
bool | contains (const MemberDef *md) const |
MemberDef * | find (const QCString &name) |
Private Member Functions | |
int | countEnumValues (const MemberDef *md) const |
Private Attributes | |
int | m_numDecMembers |
int | m_numDecEnumValues |
int | m_numDocMembers |
int | m_numDocEnumValues |
MemberGroupRefList | m_memberGroupRefList |
MemberListContainer | m_container |
MemberListType | m_listType |
bool | m_needsSorting |
Additional Inherited Members | |
Public Types inherited from MemberVector | |
using | T = MemberDef* |
using | Vec = std::vector<T> |
using | value_type = Vec::value_type |
using | allocator_type = Vec::allocator_type |
using | size_type = Vec::size_type |
using | difference_type = Vec::difference_type |
using | reference = Vec::reference |
using | const_reference = Vec::const_reference |
using | iterator = Vec::iterator |
using | const_iterator = Vec::const_iterator |
Static Public Member Functions inherited from MemberVector | |
static bool | lessThan (const MemberDef *md1, const MemberDef *md2) |
Protected Attributes inherited from MemberVector | |
Vec | m_members |
A list of MemberDef objects as shown in documentation sections.
Definition at line 107 of file memberlist.h.
MemberList::MemberList | ( | MemberListType | lt, |
MemberListContainer | container ) |
Definition at line 34 of file memberlist.cpp.
References FALSE, m_container, m_listType, m_needsSorting, m_numDecEnumValues, m_numDecMembers, m_numDocEnumValues, and m_numDocMembers.
MemberList::~MemberList | ( | ) |
Definition at line 44 of file memberlist.cpp.
void MemberList::addListReferences | ( | Definition * | def | ) |
Definition at line 808 of file memberlist.cpp.
References MemberDefMutable::addListReference(), Definition::definitionType(), MemberVector::empty(), Enumeration, MemberDef::enumFieldList(), MemberDef::getGroupDef(), Definition::isAlias(), m_memberGroupRefList, MemberVector::m_members, MemberDef::memberType(), toMemberDefMutable(), and Definition::TypeGroup.
void MemberList::addMemberGroup | ( | MemberGroup * | mg | ) |
Definition at line 803 of file memberlist.cpp.
References m_memberGroupRefList.
|
inline |
Definition at line 114 of file memberlist.h.
References m_container.
Referenced by addMembersToMemberGroup(), writeDocumentation(), writeDocumentationPage(), and writeSimpleDocumentation().
void MemberList::countDecMembers | ( | ) |
Count the number of members in this list that are visible in the declaration part of a compound's documentation page.
Definition at line 122 of file memberlist.cpp.
References Config_getBool, DCOP, Define, Dictionary, Enumeration, EnumValue, err, Event, Friend, Function, Interface, m_memberGroupRefList, MemberVector::m_members, m_numDecEnumValues, m_numDecMembers, Property, qPrint(), Sequence, Service, Signal, Slot, Typedef, and Variable.
Referenced by MemberGroup::addGroupedInheritedMembers().
void MemberList::countDocMembers | ( | ) |
Definition at line 207 of file memberlist.cpp.
References EnumValue, m_container, m_memberGroupRefList, MemberVector::m_members, m_numDocEnumValues, and m_numDocMembers.
|
private |
Definition at line 265 of file memberlist.cpp.
References QCString::find(), QCString::findRev(), QCString::length(), MemberVector::m_members, Definition::name(), and QCString::right().
Referenced by declVisible(), and writePlainDeclarations().
int MemberList::countInheritableMembers | ( | const ClassDef * | inheritedFrom | ) | const |
Definition at line 85 of file memberlist.cpp.
References EnumValue, Friend, Function, m_memberGroupRefList, and MemberVector::m_members.
Referenced by ClassDefImpl::countMembersIncludingGrouped().
bool MemberList::declVisible | ( | ) | const |
Definition at line 285 of file memberlist.cpp.
References countEnumValues(), DCOP, Define, Dictionary, Enumeration, EnumValue, Event, FALSE, Friend, Function, Group, Interface, m_container, MemberVector::m_members, Property, Sequence, Service, Signal, Slot, TRUE, Typedef, and Variable.
Referenced by ClassDefImpl::writeSummaryLinks(), FileDefImpl::writeSummaryLinks(), GroupDefImpl::writeSummaryLinks(), ModuleDefImpl::writeSummaryLinks(), and NamespaceDefImpl::writeSummaryLinks().
void MemberList::findSectionsInDocumentation | ( | const Definition * | d | ) |
Definition at line 838 of file memberlist.cpp.
References MemberDefMutable::findSectionsInDocumentation(), m_memberGroupRefList, MemberVector::m_members, and toMemberDefMutable().
|
inline |
Definition at line 144 of file memberlist.h.
References m_memberGroupRefList.
Referenced by membersHaveSpecificType(), and VhdlDocGen::writeVHDLDeclarations().
|
inline |
Definition at line 113 of file memberlist.h.
References listType(), and m_listType.
Referenced by MemberGroup::addGroupedInheritedMembers(), MemberGroup::countGroupedInheritedMembers(), generateSqlite3ForClass(), generateSqlite3ForFile(), generateSqlite3ForGroup(), generateSqlite3ForModule(), generateSqlite3ForNamespace(), generateXMLForClass(), generateXMLForFile(), generateXMLForGroup(), generateXMLForModule(), generateXMLForNamespace(), listType(), ClassDefImpl::writeSummaryLinks(), FileDefImpl::writeSummaryLinks(), GroupDefImpl::writeSummaryLinks(), ModuleDefImpl::writeSummaryLinks(), and NamespaceDefImpl::writeSummaryLinks().
|
inline |
Definition at line 120 of file memberlist.h.
References m_needsSorting.
Referenced by FileDefImpl::sortMemberLists().
|
inline |
Definition at line 117 of file memberlist.h.
References m_numDecEnumValues.
Referenced by writeDeclarations(), and writePlainDeclarations().
|
inline |
Definition at line 116 of file memberlist.h.
References ASSERT, and m_numDecMembers.
Referenced by ClassDefImpl::countMemberDeclarations(), FileDefImpl::numDecMembers(), writeDeclarations(), and writePlainDeclarations().
|
inline |
Definition at line 119 of file memberlist.h.
References m_numDocEnumValues.
Referenced by writeDocumentation(), and writeSimpleDocumentation().
|
inline |
Definition at line 118 of file memberlist.h.
References ASSERT, and m_numDocMembers.
Referenced by FileDefImpl::numDocMembers(), NamespaceDefImpl::numDocMembers(), writeDocumentation(), and writeSimpleDocumentation().
void MemberList::setAnchors | ( | ) |
Definition at line 894 of file memberlist.cpp.
References Definition::isReference(), MemberVector::m_members, MemberDefMutable::setAnchor(), and toMemberDefMutable().
Referenced by FileDefImpl::computeAnchors(), and NamespaceDefImpl::computeAnchors().
void MemberList::setAnonymousEnumType | ( | ) |
Definition at line 232 of file memberlist.cpp.
References Enumeration, QCString::find(), QCString::findRev(), QCString::length(), m_memberGroupRefList, MemberVector::m_members, QCString::right(), MemberDefMutable::setAnonymousEnumType(), and toMemberDefMutable().
Referenced by ClassDefImpl::setAnonymousEnumType().
void MemberList::setNeedsSorting | ( | bool | b | ) |
Definition at line 854 of file memberlist.cpp.
References m_needsSorting.
Referenced by FileDefImpl::sortMemberLists().
void MemberList::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.
ol | Output list to write to |
cd | non-null if this list is part of class documentation. |
nd | non-null if this list is part of namespace documentation. |
fd | non-null if this list is part of file documentation. |
gd | non-null if this list is part of group documentation. |
mod | non-null if this list is part of module documentation. |
title | Title to use for the member list. |
subtitle | Sub title to use for the member list. |
showEnumValues | Obsolete, always set to FALSE. |
showInline | if set to TRUE if title is rendered differently |
inheritedFrom | if not 0, the list is shown inside the given class as inherited members, parameter cd points to the class containing the members. |
lt | Type of list that is inherited from. |
showSectionTitle | do we show the "additional members" header or not? When combining public and protected inherited members under a single header only for the first list it should be shown |
Definition at line 511 of file memberlist.cpp.
References ClassDef::addGroupedInheritedMembers(), Definition::anchor(), Config_getBool, Definition::displayName(), OutputList::endInlineHeader(), OutputList::endMemberGroup(), OutputList::endMemberGroupDocs(), OutputList::endMemberGroupHeader(), OutputList::endMemberHeader(), OutputList::endMemberSubtitle(), FALSE, OutputList::generateDoc(), Definition::getOutputFileBase(), Definition::getReference(), Group, QCString::isEmpty(), m_container, m_listType, m_memberGroupRefList, numDecEnumValues(), numDecMembers(), OutputList::parseText(), OutputList::startInlineHeader(), OutputList::startMemberGroup(), OutputList::startMemberGroupDocs(), OutputList::startMemberGroupHeader(), OutputList::startMemberHeader(), OutputList::startMemberSubtitle(), stripPath(), QCString::stripWhiteSpace(), substitute(), MemberListType::toLabel(), OutputList::writeInheritedSectionTitle(), writePlainDeclarations(), and VhdlDocGen::writeVhdlDeclarations().
Referenced by ClassDefImpl::writeMemberDeclarations(), FileDefImpl::writeMemberDeclarations(), GroupDefImpl::writeMemberDeclarations(), ModuleDefImpl::writeMemberDeclarations(), and NamespaceDefImpl::writeMemberDeclarations().
void MemberList::writeDocumentation | ( | OutputList & | ol, |
const QCString & | scopeName, | ||
const Definition * | container, | ||
const QCString & | title, | ||
bool | showEnumValues = FALSE, | ||
bool | showInline = FALSE ) const |
Definition at line 635 of file memberlist.cpp.
References container(), OutputList::disable(), OutputList::endGroupHeader(), OutputList::endMemberDocList(), err, Group, Html, QCString::isEmpty(), m_container, m_memberGroupRefList, MemberVector::m_members, numDocEnumValues(), numDocMembers(), OutputList::parseText(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), OutputList::startGroupHeader(), OutputList::startMemberDocList(), toMemberDefMutable(), MemberDefMutable::writeDocumentation(), and OutputList::writeRuler().
Referenced by ClassDefImpl::writeMemberDocumentation(), FileDefImpl::writeMemberDocumentation(), GroupDefImpl::writeMemberDocumentation(), ModuleDefImpl::writeMemberDocumentation(), and NamespaceDefImpl::writeMemberDocumentation().
void MemberList::writeDocumentationPage | ( | OutputList & | ol, |
const QCString & | scopeName, | ||
const DefinitionMutable * | container, | ||
int | hierarchyLevel = 0 ) const |
Definition at line 726 of file memberlist.cpp.
References Config_getBool, container(), OutputList::endContents(), endFile(), endFileWithNavPath(), OutputList::endQuickIndices(), Definition::getOutputFileBase(), Group, MemberDef::hasDetailedDescription(), m_container, m_memberGroupRefList, MemberVector::m_members, Definition::name(), None, Definition::qualifiedName(), OutputList::startContents(), startFile(), QCString::str(), toDefinition(), toMemberDefMutable(), MemberDefMutable::writeDocumentation(), and OutputList::writeString().
void MemberList::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 |
Definition at line 333 of file memberlist.cpp.
References OutputList::addLabel(), Definition::briefDescription(), Config_getBool, countEnumValues(), Cpp, createDocParser(), DCOP, Define, Dictionary, OutputList::disableAllBut(), OutputList::docify(), OutputList::enableAll(), OutputList::endDoxyAnchor(), OutputList::endMemberDeclaration(), OutputList::endMemberDescription(), OutputList::endMemberItem(), OutputList::endMemberList(), OutputList::endTextLink(), Enumeration, EnumValue, err, Event, FALSE, Friend, Function, Html, OutputList::insertMemberAlign(), Interface, MemberVector::m_members, OutputGenerator::Normal, numDecEnumValues(), numDecMembers(), OutputList::parseText(), OutputList::popGeneratorState(), Property, OutputList::pushGeneratorState(), Sequence, Service, Signal, Slot, OutputList::startDoxyAnchor(), OutputList::startMemberDeclaration(), OutputList::startMemberDescription(), OutputList::startMemberItem(), OutputList::startMemberList(), OutputList::startTextLink(), theTranslator, TRUE, Typedef, validatingParseDoc(), Variable, OutputList::writeDoc(), and OutputList::writeString().
Referenced by MemberGroup::addGroupedInheritedMembers(), writeDeclarations(), and ClassDefImpl::writePlainMemberDeclaration().
void MemberList::writeSimpleDocumentation | ( | OutputList & | ol, |
const Definition * | container ) const |
Definition at line 702 of file memberlist.cpp.
References container(), OutputList::endMemberDocSimple(), ClassDef::isJavaEnum(), MemberVector::m_members, numDocEnumValues(), numDocMembers(), OutputList::startMemberDocSimple(), toClassDef(), toMemberDefMutable(), Definition::TypeClass, and MemberDefMutable::writeMemberDocSimple().
Referenced by ClassDefImpl::writeSimpleMemberDocumentation().
void MemberList::writeTagFile | ( | TextStream & | tagFile, |
bool | useQualifiedName = false, | ||
bool | showNamespaceMembers = true ) |
Definition at line 859 of file memberlist.cpp.
References Enumeration, MemberDef::enumFieldList(), Definition::getLanguage(), MemberDef::isStrong(), m_memberGroupRefList, MemberVector::m_members, MemberDef::memberType(), toMemberDefMutable(), VHDL, MemberDefMutable::writeTagFile(), and VhdlDocGen::writeTagFile().
Referenced by ClassDefImpl::writeTagFile(), FileDefImpl::writeTagFile(), GroupDefImpl::writeTagFile(), ModuleDefImpl::writeTagFile(), and NamespaceDefImpl::writeTagFile().
|
private |
Definition at line 155 of file memberlist.h.
Referenced by container(), countDocMembers(), declVisible(), MemberList(), writeDeclarations(), writeDocumentation(), and writeDocumentationPage().
|
private |
Definition at line 156 of file memberlist.h.
Referenced by listType(), MemberList(), and writeDeclarations().
|
private |
Definition at line 154 of file memberlist.h.
Referenced by addListReferences(), addMemberGroup(), countDecMembers(), countDocMembers(), countInheritableMembers(), findSectionsInDocumentation(), getMemberGroupList(), setAnonymousEnumType(), writeDeclarations(), writeDocumentation(), writeDocumentationPage(), and writeTagFile().
|
private |
Definition at line 157 of file memberlist.h.
Referenced by MemberList(), needsSorting(), and setNeedsSorting().
|
private |
Definition at line 151 of file memberlist.h.
Referenced by countDecMembers(), MemberList(), and numDecEnumValues().
|
private |
Definition at line 150 of file memberlist.h.
Referenced by countDecMembers(), MemberList(), and numDecMembers().
|
private |
Definition at line 153 of file memberlist.h.
Referenced by countDocMembers(), MemberList(), and numDocEnumValues().
|
private |
Definition at line 152 of file memberlist.h.
Referenced by countDocMembers(), MemberList(), and numDocMembers().