QProtobufRepeatedIterator Class

繰り返されるprotobuf型を反復処理できるようにする。さらに...

ヘッダー #include <QProtobufRepeatedIterator>
CMake: find_package(Qt6 REQUIRED COMPONENTS Protobuf)
target_link_libraries(mytarget PRIVATE Qt6::Protobuf)
以来:Qt 6.8

パブリック関数

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

詳細な説明

繰り返される protobuf 型を反復処理し、繰り返されるフィールド要素にQProtobufMessage への参照としてアクセスできるようにします。

メンバ関数のドキュメント

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

Move-other から新しい QProtobufRepeatedIterator を構築する。

[noexcept] QProtobufRepeatedIterator::~QProtobufRepeatedIterator()

イテレータを破壊する。

QProtobufMessage *QProtobufRepeatedIterator::addNext()

繰り返しフィールドの新しい一時要素を返します。

[noexcept] bool QProtobufRepeatedIterator::hasNext() const

イテレータが繰り返しフィールドから次の要素を読み込める場合はtrue を返します。

[noexcept] bool QProtobufRepeatedIterator::isValid() const

イテレータが有効なデータオブジェクトを指している場合はtrue を返す。

QProtobufMessage *QProtobufRepeatedIterator::next()

繰り返しフィールドの次の要素を返します。

void QProtobufRepeatedIterator::push()

addNext 関数で作成した要素を繰り返しフィールドに追加します。

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

Move-このQProtobufRepeatedIteratorother を割り当て、更新されたオブジェクトへの参照を返す。

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