QDomNodeList 類是列錶在 QDomNode 對象。 更多...
| 頭: |
#include <QDomNodeList>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Xml)
target_link_libraries(mytarget PRIVATE Qt6::Xml)
|
| qmake: |
QT += xml
|
注意: 此類的所有函數 可重入 .
(從 6.9 起)
|
const_iterator |
(從 6.9 起)
|
const_pointer |
(從 6.9 起)
|
const_reference |
(從 6.9 起)
|
const_reverse_iterator |
(從 6.9 起)
|
difference_type |
(從 6.9 起)
|
pointer |
(從 6.9 起)
|
reference |
(從 6.9 起)
|
value_type |
| QDomNodeList () | |
| QDomNodeList (const QDomNodeList & nodeList ) | |
| ~QDomNodeList () | |
| QDomNode | at (int index ) const |
(從 6.9 起)
QDomNodeList::const_iterator
|
begin () const |
(從 6.9 起)
QDomNodeList::const_iterator
|
cbegin () const |
(從 6.9 起)
QDomNodeList::const_iterator
|
cend () const |
(從 6.9 起)
QDomNodeList::const_iterator
|
constBegin () const |
(從 6.9 起)
QDomNodeList::const_iterator
|
constEnd () const |
| int | count () const |
(從 6.9 起)
QDomNodeList::const_reverse_iterator
|
crbegin () const |
(從 6.9 起)
QDomNodeList::const_reverse_iterator
|
crend () const |
(從 6.9 起)
QDomNodeList::const_iterator
|
end () const |
| bool | isEmpty () const |
| QDomNode | item (int index ) const |
| int | length () const |
(從 6.9 起)
QDomNodeList::const_reverse_iterator
|
rbegin () const |
(從 6.9 起)
QDomNodeList::const_reverse_iterator
|
rend () const |
| int | size () const |
| QDomNodeList & | operator= (const QDomNodeList & other ) |
| bool | operator!= (const QDomNodeList & lhs , const QDomNodeList & rhs ) |
| bool | operator== (const QDomNodeList & lhs , const QDomNodeList & rhs ) |
列錶的獲得可以通過 QDomDocument::elementsByTagName () 和 QDomNode::childNodes ()。DOM (文檔對象模型) 要求這些列錶是 "實時" 的:每當改變底層文檔時,會更新列錶內容。
可以從列錶獲取特定節點采用 item ()。列錶項數的返迴是通過 length ().
有關文檔對象模型的進一步信息,見 級彆 1 and 級彆 2 核心 。有關 DOM 實現的更一般介紹,見 QDomDocument 文檔編製。
另請參閱 QDomNode::childNodes () 和 QDomDocument::elementsByTagName ().
[alias, since 6.9]
QDomNodeList::
const_iterator
[alias, since 6.9]
QDomNodeList::
const_reverse_iterator
Typedefs for an opaque class that implements a bidirectional iterator over a QDomNodeList .
注意: QDomNodeList does not support modifying nodes in-place, so there is no mutable iterator.
These typedefs were introduced in Qt 6.9.
[alias, since 6.9]
QDomNodeList::
const_pointer
[alias, since 6.9]
QDomNodeList::
const_reference
[alias, since 6.9]
QDomNodeList::
difference_type
[alias, since 6.9]
QDomNodeList::
pointer
[alias, since 6.9]
QDomNodeList::
reference
[alias, since 6.9]
QDomNodeList::
value_type
Provided for STL-compatibility.
注意: QDomNodeList does not support modifying nodes in-place, so reference and const_reference are the same type, as are pointer and const_pointer .
These typedefs were introduced in Qt 6.9.
[noexcept, since 6.9]
QDomNodeList::const_iterator
QDomNodeList::
begin
() const
[noexcept, since 6.9]
QDomNodeList::const_iterator
QDomNodeList::
cbegin
() const
[noexcept, since 6.9]
QDomNodeList::const_iterator
QDomNodeList::
cend
() const
[noexcept, since 6.9]
QDomNodeList::const_iterator
QDomNodeList::
constBegin
() const
[noexcept, since 6.9]
QDomNodeList::const_iterator
QDomNodeList::
constEnd
() const
[noexcept, since 6.9]
QDomNodeList::const_iterator
QDomNodeList::
end
() const
[noexcept, since 6.9]
QDomNodeList::const_reverse_iterator
QDomNodeList::
crbegin
() const
[noexcept, since 6.9]
QDomNodeList::const_reverse_iterator
QDomNodeList::
crend
() const
[noexcept, since 6.9]
QDomNodeList::const_reverse_iterator
QDomNodeList::
rbegin
() const
[noexcept, since 6.9]
QDomNodeList::const_reverse_iterator
QDomNodeList::
rend
() const
返迴 const_iterator or const_reverse_iterator , respectively, pointing to the first or one past the last item in the list.
注意: QDomNodeList does not support modifying nodes in-place, so there is no mutable iterator.
這些函數在 Qt 6.9 引入。
創建空節點列錶。
構造副本為 nodeList .
[noexcept]
QDomNodeList::
~QDomNodeList
()
銷毀對象並釋放其資源。
提供此函數是為 Qt API 一緻性。它相當於 item ().
若 index 為負或者若 index >= length () 則返迴 null 節點 (即:節點的 QDomNode::isNull () 返迴 true)。
提供此函數是為 Qt API 一緻性。它相當於 length ().
返迴
true
若列錶不包含項;否則返迴
false
。此函數是為 Qt API 一緻性提供的。
返迴節點在位置 index .
若 index 為負或者若 index >= length () 則返迴 null 節點 (即:節點的 QDomNode::isNull () 返迴 true)。
另請參閱 length ().
返迴列錶節點數。
提供此函數是為 Qt API 一緻性。它相當於 length ().
賦值 other 到此節點列錶。
[noexcept]
bool
operator!=
(const
QDomNodeList
&
lhs
, const
QDomNodeList
&
rhs
)
返迴
true
if the node lists
lhs
and
rhs
不相等;則返迴
false
.
[noexcept]
bool
operator==
(const
QDomNodeList
&
lhs
, const
QDomNodeList
&
rhs
)
返迴
true
if the node lists
lhs
and
rhs
相等;否則返迴
false
.