QProtobufRepeatedIterator Class
반복되는 Protobuf 유형을 반복 처리할 수 있습니다. 더 보기...
| 헤더: | #include <QProtobufRepeatedIterator> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Protobuf) target_link_libraries(mytarget PRIVATE Qt6::Protobuf) |
| 다음부터: | Qt 6.8 |
공개 함수
| QProtobufRepeatedIterator() | |
| QProtobufRepeatedIterator(QProtobufRepeatedIterator &&other) | |
| ~QProtobufRepeatedIterator() | |
| QProtobufMessage * | addNext() |
| bool | hasNext() const |
| bool | isValid() const |
| QProtobufMessage * | next() |
| void | push() |
| QProtobufRepeatedIterator & | operator=(QProtobufRepeatedIterator &&other) |
상세 설명
반복되는 protobuf 유형을 반복 처리하고, 반복되는 필드 요소에 QProtobufMessage 에 대한 참조로 접근할 수 있게 합니다.
멤버 함수 문서
[constexpr noexcept default] QProtobufRepeatedIterator::QProtobufRepeatedIterator()
QProtobufRepeatedIterator 의 인스턴스를 기본 생성자로 생성합니다.
[noexcept] QProtobufRepeatedIterator::QProtobufRepeatedIterator(QProtobufRepeatedIterator &&other)
other 에서 새로운 QProtobufRepeatedIterator를 생성합니다.
[noexcept] QProtobufRepeatedIterator::~QProtobufRepeatedIterator()
이테레이터를 삭제합니다.
QProtobufMessage *QProtobufRepeatedIterator::addNext()
반복 필드 내에 새로운 임시 요소를 반환합니다.
[noexcept] bool QProtobufRepeatedIterator::hasNext() const
이터레이터가 반복되는 필드에서 다음 요소를 읽을 수 있는 경우 ` true `를 반환합니다.
[noexcept] bool QProtobufRepeatedIterator::isValid() const
이터레이터가 유효한 데이터 객체를 가리키는 경우 ` true `를 반환합니다.
QProtobufMessage *QProtobufRepeatedIterator::next()
반복 필드에서 바로 아래에 있는 다음 요소를 반환합니다.
void QProtobufRepeatedIterator::push()
addNext 함수로 생성된 요소를 반복 필드에 추가합니다.
[noexcept] QProtobufRepeatedIterator &QProtobufRepeatedIterator::operator=(QProtobufRepeatedIterator &&other)
other 를 이 QProtobufRepeatedIterator 에 이동 할당하고, 업데이트된 객체에 대한 참조를 반환합니다.
© 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.