このページでは

QRangeModelAdapter::RowReferenceBase Struct

template <typename Reference, typename Adapter> struct QRangeModelAdapter::RowReferenceBase

RowReferenceBase は、RowReference およびConstRowReference 向けの共通 API を提供します。詳細...

この構造体はテクノロジープレビュー段階にあり、変更される可能性があります。

この構造体は Qt 6.11 で導入されました。

パブリック関数

auto at(int column) const
QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator begin() const
QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator cbegin() const
QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator cend() const
auto children() const
QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator end() const
bool hasChildren() const
QRangeModelAdapter<Range, Protocol, Model>::RowReferenceBase<Reference, Adapter>::size_type size() const
auto operator[](int column) const

保護された関数

詳細な説明

テーブルまたはツリーであるモデルの場合、at()、添字operator[] 、またはRowIterator の逆参照を使用してアダプタの行にアクセスすると、指定された行へのRowReference またはConstRowReference が返されます。

DataReferenceも参照してください 。

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

[protected default] RowReferenceBase::~RowReferenceBase()

RowReferenceBase のインスタンスを破棄します。

auto RowReferenceBase::at(int column) const

auto RowReferenceBase::operator[](int column) const

この行のcolumn にある項目への参照ラッパーを返します。

アダプタが操作するデータ構造に応じて、戻り値は const 参照ラッパー、const オブジェクトへのポインタ、または `QVariant` のいずれかになります。

QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator RowReferenceBase::begin() const

この行の最初の列を指すConstColumnIterator を返します。

QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator RowReferenceBase::cbegin() const

この行の最初の列を指すConstColumnIterator を返します。

QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator RowReferenceBase::cend() const

この行の最後の列の直後の位置を指すConstColumnIterator を返します。

template <typename I> requires if_tree<I> auto RowReferenceBase::children() const

このアダプタと同じ範囲およびモデルで動作し、この行をルートインデックスとするQRangeModelAdapter を返します。

制約

Range がツリーである場合にのみ、オーバーロード解決の対象となります。

QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator RowReferenceBase::end() const

この行の最後の列の直後の位置を指すConstColumnIterator を返します。

template <typename I> requires if_tree<I> bool RowReferenceBase::hasChildren() const

参照された行に1つ以上の子行がある場合はtrueを返し、そうでない場合はfalseを返します。

制約

Range がツリーである場合にのみ、オーバーロード解決の対象となる。

QRangeModelAdapter<Range, Protocol, Model>::RowReferenceBase<Reference, Adapter>::size_type RowReferenceBase::size() const

モデルの列数を返します。

これは、モデル内のすべての行に対して同じ値を返します。

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