Sur cette page

QProtobufRepeatedIterator Class

Permet de parcourir les types Protobuf récurrents. En savoir plus...

En-tête : #include <QProtobufRepeatedIterator>
CMake : find_package(Qt6 REQUIRED COMPONENTS Protobuf)
target_link_libraries(mytarget PRIVATE Qt6::Protobuf)
Depuis : Qt 6.8

Fonctions publiques

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

Description détaillée

Permet de parcourir les types Protobuf répétés et d'accéder aux éléments de champ répétés en tant que référence à QProtobufMessage.

Documentation des fonctions membres

[constexpr noexcept default] QProtobufRepeatedIterator::QProtobufRepeatedIterator()

Construit par défaut une instance de ` QProtobufRepeatedIterator`.

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

Crée par « move » un nouvel objet `QProtobufRepeatedIterator` à partir de ` other`.

[noexcept] QProtobufRepeatedIterator::~QProtobufRepeatedIterator()

Détruit l'itérateur.

QProtobufMessage *QProtobufRepeatedIterator::addNext()

Renvoie un nouvel élément temporaire dans le champ répété.

[noexcept] bool QProtobufRepeatedIterator::hasNext() const

Renvoie ` true ` si l'itérateur peut lire l'élément suivant du champ répété.

[noexcept] bool QProtobufRepeatedIterator::isValid() const

Renvoie « true » si l'itérateur pointe vers un objet de données valide.

QProtobufMessage *QProtobufRepeatedIterator::next()

Renvoie l'élément suivant du champ répété.

void QProtobufRepeatedIterator::push()

Ajoute l'élément, créé par la fonction « addNext », au champ répété.

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

Cette opération attribue la valeur de ` other ` à ` QProtobufRepeatedIterator ` et renvoie une référence à l'objet mis à jour.

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