Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
This class constructs and maintains a tree of instances of the subclasses of Node. More...
#include <tree.h>
Public Member Functions | |
Node * | findNodeByNameAndType (const QStringList &path, bool(Node::*isMatch)() const) const |
Find the node with the specified path name that is of the specified type and subtype. | |
const QString & | camelCaseModuleName () const |
const QString & | physicalModuleName () const |
const QString & | indexFileName () const |
const QString & | indexTitle () const |
void | setIndexTitle (const QString &t) |
NodeList & | proxies () |
void | appendProxy (ProxyNode *t) |
void | addToDontDocumentMap (QString &arg) |
Add the class and struct names in arg to the {don't document} map. | |
void | markDontDocumentNodes () |
The {don't document} map has been loaded with the names of classes and structs in the current module that are not documented and should not be documented. | |
Static Public Member Functions | |
static QString | refForAtom (const Atom *atom) |
Returns a canonical title for the atom, if the atom is a SectionLeft, SectionHeadingLeft, Keyword, or Target. | |
Friends | |
class | QDocForest |
class | QDocDatabase |
This class constructs and maintains a tree of instances of the subclasses of Node.
This class is now private. Only class QDocDatabase has access. Please don't change this. If you must access class Tree, do it though the pointer to the singleton QDocDatabase.
Tree is being converted to a forest. A static member provides a map of Tree *values with the module names as the keys. There is one Tree in the map for each index file read, and there is one tree that is not in the map for the module whose documentation is being generated.
|
inlinenodiscard |
Definition at line 71 of file tree.h.
Referenced by HtmlGenerator::generateCppReferencePage(), and CppCodeParser::processTopicCommand().
|
nodiscard |
void Tree::markDontDocumentNodes | ( | ) |
The {don't document} map has been loaded with the names of classes and structs in the current module that are not documented and should not be documented.
Now traverse the map, and for each class or struct name, find the class node that represents that class or struct and mark it with the \C DontDocument status.
This results in a map of the class and struct nodes in the module that are in the public API but are not meant to be used by anyone. They are only used internally, but for one reason or another, they must have public visibility.
Definition at line 1391 of file tree.cpp.
References Node< _Tp >::DontDocument, and Node< _Tp >::setStatus().
Referenced by QDocDatabase::resolveStuff().
|
inlinenodiscard |
|
inline |
Definition at line 76 of file tree.h.
Referenced by QDocDatabase::resolveProxies().
Returns a canonical title for the atom, if the atom is a SectionLeft, SectionHeadingLeft, Keyword, or Target.
If a target or a keyword is immediately followed by a section, the former adopts the title (ref) of the latter.
Definition at line 991 of file tree.cpp.
References Atom::next(), Text::sectionHeading(), Atom::SectionHeadingLeft, Atom::SectionLeft, Atom::Target, and Atom::type().
|
friend |
|
friend |