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
template<typename NewRange = range_type, if_assignable_range< NewRange > = true>
void assign (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 assign (std::initializer_list< Row > newRange)
template<typename Row, if_assignable_range< std::initializer_list< Row > > = true>
QRangeModelAdapteroperator= (std::initializer_list< Row > newRange)
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 15 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 1040 of file qrangemodeladapter.h.

◆ iterator

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

Definition at line 1041 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 1046 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 1055 of file qrangemodeladapter.h.

Member Function Documentation

◆ assign() [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 >::assign ( InputIterator first,
Sentinel last )
inline

Definition at line 1104 of file qrangemodeladapter.h.

◆ assign() [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 >::assign ( NewRange && newRange)
inline

Definition at line 1072 of file qrangemodeladapter.h.

◆ assign() [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 >::assign ( std::initializer_list< Row > newRange)
inline

Definition at line 1089 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 1328 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 1289 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 1267 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 1281 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 1259 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 1309 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 1298 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 1345 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 1337 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 1366 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 1354 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 1125 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 1116 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 1112 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 1118 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 1167 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 1203 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 1221 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 1227 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 1209 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 1239 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 1245 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 1131 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 1122 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 1191 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 1197 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 1142 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 1148 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 1154 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 1482 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 1489 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 1496 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 1384 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 1398 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 1390 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 1405 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 1413 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 1420 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 1061 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 1514 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 1527 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 1520 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 1535 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 1452 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 1465 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 1458 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 1472 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 1082 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 1097 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 1333 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 1294 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 1273 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 1286 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 1264 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 1350 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 1342 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 1066 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 1502 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 1508 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 1427 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 1433 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 1439 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 1445 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 1173 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 1179 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 1185 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 1215 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 1233 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 1251 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 1136 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 1543 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 1550 of file qrangemodeladapter.h.

◆ QRangeModel

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

Definition at line 101 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 128 of file qrangemodeladapter.h.


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