En esta página

QProtobufRepeatedIterator Class

Permite recorrer tipos Protobuf repetidos. Más información...

Encabezado: #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(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 los campos repetidos como referencia a QProtobufMessage.

Documentación de la función miembro

[constexpr noexcept default] QProtobufRepeatedIterator::QProtobufRepeatedIterator()

Crea de forma implícita una instancia de ` QProtobufRepeatedIterator`.

[noexcept] QProtobufRepeatedIterator::QProtobufRepeatedIterator(QProtobufRepeatedIterator &&other)

Crea 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 del campo repetido.

void QProtobufRepeatedIterator::push()

Añade el elemento, creado mediante la función « addNext », al campo repetido.

[noexcept] QProtobufRepeatedIterator &QProtobufRepeatedIterator::operator=(QProtobufRepeatedIterator &&other)

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.