QProtobufRepeatedIterator Class
Permet d'itérer sur des types de protobuf répétés. Plus d'informations...
| 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 &&other) | |
| ~QProtobufRepeatedIterator() | |
| QProtobufMessage * | addNext() |
| bool | hasNext() const |
| bool | isValid() const |
| QProtobufMessage * | next() |
| void | push() |
| QProtobufRepeatedIterator & | operator=(QProtobufRepeatedIterator &&other) |
Description détaillée
Permet d'itérer sur des types de 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 sur les fonctions membres
[noexcept] QProtobufRepeatedIterator::QProtobufRepeatedIterator(QProtobufRepeatedIterator &&other)
Move-construit un nouveau 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 sous le 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)
Move-assigne other à ce 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.