QProtobufRepeatedIterator Class
Permite iterar sobre tipos protobuf repetidos. Mais...
| Cabeçalho: | #include <QProtobufRepeatedIterator> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Protobuf) target_link_libraries(mytarget PRIVATE Qt6::Protobuf) |
| Desde: | Qt 6.8 |
Funções públicas
| QProtobufRepeatedIterator() | |
| QProtobufRepeatedIterator(QProtobufRepeatedIterator &&other) | |
| ~QProtobufRepeatedIterator() | |
| QProtobufMessage * | addNext() |
| bool | hasNext() const |
| bool | isValid() const |
| QProtobufMessage * | next() |
| void | push() |
| QProtobufRepeatedIterator & | operator=(QProtobufRepeatedIterator &&other) |
Descrição detalhada
Permite iterar sobre tipos protobuf repetidos e acessar os elementos dos campos repetidos como referência a QProtobufMessage.
Documentação da função de membro
[constexpr noexcept default] QProtobufRepeatedIterator::QProtobufRepeatedIterator()
Constrói, por padrão, uma instância de ` QProtobufRepeatedIterator`.
[noexcept] QProtobufRepeatedIterator::QProtobufRepeatedIterator(QProtobufRepeatedIterator &&other)
Move cria um novo QProtobufRepeatedIterator a partir de other.
[noexcept] QProtobufRepeatedIterator::~QProtobufRepeatedIterator()
Destrói o iterador.
QProtobufMessage *QProtobufRepeatedIterator::addNext()
Retorna um novo elemento temporário no campo repetido.
[noexcept] bool QProtobufRepeatedIterator::hasNext() const
Retorna ` true ` se o iterador puder ler o próximo elemento do campo repetido.
[noexcept] bool QProtobufRepeatedIterator::isValid() const
Retorna ` true ` se o iterador apontar para um objeto de dados válido.
QProtobufMessage *QProtobufRepeatedIterator::next()
Retorna o próximo elemento abaixo do campo repetido.
void QProtobufRepeatedIterator::push()
Adiciona o elemento, criado pela função addNext, ao campo repetido.
[noexcept] QProtobufRepeatedIterator &QProtobufRepeatedIterator::operator=(QProtobufRepeatedIterator &&other)
A função move-assigns atribui other a este QProtobufRepeatedIterator e retorna uma referência ao objeto atualizado.
© 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.