Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
headernode.cpp
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4
#
include
"headernode.h"
5
6
QT_BEGIN_NAMESPACE
7
8
/*!
9
\class Headernode
10
\brief This class represents a C++ header file.
11
*/
12
13
HeaderNode
::
HeaderNode
(Aggregate *parent,
const
QString &name) : Aggregate(NodeType::HeaderFile, parent, name)
14
{
15
// Set the include file with enclosing angle brackets removed
16
if
(name.startsWith(QChar(
'<'
)) && name.size() > 2)
17
Aggregate::setIncludeFile(name.mid(1).chopped(1));
18
else
19
Aggregate::setIncludeFile(name);
20
}
21
22
/*!
23
Returns \c true if QDoc must generate documentation for this
24
header file node; that is, it matches the inclusion policy
25
and is documented, OR has children that match that same criteria.
26
*/
27
bool
HeaderNode
::
docMustBeGenerated
()
const
28
{
29
if
(
isInAPI
())
30
return
true
;
31
32
return
std
::any_of(m_children.cbegin(), m_children.cend(),
33
[](
Node
*child) {
return
child
->
isInAPI
(
)
; });
34
}
35
36
QT_END_NAMESPACE
HeaderNode
Definition
headernode.h:15
HeaderNode::docMustBeGenerated
bool docMustBeGenerated() const override
Returns true if QDoc must generate documentation for this header file node; that is,...
Definition
headernode.cpp:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
Node
The Node class is the base class for all the nodes in QDoc's parse tree.
Definition
src_corelib_text_qstring.cpp:10
Node::isInAPI
virtual bool isInAPI() const
Returns true if this node is considered to be part of the API as per the InclusionPolicy retrieved fr...
Definition
node.cpp:917
qttools
src
qdoc
qdoc
src
qdoc
headernode.cpp
Generated on
for Qt by
1.16.1