QDomNodeList Class
QDomNodeList クラスはQDomNode オブジェクトのリストです。詳細...
ヘッダー | #include <QDomNodeList> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Xml) target_link_libraries(mytarget PRIVATE Qt6::Xml) |
qmake: | QT += xml |
- 継承メンバを含む全メンバのリスト
- QDomNodeList はXML クラスの一部です。
注釈このクラスの関数はすべてリエントラントです。
パブリック・タイプ
(since 6.9) | const_iterator |
(since 6.9) | const_pointer |
(since 6.9) | const_reference |
(since 6.9) | const_reverse_iterator |
(since 6.9) | difference_type |
(since 6.9) | pointer |
(since 6.9) | reference |
(since 6.9) | value_type |
パブリック関数
QDomNodeList() | |
QDomNodeList(const QDomNodeList &nodeList) | |
~QDomNodeList() | |
QDomNode | at(int index) const |
(since 6.9) QDomNodeList::const_iterator | begin() const |
(since 6.9) QDomNodeList::const_iterator | cbegin() const |
(since 6.9) QDomNodeList::const_iterator | cend() const |
(since 6.9) QDomNodeList::const_iterator | constBegin() const |
(since 6.9) QDomNodeList::const_iterator | constEnd() const |
int | count() const |
(since 6.9) QDomNodeList::const_reverse_iterator | crbegin() const |
(since 6.9) QDomNodeList::const_reverse_iterator | crend() const |
(since 6.9) QDomNodeList::const_iterator | end() const |
bool | isEmpty() const |
QDomNode | item(int index) const |
int | length() const |
(since 6.9) QDomNodeList::const_reverse_iterator | rbegin() const |
(since 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およびレベル2コアを参照してください。DOM 実装のより一般的な紹介については、QDomDocument ドキュメントを参照してください。
QDomNode::childNodes() およびQDomDocument::elementsByTagName()も参照して ください。
メンバ型のドキュメント
[alias, since 6.9]
QDomNodeList::const_iterator
[alias, since 6.9]
QDomNodeList::const_reverse_iterator
QDomNodeList に対する双方向イテレータを実装する不透明なクラスの型定義。
注: QDomNodeList はノードをインプレースで変更することをサポートしていないので、変更可能なイテレータはない。
この型定義は 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
STL互換のために提供される。
注: QDomNodeList はノードのインプレース変更をサポートしないので,参照とconst_reference は同じ型であり,ポインタとconst_pointer も同じ型である.
この型定義は 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 またはconst_reverse_iterator を返します。
注意: QDomNodeList はノードをインプレースで変更することをサポートしていないので、変更可能なイテレータはありません。
この関数は Qt 6.9 で導入されました。
QDomNodeList::QDomNodeList()
空のノード・リストを作成します。
QDomNodeList::QDomNodeList(const QDomNodeList &nodeList)
nodeList のコピーを作成する。
[noexcept]
QDomNodeList::~QDomNodeList()
オブジェクトを破壊し、そのリソースを解放する。
QDomNode QDomNodeList::at(int index) const
この関数は、Qt API の一貫性を保つために用意されています。これはitem() と同等です。
index が負の場合、またはindex >=length() の場合は、NULL ノードが返されます(つまり、QDomNode::isNull() が true を返すノード)。
int QDomNodeList::count() const
この関数は、Qt API の一貫性を保つために用意されています。length() と同等です。
bool QDomNodeList::isEmpty() const
リストに項目がない場合はtrue
を返し、そうでない場合はfalse
を返します。この関数は Qt API の一貫性のために提供されています。
QDomNode QDomNodeList::item(int index) const
位置index にあるノードを返す。
index が負の場合、またはindex >=length() の場合、NULL ノードが返される(つまり、QDomNode::isNull() が真を返すノード)。
length()も参照してください 。
int QDomNodeList::length() const
リストに含まれるノードの数を返します。
int QDomNodeList::size() const
この関数は、Qt API の一貫性を保つために用意されています。length() と同等です。
QDomNodeList &QDomNodeList::operator=(const QDomNodeList &other)
このノードリストにother を割り当てる。
関連する非会員
[noexcept]
bool operator!=(const QDomNodeList &lhs, const QDomNodeList &rhs)
ノードリストlhs とrhs が等しくなければtrue
を返し、そうでなければfalse
を返す。
[noexcept]
bool operator==(const QDomNodeList &lhs, const QDomNodeList &rhs)
ノードリストlhs とrhs が等しければtrue
を返し、そうでなければfalse
を返す。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.