QMetaAssociation::Iterable::Iterator Class
class QMetaAssociation::Iterable::IteratorQMetaAssociation::Iterable::Iterator 은 QVariant 에서 컨테이너에 대한 반복을 허용합니다.. ..
이 클래스는 Qt 6.11에 도입되었습니다.
공용 함수
| QVariant | key() const |
| QVariant | value() const |
| int | operator*() const |
| int | operator->() const |
자세한 설명
QMetaAssociation::Iterable::Iterator 은 QMetaAssociation::Iterable 인스턴스에 의해서만 생성될 수 있으며, 다른 stl 스타일 이터레이터와 유사한 방식으로 사용될 수 있습니다.
QMetaAssociation::Iterable 를참조하세요 .
멤버 함수 문서
QVariant Iterator::key() const
이터레이터가 가리키는 키를 반환합니다.
QVariant Iterator::value() const
이 이터레이터가 가리키는 매핑된 값을 반환합니다. 컨테이너가 매핑된 값(예: 집합)을 제공하지 않으면 잘못된 QVariant::Reference 을 반환합니다.
int Iterator::operator*() const
현재 항목을 QVariant::Reference 로 변환하여 반환합니다. 결과 QVariant::Reference 은 매핑된 값이 있는 경우 해당 값으로, 없는 경우 키 값으로 확인합니다.
int Iterator::operator->() const
현재 항목을 QVariant::Pointer 로 변환하여 반환합니다. 결과 QVariant::Pointer 은 매핑된 값이 있는 경우 해당 값으로, 없는 경우 키 값으로 확인합니다.
© 2026 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.