Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QRangeModelAdapter< Range, Protocol, Model > Class Template Reference

#include <qrangemodeladapter.h>

Collaboration diagram for QRangeModelAdapter< Range, Protocol, Model >:

Classes

struct  DataReference
struct  ColumnIteratorBase
struct  ConstColumnIterator
struct  ColumnIterator
struct  RowGetter
struct  RowGetter< Reference, const_row_type, std::enable_if_t< std::is_reference_v< const_row_type > > >
struct  RowGetter< Reference, const_row_type, std::enable_if_t< std::is_pointer_v< const_row_type > > >
struct  RowReferenceBase
struct  ConstRowReference
struct  RowReference
struct  RowIteratorBase
struct  ConstRowIterator
struct  RowIterator

Public Types

using const_iterator = ConstRowIterator
using iterator = RowIterator

Public Member Functions

template<typename R, typename P, if_compatible_model_params< R, P > = true>
 QRangeModelAdapter (R &&range, P &&protocol)
template<typename R, typename P = void, if_compatible_model_params< R, P > = true, unless_adapter< R > = true>
 QRangeModelAdapter (R &&range)
Model * model () const
const range_type & range () const
Q_IMPLICIT operator const range_type & () const
template<typename NewRange = range_type, if_assignable_range< NewRange > = true>
void setRange (NewRange &&newRange)
template<typename NewRange = range_type, if_assignable_range< NewRange > = true, unless_adapter< NewRange > = true>
QRangeModelAdapteroperator= (NewRange &&newRange)
template<typename Row, if_assignable_range< std::initializer_list< Row > > = true>
void setRange (std::initializer_list< Row > newRange)
template<typename Row, if_assignable_range< std::initializer_list< Row > > = true>
QRangeModelAdapteroperator= (std::initializer_list< Row > newRange)
template<typename Row, if_assignable_range< std::initializer_list< Row > > = true>
void assign (std::initializer_list< Row > newRange)
template<typename InputIterator, typename Sentinel, typename I = Impl, if_writable< I > = true>
void setRange (InputIterator first, Sentinel last)
template<typename InputIterator, typename Sentinel, typename I = Impl, if_writable< I > = true>
void assign (InputIterator first, Sentinel last)
ConstRowIterator cbegin () const
ConstRowIterator begin () const
ConstRowIterator cend () const
ConstRowIterator end () const
template<typename I = Impl, if_writable< I > = true>
RowIterator begin ()
template<typename I = Impl, if_writable< I > = true>
RowIterator end ()
int size () const
template<typename I = Impl, if_list< I > = true>
QModelIndex index (int row) const
template<typename I = Impl, unless_list< I > = true>
QModelIndex index (int row, int column) const
template<typename I = Impl, if_tree< I > = true>
QModelIndex index (QSpan< const int > path, int col) const
int columnCount () const
int rowCount () const
template<typename I = Impl, if_tree< I > = true>
int rowCount (int row) const
template<typename I = Impl, if_tree< I > = true>
int rowCount (QSpan< const int > path) const
template<typename I = Impl, if_tree< I > = true>
constexpr bool hasChildren (int row) const
template<typename I = Impl, if_tree< I > = true>
constexpr bool hasChildren (QSpan< const int > path) const
template<typename I = Impl, if_list< I > = true>
QVariant data (int row) const
template<typename I = Impl, if_list< I > = true>
QVariant data (int row, int role) const
template<typename I = Impl, if_list< I > = true, if_writable< I > = true>
bool setData (int row, const QVariant &value, int role=Qt::EditRole)
template<typename I = Impl, unless_list< I > = true>
QVariant data (int row, int column) const
template<typename I = Impl, unless_list< I > = true>
QVariant data (int row, int column, int role) const
template<typename I = Impl, unless_list< I > = true, if_writable< I > = true>
bool setData (int row, int column, const QVariant &value, int role=Qt::EditRole)
template<typename I = Impl, if_tree< I > = true>
QVariant data (QSpan< const int > path, int column) const
template<typename I = Impl, if_tree< I > = true>
QVariant data (QSpan< const int > path, int column, int role) const
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
bool setData (QSpan< const int > path, int column, const QVariant &value, int role=Qt::EditRole)
template<typename I = Impl, if_list< I > = true>
const_data_type at (int row) const
template<typename I = Impl, if_list< I > = true>
const_data_type operator[] (int row) const
template<typename I = Impl, if_list< I > = true, if_writable< I > = true>
auto at (int row)
template<typename I = Impl, if_list< I > = true, if_writable< I > = true>
auto operator[] (int row)
template<typename I = Impl, unless_list< I > = true>
decltype(auto) at (int row) const
template<typename I = Impl, unless_list< I > = true>
decltype(auto) operator[] (int row) const
template<typename I = Impl, if_table< I > = true, if_writable< I > = true>
auto at (int row)
template<typename I = Impl, if_table< I > = true, if_writable< I > = true>
auto operator[] (int row)
template<typename I = Impl, unless_list< I > = true>
const_data_type at (int row, int column) const
template<typename I = Impl, unless_list< I > = true, if_writable< I > = true>
auto at (int row, int column)
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto at (int row)
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto operator[] (int row)
template<typename I = Impl, if_tree< I > = true>
decltype(auto) at (QSpan< const int > path) const
template<typename I = Impl, if_tree< I > = true>
decltype(auto) operator[] (QSpan< const int > path) const
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto at (QSpan< const int > path)
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto operator[] (QSpan< const int > path)
template<typename I = Impl, if_tree< I > = true>
const_data_type at (QSpan< const int > path, int column) const
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto at (QSpan< const int > path, int column)
template<typename I = Impl, if_canInsertRows< I > = true>
bool insertRow (int before)
template<typename I = Impl, if_canInsertRows< I > = true, if_tree< I > = true>
bool insertRow (QSpan< const int > before)
template<typename D = row_type, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row< D > = true>
bool insertRow (int before, D &&data)
template<typename D = row_type, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row< D > = true, if_tree< I > = true>
bool insertRow (QSpan< const int > before, D &&data)
template<typename C, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row_range< C > = true>
bool insertRows (int before, C &&data)
template<typename C, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row_range< C > = true, if_tree< I > = true>
bool insertRows (QSpan< const int > before, C &&data)
template<typename I = Impl, if_canRemoveRows< I > = true>
bool removeRow (int row)
template<typename I = Impl, if_canRemoveRows< I > = true, if_tree< I > = true>
bool removeRow (QSpan< const int > path)
template<typename I = Impl, if_canRemoveRows< I > = true>
bool removeRows (int row, int count)
template<typename I = Impl, if_canRemoveRows< I > = true, if_tree< I > = true>
bool removeRows (QSpan< const int > path, int count)
template<typename F = range_features, if_canMoveItems< F > = true>
bool moveRow (int source, int destination)
template<typename F = range_features, if_canMoveItems< F > = true>
bool moveRows (int source, int count, int destination)
template<typename I = Impl, typename F = range_features, if_canMoveItems< F > = true, if_tree< I > = true>
bool moveRow (QSpan< const int > source, QSpan< const int > destination)
template<typename I = Impl, typename F = range_features, if_canMoveItems< F > = true, if_tree< I > = true>
bool moveRows (QSpan< const int > source, int count, QSpan< const int > destination)
template<typename I = Impl, if_canInsertColumns< I > = true>
bool insertColumn (int before)
template<typename D, typename I = Impl, if_canInsertColumns< I > = true, if_compatible_column_data< D > = true>
bool insertColumn (int before, D &&data)
template<typename C, typename I = Impl, if_canInsertColumns< I > = true, if_compatible_column_range< C > = true>
bool insertColumns (int before, C &&data)
template<typename I = Impl, if_canRemoveColumns< I > = true>
bool removeColumn (int column)
template<typename I = Impl, if_canRemoveColumns< I > = true>
bool removeColumns (int column, int count)
template<typename F = row_features, if_canMoveItems< F > = true>
bool moveColumn (int from, int to)
template<typename F = row_features, if_canMoveItems< F > = true>
bool moveColumns (int from, int count, int to)
template<typename I = Impl, typename F = row_features, if_canMoveItems< F > = true, if_tree< I > = true>
bool moveColumn (QSpan< const int > source, int to)
template<typename I = Impl, typename F = row_features, if_canMoveItems< F > = true, if_tree< I > = true>
bool moveColumns (QSpan< const int > source, int count, int destination)

Friends

class QRangeModel
class QRangeModelAdapter< asMutable_t< Range >, Protocol, Model >
bool comparesEqual (const QRangeModelAdapter &lhs, const QRangeModelAdapter &rhs) noexcept
bool comparesEqual (const QRangeModelAdapter &lhs, const range_type &rhs)

Detailed Description

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
class QRangeModelAdapter< Range, Protocol, Model >

Definition at line 13 of file qrangemodeladapter.h.

Member Typedef Documentation

◆ const_iterator

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
using QRangeModelAdapter< Range, Protocol, Model >::const_iterator = ConstRowIterator

Definition at line 1018 of file qrangemodeladapter.h.

◆ iterator

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
using QRangeModelAdapter< Range, Protocol, Model >::iterator = RowIterator

Definition at line 1019 of file qrangemodeladapter.h.

Constructor & Destructor Documentation

◆ QRangeModelAdapter() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename R, typename P, if_compatible_model_params< R, P > = true>
QRangeModelAdapter< Range, Protocol, Model >::QRangeModelAdapter ( R && range,
P && protocol )
inlineexplicit

Definition at line 1024 of file qrangemodeladapter.h.

◆ QRangeModelAdapter() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename R, typename P = void, if_compatible_model_params< R, P > = true, unless_adapter< R > = true>
QRangeModelAdapter< Range, Protocol, Model >::QRangeModelAdapter ( R && range)
inlineexplicit

Definition at line 1033 of file qrangemodeladapter.h.

Member Function Documentation

◆ assign() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename InputIterator, typename Sentinel, typename I = Impl, if_writable< I > = true>
void QRangeModelAdapter< Range, Protocol, Model >::assign ( InputIterator first,
Sentinel last )
inline

Definition at line 1101 of file qrangemodeladapter.h.

◆ assign() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename Row, if_assignable_range< std::initializer_list< Row > > = true>
void QRangeModelAdapter< Range, Protocol, Model >::assign ( std::initializer_list< Row > newRange)
inline

Definition at line 1087 of file qrangemodeladapter.h.

◆ at() [1/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::at ( int row)
inline

Definition at line 1309 of file qrangemodeladapter.h.

◆ at() [2/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_table< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::at ( int row)
inline

Definition at line 1277 of file qrangemodeladapter.h.

◆ at() [3/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_list< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::at ( int row)
inline

Definition at line 1263 of file qrangemodeladapter.h.

◆ at() [4/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, unless_list< I > = true>
decltype(auto) QRangeModelAdapter< Range, Protocol, Model >::at ( int row) const
inline

Definition at line 1269 of file qrangemodeladapter.h.

◆ at() [5/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_list< I > = true>
const_data_type QRangeModelAdapter< Range, Protocol, Model >::at ( int row) const
inline

Definition at line 1255 of file qrangemodeladapter.h.

◆ at() [6/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, unless_list< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::at ( int row,
int column )
inline

Definition at line 1297 of file qrangemodeladapter.h.

◆ at() [7/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, unless_list< I > = true>
const_data_type QRangeModelAdapter< Range, Protocol, Model >::at ( int row,
int column ) const
inline

Definition at line 1286 of file qrangemodeladapter.h.

◆ at() [8/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::at ( QSpan< const int > path)
inline

Definition at line 1326 of file qrangemodeladapter.h.

◆ at() [9/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
decltype(auto) QRangeModelAdapter< Range, Protocol, Model >::at ( QSpan< const int > path) const
inline

Definition at line 1318 of file qrangemodeladapter.h.

◆ at() [10/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::at ( QSpan< const int > path,
int column )
inline

Definition at line 1347 of file qrangemodeladapter.h.

◆ at() [11/11]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
const_data_type QRangeModelAdapter< Range, Protocol, Model >::at ( QSpan< const int > path,
int column ) const
inline

Definition at line 1335 of file qrangemodeladapter.h.

◆ begin() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_writable< I > = true>
RowIterator QRangeModelAdapter< Range, Protocol, Model >::begin ( )
inline

Definition at line 1120 of file qrangemodeladapter.h.

◆ begin() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
ConstRowIterator QRangeModelAdapter< Range, Protocol, Model >::begin ( ) const
inline

Definition at line 1111 of file qrangemodeladapter.h.

◆ cbegin()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
ConstRowIterator QRangeModelAdapter< Range, Protocol, Model >::cbegin ( ) const
inline

Definition at line 1107 of file qrangemodeladapter.h.

◆ cend()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
ConstRowIterator QRangeModelAdapter< Range, Protocol, Model >::cend ( ) const
inline

Definition at line 1113 of file qrangemodeladapter.h.

◆ columnCount()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
int QRangeModelAdapter< Range, Protocol, Model >::columnCount ( ) const
inline

Definition at line 1163 of file qrangemodeladapter.h.

◆ data() [1/6]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_list< I > = true>
QVariant QRangeModelAdapter< Range, Protocol, Model >::data ( int row) const
inline

Definition at line 1199 of file qrangemodeladapter.h.

◆ data() [2/6]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, unless_list< I > = true>
QVariant QRangeModelAdapter< Range, Protocol, Model >::data ( int row,
int column ) const
inline

Definition at line 1217 of file qrangemodeladapter.h.

◆ data() [3/6]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, unless_list< I > = true>
QVariant QRangeModelAdapter< Range, Protocol, Model >::data ( int row,
int column,
int role ) const
inline

Definition at line 1223 of file qrangemodeladapter.h.

◆ data() [4/6]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_list< I > = true>
QVariant QRangeModelAdapter< Range, Protocol, Model >::data ( int row,
int role ) const
inline

Definition at line 1205 of file qrangemodeladapter.h.

◆ data() [5/6]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
QVariant QRangeModelAdapter< Range, Protocol, Model >::data ( QSpan< const int > path,
int column ) const
inline

Definition at line 1235 of file qrangemodeladapter.h.

◆ data() [6/6]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
QVariant QRangeModelAdapter< Range, Protocol, Model >::data ( QSpan< const int > path,
int column,
int role ) const
inline

Definition at line 1241 of file qrangemodeladapter.h.

◆ end() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_writable< I > = true>
RowIterator QRangeModelAdapter< Range, Protocol, Model >::end ( )
inline

Definition at line 1126 of file qrangemodeladapter.h.

◆ end() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
ConstRowIterator QRangeModelAdapter< Range, Protocol, Model >::end ( ) const
inline

Definition at line 1117 of file qrangemodeladapter.h.

◆ hasChildren() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::hasChildren ( int row) const
inlineconstexpr

Definition at line 1187 of file qrangemodeladapter.h.

◆ hasChildren() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::hasChildren ( QSpan< const int > path) const
inlineconstexpr

Definition at line 1193 of file qrangemodeladapter.h.

◆ index() [1/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_list< I > = true>
QModelIndex QRangeModelAdapter< Range, Protocol, Model >::index ( int row) const
inline

Definition at line 1137 of file qrangemodeladapter.h.

◆ index() [2/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, unless_list< I > = true>
QModelIndex QRangeModelAdapter< Range, Protocol, Model >::index ( int row,
int column ) const
inline

Definition at line 1143 of file qrangemodeladapter.h.

◆ index() [3/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
QModelIndex QRangeModelAdapter< Range, Protocol, Model >::index ( QSpan< const int > path,
int col ) const
inline

Definition at line 1149 of file qrangemodeladapter.h.

◆ insertColumn() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_canInsertColumns< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::insertColumn ( int before)
inline

Definition at line 1455 of file qrangemodeladapter.h.

◆ insertColumn() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename D, typename I = Impl, if_canInsertColumns< I > = true, if_compatible_column_data< D > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::insertColumn ( int before,
D && data )
inline

Definition at line 1462 of file qrangemodeladapter.h.

◆ insertColumns()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename C, typename I = Impl, if_canInsertColumns< I > = true, if_compatible_column_range< C > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::insertColumns ( int before,
C && data )
inline

Definition at line 1469 of file qrangemodeladapter.h.

◆ insertRow() [1/4]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_canInsertRows< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::insertRow ( int before)
inline

Definition at line 1358 of file qrangemodeladapter.h.

◆ insertRow() [2/4]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename D = row_type, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row< D > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::insertRow ( int before,
D && data )
inline

Definition at line 1372 of file qrangemodeladapter.h.

◆ insertRow() [3/4]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_canInsertRows< I > = true, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::insertRow ( QSpan< const int > before)
inline

Definition at line 1364 of file qrangemodeladapter.h.

◆ insertRow() [4/4]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename D = row_type, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row< D > = true, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::insertRow ( QSpan< const int > before,
D && data )
inline

Definition at line 1379 of file qrangemodeladapter.h.

◆ insertRows() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename C, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row_range< C > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::insertRows ( int before,
C && data )
inline

Definition at line 1386 of file qrangemodeladapter.h.

◆ insertRows() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename C, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row_range< C > = true, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::insertRows ( QSpan< const int > before,
C && data )
inline

Definition at line 1393 of file qrangemodeladapter.h.

◆ model()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
Model * QRangeModelAdapter< Range, Protocol, Model >::model ( ) const
inline

Definition at line 1039 of file qrangemodeladapter.h.

◆ moveColumn() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename F = row_features, if_canMoveItems< F > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::moveColumn ( int from,
int to )
inline

Definition at line 1487 of file qrangemodeladapter.h.

◆ moveColumn() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, typename F = row_features, if_canMoveItems< F > = true, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::moveColumn ( QSpan< const int > source,
int to )
inline

Definition at line 1500 of file qrangemodeladapter.h.

◆ moveColumns() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename F = row_features, if_canMoveItems< F > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::moveColumns ( int from,
int count,
int to )
inline

Definition at line 1493 of file qrangemodeladapter.h.

◆ moveColumns() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, typename F = row_features, if_canMoveItems< F > = true, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::moveColumns ( QSpan< const int > source,
int count,
int destination )
inline

Definition at line 1508 of file qrangemodeladapter.h.

◆ moveRow() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename F = range_features, if_canMoveItems< F > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::moveRow ( int source,
int destination )
inline

Definition at line 1425 of file qrangemodeladapter.h.

◆ moveRow() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, typename F = range_features, if_canMoveItems< F > = true, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::moveRow ( QSpan< const int > source,
QSpan< const int > destination )
inline

Definition at line 1438 of file qrangemodeladapter.h.

◆ moveRows() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename F = range_features, if_canMoveItems< F > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::moveRows ( int source,
int count,
int destination )
inline

Definition at line 1431 of file qrangemodeladapter.h.

◆ moveRows() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, typename F = range_features, if_canMoveItems< F > = true, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::moveRows ( QSpan< const int > source,
int count,
QSpan< const int > destination )
inline

Definition at line 1445 of file qrangemodeladapter.h.

◆ operator const range_type &()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
Q_IMPLICIT QRangeModelAdapter< Range, Protocol, Model >::operator const range_type & ( ) const
inline

Definition at line 1049 of file qrangemodeladapter.h.

◆ operator=() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename NewRange = range_type, if_assignable_range< NewRange > = true, unless_adapter< NewRange > = true>
QRangeModelAdapter & QRangeModelAdapter< Range, Protocol, Model >::operator= ( NewRange && newRange)
inline

Definition at line 1065 of file qrangemodeladapter.h.

◆ operator=() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename Row, if_assignable_range< std::initializer_list< Row > > = true>
QRangeModelAdapter & QRangeModelAdapter< Range, Protocol, Model >::operator= ( std::initializer_list< Row > newRange)
inline

Definition at line 1080 of file qrangemodeladapter.h.

◆ operator[]() [1/7]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::operator[] ( int row)
inline

Definition at line 1314 of file qrangemodeladapter.h.

◆ operator[]() [2/7]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_table< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::operator[] ( int row)
inline

Definition at line 1282 of file qrangemodeladapter.h.

◆ operator[]() [3/7]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_list< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::operator[] ( int row)
inline

Definition at line 1265 of file qrangemodeladapter.h.

◆ operator[]() [4/7]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, unless_list< I > = true>
decltype(auto) QRangeModelAdapter< Range, Protocol, Model >::operator[] ( int row) const
inline

Definition at line 1274 of file qrangemodeladapter.h.

◆ operator[]() [5/7]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_list< I > = true>
const_data_type QRangeModelAdapter< Range, Protocol, Model >::operator[] ( int row) const
inline

Definition at line 1260 of file qrangemodeladapter.h.

◆ operator[]() [6/7]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::operator[] ( QSpan< const int > path)
inline

Definition at line 1331 of file qrangemodeladapter.h.

◆ operator[]() [7/7]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
decltype(auto) QRangeModelAdapter< Range, Protocol, Model >::operator[] ( QSpan< const int > path) const
inline

Definition at line 1323 of file qrangemodeladapter.h.

◆ range()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
const range_type & QRangeModelAdapter< Range, Protocol, Model >::range ( ) const
inline

Definition at line 1044 of file qrangemodeladapter.h.

◆ removeColumn()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_canRemoveColumns< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::removeColumn ( int column)
inline

Definition at line 1475 of file qrangemodeladapter.h.

◆ removeColumns()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_canRemoveColumns< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::removeColumns ( int column,
int count )
inline

Definition at line 1481 of file qrangemodeladapter.h.

◆ removeRow() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_canRemoveRows< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::removeRow ( int row)
inline

Definition at line 1400 of file qrangemodeladapter.h.

◆ removeRow() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_canRemoveRows< I > = true, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::removeRow ( QSpan< const int > path)
inline

Definition at line 1406 of file qrangemodeladapter.h.

◆ removeRows() [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_canRemoveRows< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::removeRows ( int row,
int count )
inline

Definition at line 1412 of file qrangemodeladapter.h.

◆ removeRows() [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_canRemoveRows< I > = true, if_tree< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::removeRows ( QSpan< const int > path,
int count )
inline

Definition at line 1418 of file qrangemodeladapter.h.

◆ rowCount() [1/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
int QRangeModelAdapter< Range, Protocol, Model >::rowCount ( ) const
inline

Definition at line 1169 of file qrangemodeladapter.h.

◆ rowCount() [2/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
int QRangeModelAdapter< Range, Protocol, Model >::rowCount ( int row) const
inline

Definition at line 1175 of file qrangemodeladapter.h.

◆ rowCount() [3/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true>
int QRangeModelAdapter< Range, Protocol, Model >::rowCount ( QSpan< const int > path) const
inline

Definition at line 1181 of file qrangemodeladapter.h.

◆ setData() [1/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_list< I > = true, if_writable< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::setData ( int row,
const QVariant & value,
int role = Qt::EditRole )
inline

Definition at line 1211 of file qrangemodeladapter.h.

◆ setData() [2/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, unless_list< I > = true, if_writable< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::setData ( int row,
int column,
const QVariant & value,
int role = Qt::EditRole )
inline

Definition at line 1229 of file qrangemodeladapter.h.

◆ setData() [3/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_tree< I > = true, if_writable< I > = true>
bool QRangeModelAdapter< Range, Protocol, Model >::setData ( QSpan< const int > path,
int column,
const QVariant & value,
int role = Qt::EditRole )
inline

Definition at line 1247 of file qrangemodeladapter.h.

◆ setRange() [1/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename InputIterator, typename Sentinel, typename I = Impl, if_writable< I > = true>
void QRangeModelAdapter< Range, Protocol, Model >::setRange ( InputIterator first,
Sentinel last )
inline

Definition at line 1093 of file qrangemodeladapter.h.

◆ setRange() [2/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename NewRange = range_type, if_assignable_range< NewRange > = true>
void QRangeModelAdapter< Range, Protocol, Model >::setRange ( NewRange && newRange)
inline

Definition at line 1055 of file qrangemodeladapter.h.

◆ setRange() [3/3]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename Row, if_assignable_range< std::initializer_list< Row > > = true>
void QRangeModelAdapter< Range, Protocol, Model >::setRange ( std::initializer_list< Row > newRange)
inline

Definition at line 1072 of file qrangemodeladapter.h.

◆ size()

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
int QRangeModelAdapter< Range, Protocol, Model >::size ( ) const
inline

Definition at line 1131 of file qrangemodeladapter.h.

◆ comparesEqual [1/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
bool comparesEqual ( const QRangeModelAdapter< Range, Protocol, Model > & lhs,
const QRangeModelAdapter< Range, Protocol, Model > & rhs )
friend

Definition at line 1516 of file qrangemodeladapter.h.

◆ comparesEqual [2/2]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
bool comparesEqual ( const QRangeModelAdapter< Range, Protocol, Model > & lhs,
const range_type & rhs )
friend

Definition at line 1523 of file qrangemodeladapter.h.

◆ QRangeModel

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
friend class QRangeModel
friend

Definition at line 99 of file qrangemodeladapter.h.

◆ QRangeModelAdapter< asMutable_t< Range >, Protocol, Model >

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
friend class QRangeModelAdapter< asMutable_t< Range >, Protocol, Model >
friend

Definition at line 126 of file qrangemodeladapter.h.


The documentation for this class was generated from the following files: