![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
A class for creating vectors of collections for documentation. More...
#include <sections.h>
Public Member Functions | |
Sections (Aggregate *aggregate) | |
This constructor builds the vectors of sections based on the type of the aggregate node. | |
Sections (const NodeMultiMap &nsmap) | |
This constructor builds a vector of sections from the since node map, nsmap. | |
~Sections () | |
The behavior of the destructor depends on the type of the Aggregate node that was passed to the constructor. | |
void | clear (SectionVector &v) |
Reset each Section in vector v to its initialized state. | |
void | reduce (SectionVector &v) |
Linearize the maps in each Section in v. | |
void | buildStdRefPageSections () |
Build the section vectors for a standard reference page, when the aggregate node is not a C++ class or a QML type. | |
void | buildStdCppClassRefPageSections () |
Build the section vectors for a standard reference page, when the aggregate node is a C++. | |
void | buildStdQmlTypeRefPageSections () |
Build the section vectors for a standard reference page, when the aggregate node is a QML type. | |
bool | hasObsoleteMembers (SectionPtrVector *summary_spv, SectionPtrVector *details_spv) const |
Returns true if any sections in this object contain obsolete members. | |
SectionVector & | sinceSections () |
SectionVector & | stdSummarySections () |
SectionVector & | stdDetailsSections () |
SectionVector & | stdCppClassSummarySections () |
SectionVector & | stdCppClassDetailsSections () |
SectionVector & | stdQmlTypeSummarySections () |
SectionVector & | stdQmlTypeDetailsSections () |
const SectionVector & | stdSummarySections () const |
const SectionVector & | stdDetailsSections () const |
const SectionVector & | stdCppClassSummarySections () const |
const SectionVector & | stdCppClassDetailsSections () const |
const SectionVector & | stdQmlTypeSummarySections () const |
const SectionVector & | stdQmlTypeDetailsSections () const |
Aggregate * | aggregate () const |
Static Public Member Functions | |
static Section & | allMembersSection () |
A class for creating vectors of collections for documentation.
Each element in a vector is an instance of Section, which contains all the elements that will be documented in one section of a reference documentation page.
Definition at line 81 of file sections.h.
Definition at line 84 of file sections.h.
|
explicit |
This constructor builds the vectors of sections based on the type of the aggregate node.
Definition at line 366 of file sections.cpp.
References buildStdCppClassRefPageSections(), buildStdQmlTypeRefPageSections(), buildStdRefPageSections(), Class, HeaderFile, Namespace, Node< _Tp >::nodeType(), Proxy, QmlType, QmlValueType, Struct, and Union.
Referenced by DocBookGenerator::generateCppReferencePage(), HtmlGenerator::generateCppReferencePage(), DocBookGenerator::generateProxyPage(), and HtmlGenerator::generateProxyPage().
|
explicit |
This constructor builds a vector of sections from the since node map, nsmap.
Definition at line 398 of file sections.cpp.
References Enum, Function, Node< _Tp >::isClassNode(), Node< _Tp >::isNamespace(), Node< _Tp >::nodeType(), and sinceSections().
Referenced by HtmlGenerator::generateAtom().
Sections::~Sections | ( | ) |
The behavior of the destructor depends on the type of the Aggregate node that was passed to the constructor.
If the constructor was passed a multimap, the destruction is a bit different because there was no Aggregate node.
Definition at line 489 of file sections.cpp.
References allMembersSection(), Class, Section::clear(), clear(), Node< _Tp >::nodeType(), QmlType, QmlValueType, sinceSections(), stdCppClassDetailsSections(), stdCppClassSummarySections(), stdDetailsSections(), stdQmlTypeDetailsSections(), stdQmlTypeSummarySections(), stdSummarySections(), Struct, and Union.
|
inlinenodiscard |
Definition at line 184 of file sections.h.
|
inlinestatic |
Definition at line 156 of file sections.h.
Referenced by ~Sections(), buildStdCppClassRefPageSections(), buildStdQmlTypeRefPageSections(), and buildStdRefPageSections().
void Sections::buildStdCppClassRefPageSections | ( | ) |
Build the section vectors for a standard reference page, when the aggregate node is a C++.
Definition at line 881 of file sections.cpp.
References allMembersSection(), Node< _Tp >::createContext(), Section::insert(), InclusionFilter::isIncluded(), Node< _Tp >::isProperty(), Node< _Tp >::isRelatedNonmember(), Node< _Tp >::isSharedCommentNode(), Section::reduce(), reduce(), Aggregate::relatedByProxy(), stdCppClassDetailsSections(), and stdCppClassSummarySections().
Referenced by Sections().
void Sections::buildStdQmlTypeRefPageSections | ( | ) |
Build the section vectors for a standard reference page, when the aggregate node is a QML type.
Definition at line 929 of file sections.cpp.
References allMembersSection(), Section::classNodesList(), Node< _Tp >::isAbstract(), Aggregate::qmlBaseNode(), Section::reduce(), reduce(), stdQmlTypeDetailsSections(), and stdQmlTypeSummarySections().
Referenced by Sections().
void Sections::buildStdRefPageSections | ( | ) |
Build the section vectors for a standard reference page, when the aggregate node is not a C++ class or a QML type.
If this is for a namespace page then if the namespace node itself does not have documentation, only its children that have documentation should be documented. In other words, there are cases where a namespace is declared but does not have documentation, but some of the elements declared in that namespace do have documentation.
This special processing of namespaces that do not have a documentation comment is meant to allow documenting its members that do have documentation while avoiding posting error messages for its members that are not documented.
Definition at line 622 of file sections.cpp.
References allMembersSection(), Node< _Tp >::hasDoc(), NamespaceNode::includedChildren(), Node< _Tp >::isNamespace(), Node< _Tp >::isSharingComment(), Section::reduce(), reduce(), Aggregate::relatedByProxy(), stdDetailsSections(), and stdSummarySections().
Referenced by Sections().
void Sections::clear | ( | SectionVector & | v | ) |
Reset each Section in vector v to its initialized state.
Definition at line 530 of file sections.cpp.
Referenced by ~Sections().
bool Sections::hasObsoleteMembers | ( | SectionPtrVector * | summary_spv, |
SectionPtrVector * | details_spv ) const |
Returns true if any sections in this object contain obsolete members.
If it returns false, then summary_spv and details_spv have not been modified. Otherwise, both vectors will contain pointers to the sections that contain obsolete members.
Definition at line 993 of file sections.cpp.
References Node< _Tp >::isClassNode(), Node< _Tp >::isQmlType(), stdCppClassDetailsSections(), stdCppClassSummarySections(), stdDetailsSections(), stdQmlTypeDetailsSections(), stdQmlTypeSummarySections(), and stdSummarySections().
void Sections::reduce | ( | SectionVector & | v | ) |
Linearize the maps in each Section in v.
Definition at line 539 of file sections.cpp.
Referenced by buildStdCppClassRefPageSections(), buildStdQmlTypeRefPageSections(), and buildStdRefPageSections().
|
inline |
Definition at line 157 of file sections.h.
Referenced by Sections(), ~Sections(), and HtmlGenerator::generateAtom().
|
inline |
Definition at line 161 of file sections.h.
Referenced by ~Sections(), buildStdCppClassRefPageSections(), DocBookGenerator::generateCppReferencePage(), and HtmlGenerator::generateCppReferencePage().
|
inlinenodiscard |
Definition at line 171 of file sections.h.
Referenced by hasObsoleteMembers().
|
inline |
Definition at line 160 of file sections.h.
Referenced by ~Sections(), buildStdCppClassRefPageSections(), and HtmlGenerator::generateCppReferencePage().
|
inlinenodiscard |
Definition at line 167 of file sections.h.
Referenced by hasObsoleteMembers().
|
inline |
Definition at line 159 of file sections.h.
Referenced by ~Sections(), buildStdRefPageSections(), DocBookGenerator::generateCppReferencePage(), HtmlGenerator::generateCppReferencePage(), DocBookGenerator::generateProxyPage(), and HtmlGenerator::generateProxyPage().
|
inlinenodiscard |
Definition at line 166 of file sections.h.
Referenced by hasObsoleteMembers().
|
inline |
Definition at line 163 of file sections.h.
Referenced by ~Sections(), buildStdQmlTypeRefPageSections(), and HtmlGenerator::generateQmlTypePage().
|
inlinenodiscard |
Definition at line 179 of file sections.h.
Referenced by hasObsoleteMembers().
|
inline |
Definition at line 162 of file sections.h.
Referenced by ~Sections(), buildStdQmlTypeRefPageSections(), and HtmlGenerator::generateQmlTypePage().
|
inlinenodiscard |
Definition at line 175 of file sections.h.
Referenced by hasObsoleteMembers().
|
inline |
Definition at line 158 of file sections.h.
Referenced by ~Sections(), buildStdRefPageSections(), HtmlGenerator::generateCppReferencePage(), and HtmlGenerator::generateProxyPage().
|
inlinenodiscard |
Definition at line 165 of file sections.h.
Referenced by hasObsoleteMembers().