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
를 통해 양방향 이터레이터를 구현하는 불투명 클래스에 대한 Typedefs를 QDomNodeList.
참고: QDomNodeList 은 제자리에서 노드 수정을 지원하지 않으므로 변경 가능한 이터레이터가 없습니다.
이 typedef는 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 와 같은 유형입니다.
이 typedef는 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()가 참을 반환하는 노드).
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()이면 널 노드가 반환됩니다(즉, 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.