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, true, false >
struct  RowGetter< Reference, const_row_type, false, true >
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>
int rowCount (const QModelIndex &index) 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_tree< I > = true>
constexpr bool hasChildren (const QModelIndex &index) 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)
QVariant data (const QModelIndex &index) const
QVariant data (const QModelIndex &index, int role) const
template<typename I = Impl, if_writable< I > = true>
bool setData (const QModelIndex &index, 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)
const_data_type at (const QModelIndex &index) const
template<typename I = Impl, if_writable< I > = true>
auto at (const QModelIndex &index)
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 I = Impl, if_canInsertRows< I > = true, if_tree< I > = true>
bool insertRow (int before, const QModelIndex &parent)
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 D = row_type, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row< D > = true, if_tree< I > = true>
bool insertRow (int before, const QModelIndex &parent, 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 C, typename I = Impl, if_canInsertRows< I > = true, if_compatible_row_range< C > = true, if_tree< I > = true>
bool insertRows (int before, const QModelIndex &parent, 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, if_tree< I > = true>
bool removeRow (int row, const QModelIndex &parent)
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 I = Impl, if_canRemoveRows< I > = true, if_tree< I > = true>
bool removeRows (int row, int count, const QModelIndex &parent)
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 moveRow (const QModelIndex &sourceParent, int sourceRow, const QModelIndex &destinationParent, int destinationChild)
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, typename F = range_features, if_canMoveItems< F > = true, if_tree< I > = true>
bool moveRows (const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild)
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/13]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
template<typename I = Impl, if_writable< I > = true>
auto QRangeModelAdapter< Range, Protocol, Model >::at ( const QModelIndex & index)
inline

Definition at line 1418 of file qrangemodeladapter.h.

◆ at() [2/13]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
const_data_type QRangeModelAdapter< Range, Protocol, Model >::at ( const QModelIndex & index) const
inline

Definition at line 1411 of file qrangemodeladapter.h.

◆ at() [3/13]

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 1356 of file qrangemodeladapter.h.

◆ at() [4/13]

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 1317 of file qrangemodeladapter.h.

◆ at() [5/13]

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 1295 of file qrangemodeladapter.h.

◆ at() [6/13]

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 1309 of file qrangemodeladapter.h.

◆ at() [7/13]

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 1287 of file qrangemodeladapter.h.

◆ at() [8/13]

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 1337 of file qrangemodeladapter.h.

◆ at() [9/13]

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 1326 of file qrangemodeladapter.h.

◆ at() [10/13]

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 1373 of file qrangemodeladapter.h.

◆ at() [11/13]

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 1365 of file qrangemodeladapter.h.

◆ at() [12/13]

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 1394 of file qrangemodeladapter.h.

◆ at() [13/13]

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 1382 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/8]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
QVariant QRangeModelAdapter< Range, Protocol, Model >::data ( const QModelIndex & index) const
inline

Definition at line 1268 of file qrangemodeladapter.h.

◆ data() [2/8]

template<typename Range, typename Protocol = void, typename Model = QRangeModel>
QVariant QRangeModelAdapter< Range, Protocol, Model >::data ( const QModelIndex & index,
int role ) const
inline

Definition at line 1273 of file qrangemodeladapter.h.

◆ data() [3/8]

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 1215 of file qrangemodeladapter.h.

◆ data() [4/8]

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 1233 of file qrangemodeladapter.h.

◆ data() [5/8]

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 1239 of file qrangemodeladapter.h.

◆ data() [6/8]

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 1221 of file qrangemodeladapter.h.

◆ data() [7/8]

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 1251 of file qrangemodeladapter.h.

◆ data() [8/8]

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 1257 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/3]

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

Definition at line 1209 of file qrangemodeladapter.h.

◆ hasChildren() [2/3]

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 1197 of file qrangemodeladapter.h.

◆ hasChildren() [3/3]

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 1203 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 1571 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 1578 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 1585 of file qrangemodeladapter.h.

◆ insertRow() [1/6]

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 1425 of file qrangemodeladapter.h.

◆ insertRow() [2/6]

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 ( int before,
const QModelIndex & parent )
inline

Definition at line 1438 of file qrangemodeladapter.h.

◆ insertRow() [3/6]

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 ( int before,
const QModelIndex & parent,
D && data )
inline

Definition at line 1460 of file qrangemodeladapter.h.

◆ insertRow() [4/6]

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 1445 of file qrangemodeladapter.h.

◆ insertRow() [5/6]

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 1431 of file qrangemodeladapter.h.

◆ insertRow() [6/6]

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 1452 of file qrangemodeladapter.h.

◆ insertRows() [1/3]

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 1467 of file qrangemodeladapter.h.

◆ insertRows() [2/3]

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 ( int before,
const QModelIndex & parent,
C && data )
inline

Definition at line 1482 of file qrangemodeladapter.h.

◆ insertRows() [3/3]

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 1474 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 1603 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 1616 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 1609 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 1624 of file qrangemodeladapter.h.

◆ moveRow() [1/3]

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 ( const QModelIndex & sourceParent,
int sourceRow,
const QModelIndex & destinationParent,
int destinationChild )
inline

Definition at line 1544 of file qrangemodeladapter.h.

◆ moveRow() [2/3]

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 1524 of file qrangemodeladapter.h.

◆ moveRow() [3/3]

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 1537 of file qrangemodeladapter.h.

◆ moveRows() [1/3]

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 ( const QModelIndex & sourceParent,
int sourceRow,
int count,
const QModelIndex & destinationParent,
int destinationChild )
inline

Definition at line 1563 of file qrangemodeladapter.h.

◆ moveRows() [2/3]

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 1530 of file qrangemodeladapter.h.

◆ moveRows() [3/3]

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 1552 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 1361 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 1322 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 1301 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 1314 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 1292 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 1378 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 1370 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 1591 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 1597 of file qrangemodeladapter.h.

◆ removeRow() [1/3]

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 1488 of file qrangemodeladapter.h.

◆ removeRow() [2/3]

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 ( int row,
const QModelIndex & parent )
inline

Definition at line 1500 of file qrangemodeladapter.h.

◆ removeRow() [3/3]

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 1494 of file qrangemodeladapter.h.

◆ removeRows() [1/3]

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 1506 of file qrangemodeladapter.h.

◆ removeRows() [2/3]

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 ( int row,
int count,
const QModelIndex & parent )
inline

Definition at line 1518 of file qrangemodeladapter.h.

◆ removeRows() [3/3]

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 1512 of file qrangemodeladapter.h.

◆ rowCount() [1/4]

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/4]

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

Definition at line 1191 of file qrangemodeladapter.h.

◆ rowCount() [3/4]

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() [4/4]

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/4]

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

Definition at line 1279 of file qrangemodeladapter.h.

◆ setData() [2/4]

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 1227 of file qrangemodeladapter.h.

◆ setData() [3/4]

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 1245 of file qrangemodeladapter.h.

◆ setData() [4/4]

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 1263 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 1632 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 1639 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: