このページでは

QProtobufRepeatedIterator Class

繰り返し定義されたProtobuf型を反復処理できます。詳細...

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

パブリック関数

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

詳細な説明

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

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

[constexpr noexcept default] QProtobufRepeatedIterator::QProtobufRepeatedIterator()

QProtobufRepeatedIterator のインスタンスをデフォルトコンストラクタで生成します。

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

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)

other をこのQProtobufRepeatedIterator に移動代入し、更新されたオブジェクトへの参照を返します。

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