QProtobufRepeatedIterator Class
Permite iterar sobre tipos de protobufs repetidos. Más...
| Cabecera: | #include <QProtobufRepeatedIterator> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Protobuf)target_link_libraries(mytarget PRIVATE Qt6::Protobuf) |
| Desde: | Qt 6.8 |
Funciones Públicas
| QProtobufRepeatedIterator(QProtobufRepeatedIterator &&other) | |
| ~QProtobufRepeatedIterator() | |
| QProtobufMessage * | addNext() |
| bool | hasNext() const |
| bool | isValid() const |
| QProtobufMessage * | next() |
| void | push() |
| QProtobufRepeatedIterator & | operator=(QProtobufRepeatedIterator &&other) |
Descripción detallada
Permite iterar sobre tipos protobuf repetidos y acceder a los elementos de campo repetidos como referencia a QProtobufMessage.
Documentación de la Función Miembro
[noexcept] QProtobufRepeatedIterator::QProtobufRepeatedIterator(QProtobufRepeatedIterator &&other)
Move-construye un nuevo QProtobufRepeatedIterator a partir de other.
[noexcept] QProtobufRepeatedIterator::~QProtobufRepeatedIterator()
Destruye el iterador.
QProtobufMessage *QProtobufRepeatedIterator::addNext()
Devuelve un nuevo elemento temporal en el campo repetido.
[noexcept] bool QProtobufRepeatedIterator::hasNext() const
Devuelve true si el iterador puede leer el siguiente elemento del campo repetido.
[noexcept] bool QProtobufRepeatedIterator::isValid() const
Devuelve true si el iterador apunta a un objeto de datos válido.
QProtobufMessage *QProtobufRepeatedIterator::next()
Devuelve el siguiente elemento por debajo del campo repetido.
void QProtobufRepeatedIterator::push()
Añade el elemento, creado por la función addNext, al campo repetido.
[noexcept] QProtobufRepeatedIterator &QProtobufRepeatedIterator::operator=(QProtobufRepeatedIterator &&other)
Move-asigna other a este QProtobufRepeatedIterator y devuelve una referencia al objeto actualizado.
© 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.