QIterable Class
template <typename Container> class QIterableQIterable は、QSequentialIterable およびQAssociativeIterable の基本クラスとなるテンプレート・クラスです。さらに...
ヘッダー | #include <QIterable> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
以来: | Qt 6.0 |
継承元 |
パブリック関数
bool | canForwardIterate() const |
bool | canInputIterate() const |
bool | canRandomAccessIterate() const |
bool | canReverseIterate() const |
QConstIterator<Container> | constBegin() const |
QConstIterator<Container> | constEnd() const |
QIterator<Container> | mutableBegin() |
QIterator<Container> | mutableEnd() |
qsizetype | size() const |
メンバー関数ドキュメント
bool QIterable::canForwardIterate() const
コンテナを順方向に反復処理できるかどうかを返す。これは、コンテナのイテレータおよび const_iterator の std::forward_iterator_tag イテレータ特性に対応します。
bool QIterable::canInputIterate() const
コンテナが入力イテレータを持つかどうかを返す。これは、コンテナの iterator および const_iterator の std::input_iterator_tag iterator 特性に対応する。
bool QIterable::canRandomAccessIterate() const
イテレータを使用して複数の値を効率的にスキップできるかどうかを返します。これは、コンテナのイテレータおよび const_iterator の std::random_access_iterator_tag イテレータ特性に対応します。
bool QIterable::canReverseIterate() const
コンテナを逆方向に反復処理できるかどうかを返す。これは、コンテナの const_iterator の std::bidirectional_iterator_tag iterator 特性に対応する。
QConstIterator<Container> QIterable::constBegin() const
コンテナの開始点をQConstIterator で返します。これは stl 形式の反復処理で使用できます。
constEnd() およびmutableBegin()も参照 。
QConstIterator<Container> QIterable::constEnd() const
コンテナの終端を表す Qterable::QConstIterator を返します。これは stl 形式の反復処理で使用できます。
constBegin() およびmutableEnd()も参照して ください。
QIterator<Container> QIterable::mutableBegin()
コンテナの開始点をQIterator で返します。これは stl 形式の反復処理で使用できます。
mutableEnd() およびconstBegin()も参照 。
QIterator<Container> QIterable::mutableEnd()
コンテナの終了点をQSequentialIterable::iterator で返します。これは stl 形式の反復処理で使用できます。
mutableBegin() およびconstEnd()も参照 。
qsizetype QIterable::size() const
コンテナ内の値の数を返します。
© 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.