In questa pagina

QProtobufRepeatedIterator Class

Consente di iterare sui tipi Protobuf ripetuti. Maggiori informazioni...

Intestazione: #include <QProtobufRepeatedIterator>
CMake: find_package(Qt6 REQUIRED COMPONENTS Protobuf)
target_link_libraries(mytarget PRIVATE Qt6::Protobuf)
Da: Qt 6.8

Funzioni pubbliche

QProtobufRepeatedIterator()
QProtobufRepeatedIterator(QProtobufRepeatedIterator &&other)
~QProtobufRepeatedIterator()
QProtobufMessage *addNext()
bool hasNext() const
bool isValid() const
QProtobufMessage *next()
void push()
QProtobufRepeatedIterator &operator=(QProtobufRepeatedIterator &&other)

Descrizione dettagliata

Consente di iterare sui tipi protobuf ripetuti e di accedere agli elementi dei campi ripetuti come riferimento a QProtobufMessage.

Documentazione delle funzioni membro

[constexpr noexcept default] QProtobufRepeatedIterator::QProtobufRepeatedIterator()

Crea un'istanza di ` QProtobufRepeatedIterator` con i valori predefiniti.

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

Crea un nuovo oggetto `QProtobufRepeatedIterator` a partire da ` other`.

[noexcept] QProtobufRepeatedIterator::~QProtobufRepeatedIterator()

Elimina l'iteratore.

QProtobufMessage *QProtobufRepeatedIterator::addNext()

Restituisce un nuovo elemento temporaneo nel campo ripetuto.

[noexcept] bool QProtobufRepeatedIterator::hasNext() const

Restituisce ` true ` se l'iteratore è in grado di leggere l'elemento successivo dal campo ripetuto.

[noexcept] bool QProtobufRepeatedIterator::isValid() const

Restituisce ` true ` se l'iteratore punta a un oggetto dati valido.

QProtobufMessage *QProtobufRepeatedIterator::next()

Restituisce l'elemento successivo del campo ripetuto.

void QProtobufRepeatedIterator::push()

Aggiunge l'elemento, creato dalla funzione " addNext ", al campo ripetuto.

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

L'operazione "move-assign" assegna ` other ` a ` QProtobufRepeatedIterator ` e restituisce un riferimento all'oggetto aggiornato.

© 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.