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
QGenericTableItemModelImpl< Range > Class Template Reference

#include <qrangemodel_impl.h>

Inheritance diagram for QGenericTableItemModelImpl< Range >:
Collaboration diagram for QGenericTableItemModelImpl< Range >:

Public Types

using range_type = typename Base::range_type
using range_features = typename Base::range_features
using row_type = typename Base::row_type
using const_row_ptr = typename Base::const_row_ptr
using row_traits = typename Base::row_traits
using row_features = typename Base::row_features
Public Types inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
using range_type
using range_features
using row_reference
using row_type
using wrapped_row_type
using row_features
using row_traits
using protocol_type
using protocol_traits
using ModelData
using ProtocolStorage
using const_row_reference
using Override
using Destroy
using Index
using Parent
using Sibling
using RowCount
using ColumnCount
using Flags
using HeaderData
using Data
using ItemData
using RoleNames
using InvalidateCaches
using SetHeaderData
using SetData
using SetItemData
using ClearItemData
using InsertColumns
using RemoveColumns
using MoveColumns
using InsertRows
using RemoveRows
using MoveRows
using MultiData
Public Types inherited from Interface
using Container = QVarLengthArray<Interface, 1>

Public Member Functions

 QGenericTableItemModelImpl (Range &&model, QRangeModel *itemModel)
Public Member Functions inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
 QRangeModelImpl (Range &&model, QRangeModelDetails::table_protocol_t< Range > &&protocol, QRangeModel *itemModel)
void invalidateCaches ()
bool setHeaderData (int, Qt::Orientation, const QVariant &, int)
QModelIndex index (int row, int column, const QModelIndex &parent) const
QModelIndex sibling (int row, int column, const QModelIndex &index) const
Qt::ItemFlags flags (const QModelIndex &index) const
QVariant headerData (int section, Qt::Orientation orientation, int role) const
QVariant data (const QModelIndex &index, int role) const
QMap< int, QVariantitemData (const QModelIndex &index) const
void multiData (const QModelIndex &index, QModelRoleDataSpan roleDataSpan) const
bool setData (const QModelIndex &index, const QVariant &data, int role)
void updateTarget (LHS &org, RHS &&copy) noexcept
void updateTarget (LHS *org, RHS &&copy) noexcept
bool setItemData (const QModelIndex &index, const QMap< int, QVariant > &data)
bool clearItemData (const QModelIndex &index)
QHash< int, QByteArrayroleNames () const
bool doInsertColumns (int column, int count, const QModelIndex &parent, InsertFn insertFn)
bool insertColumns (int column, int count, const QModelIndex &parent)
bool removeColumns (int column, int count, const QModelIndex &parent)
bool moveColumns (const QModelIndex &sourceParent, int sourceColumn, int count, const QModelIndex &destParent, int destColumn)
bool doInsertRows (int row, int count, const QModelIndex &parent, InsertFn &&insertFn)
bool insertRows (int row, int count, const QModelIndex &parent)
bool removeRows (int row, int count, const QModelIndex &parent={})
bool moveRows (const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destParent, int destRow)
const protocol_typeprotocol () const
protocol_typeprotocol ()
QModelIndex parent (const QModelIndex &child) const
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &parent) const
void destroy ()
Public Member Functions inherited from Interface
 Interface ()=default
 Interface (const QCborValue &cbor)

Protected Member Functions

QModelIndex indexImpl (int row, int column, const QModelIndex &) const
QModelIndex parentImpl (const QModelIndex &) const
int rowCountImpl (const QModelIndex &parent) const
int columnCountImpl (const QModelIndex &parent) const
constexpr bool moveRowsAcross (const QModelIndex &, int, int, const QModelIndex &, int) noexcept
auto makeEmptyRow (typename Base::row_ptr)
template<typename It, typename Sentinel>
void deleteRemovedRows (It &&begin, Sentinel &&end)
decltype(auto) rowDataImpl (const QModelIndex &index) const
decltype(auto) rowDataImpl (const QModelIndex &index)
const range_typechildRangeImpl (const QModelIndex &) const
range_typechildRangeImpl (const QModelIndex &)
const range_typechildrenOf (const_row_ptr row) const
void resetParentInChildren (range_type *)
Protected Member Functions inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
QGenericTableItemModelImpl< Range > & that ()
const QGenericTableItemModelImpl< Range > & that () const
 ~QRangeModelImpl ()
void deleteOwnedRows ()
bool writeAt (const QModelIndex &index, F &&writer)
void readAt (const QModelIndex &index, F &&reader) const
QMetaProperty roleProperty (int role) const
QVariant readRole (int role, ItemType *gadget) const
QVariant readRole (int role, const ItemType &gadget) const
bool writeRole (int role, ItemType *gadget, const QVariant &data)
bool writeRole (int role, ItemType &&gadget, const QVariant &data)
const_row_reference rowData (const QModelIndex &index) const
row_reference rowData (const QModelIndex &index)
const range_typechildRange (const QModelIndex &index) const
range_typechildRange (const QModelIndex &index)
Protected Member Functions inherited from QtPrivate::QQuasiVirtualSubclass< Subclass, Interface >
template<typename... Args>
 QQuasiVirtualSubclass (Args &&... args)

Static Protected Member Functions

static constexpr Qt::ItemFlags defaultFlags ()
static constexpr bool canInsertRowsImpl ()
static constexpr bool canRemoveRowsImpl ()
static constexpr bool canMoveColumns (const QModelIndex &source, const QModelIndex &destination)
static constexpr bool canMoveRows (const QModelIndex &source, const QModelIndex &destination)
Static Protected Member Functions inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
static constexpr int size (const C &c)
static constexpr bool canInsertRows ()
static constexpr bool canRemoveRows ()
static QVariant read (const Value &value)
static QVariant read (Value *value)
static bool write (Target &target, const QVariant &value)
static bool write (Target *target, const QVariant &value)
static QVariant readProperty (const QMetaProperty &prop, ItemType *gadget)
static QVariant readProperty (int property, ItemType *gadget)
static QVariant readProperty (int property, const ItemType &gadget)
static bool writeProperty (const QMetaProperty &prop, ItemType *gadget, const QVariant &data)
static bool writeProperty (int property, ItemType *gadget, const QVariant &data)
static bool writeProperty (int property, ItemType &&gadget, const QVariant &data)
static bool resetProperty (int property, ItemType *object)
static bool resetProperty (int property, ItemType &&object)

Friends

class QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >

Additional Inherited Members

Static Public Member Functions inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
static constexpr bool isMutable ()
static constexpr bool dynamicRows ()
static constexpr bool dynamicColumns ()
Public Attributes inherited from Interface
QAnyStringView className
Protected Types inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
using Self
using Ancestor
using row_ptr
using const_row_ptr
Protected Attributes inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
ModelData m_data
Static Protected Attributes inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
static constexpr int static_row_count
static constexpr bool rows_are_raw_pointers
static constexpr bool rows_are_owning_or_raw_pointers
static constexpr int static_column_count
static constexpr bool one_dimensional_range
static constexpr bool has_metaobject

Detailed Description

template<typename Range>
class QGenericTableItemModelImpl< Range >

Definition at line 2671 of file qrangemodel_impl.h.

Member Typedef Documentation

◆ const_row_ptr

template<typename Range>
using QGenericTableItemModelImpl< Range >::const_row_ptr = typename Base::const_row_ptr

Definition at line 2683 of file qrangemodel_impl.h.

◆ range_features

template<typename Range>
using QGenericTableItemModelImpl< Range >::range_features = typename Base::range_features

Definition at line 2681 of file qrangemodel_impl.h.

◆ range_type

template<typename Range>
using QGenericTableItemModelImpl< Range >::range_type = typename Base::range_type

Definition at line 2680 of file qrangemodel_impl.h.

◆ row_features

template<typename Range>
using QGenericTableItemModelImpl< Range >::row_features = typename Base::row_features

Definition at line 2685 of file qrangemodel_impl.h.

◆ row_traits

template<typename Range>
using QGenericTableItemModelImpl< Range >::row_traits = typename Base::row_traits

Definition at line 2684 of file qrangemodel_impl.h.

◆ row_type

template<typename Range>
using QGenericTableItemModelImpl< Range >::row_type = typename Base::row_type

Definition at line 2682 of file qrangemodel_impl.h.

Constructor & Destructor Documentation

◆ QGenericTableItemModelImpl()

template<typename Range>
QGenericTableItemModelImpl< Range >::QGenericTableItemModelImpl ( Range && model,
QRangeModel * itemModel )
inlineexplicit

Definition at line 2687 of file qrangemodel_impl.h.

References QGenericTableItemModelImpl().

Referenced by QGenericTableItemModelImpl().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ canInsertRowsImpl()

template<typename Range>
constexpr bool QGenericTableItemModelImpl< Range >::canInsertRowsImpl ( )
inlinestaticconstexprprotected

Definition at line 2741 of file qrangemodel_impl.h.

◆ canMoveColumns()

template<typename Range>
constexpr bool QGenericTableItemModelImpl< Range >::canMoveColumns ( const QModelIndex & source,
const QModelIndex & destination )
inlinestaticconstexprprotected

Definition at line 2751 of file qrangemodel_impl.h.

◆ canMoveRows()

template<typename Range>
constexpr bool QGenericTableItemModelImpl< Range >::canMoveRows ( const QModelIndex & source,
const QModelIndex & destination )
inlinestaticconstexprprotected

Definition at line 2756 of file qrangemodel_impl.h.

◆ canRemoveRowsImpl()

template<typename Range>
constexpr bool QGenericTableItemModelImpl< Range >::canRemoveRowsImpl ( )
inlinestaticconstexprprotected

Definition at line 2746 of file qrangemodel_impl.h.

◆ childRangeImpl() [1/2]

template<typename Range>
range_type * QGenericTableItemModelImpl< Range >::childRangeImpl ( const QModelIndex & )
inlineprotected

Definition at line 2807 of file qrangemodel_impl.h.

◆ childRangeImpl() [2/2]

template<typename Range>
const range_type * QGenericTableItemModelImpl< Range >::childRangeImpl ( const QModelIndex & ) const
inlineprotected

Definition at line 2802 of file qrangemodel_impl.h.

◆ childrenOf()

template<typename Range>
const range_type & QGenericTableItemModelImpl< Range >::childrenOf ( const_row_ptr row) const
inlineprotected

Definition at line 2812 of file qrangemodel_impl.h.

◆ columnCountImpl()

template<typename Range>
int QGenericTableItemModelImpl< Range >::columnCountImpl ( const QModelIndex & parent) const
inlineprotected

Definition at line 2719 of file qrangemodel_impl.h.

◆ defaultFlags()

template<typename Range>
constexpr Qt::ItemFlags QGenericTableItemModelImpl< Range >::defaultFlags ( )
inlinestaticconstexprprotected

Definition at line 2736 of file qrangemodel_impl.h.

◆ deleteRemovedRows()

template<typename Range>
template<typename It, typename Sentinel>
void QGenericTableItemModelImpl< Range >::deleteRemovedRows ( It && begin,
Sentinel && end )
inlineprotected

Definition at line 2782 of file qrangemodel_impl.h.

◆ indexImpl()

template<typename Range>
QModelIndex QGenericTableItemModelImpl< Range >::indexImpl ( int row,
int column,
const QModelIndex &  ) const
inlineprotected

Definition at line 2692 of file qrangemodel_impl.h.

◆ makeEmptyRow()

template<typename Range>
auto QGenericTableItemModelImpl< Range >::makeEmptyRow ( typename Base::row_ptr )
inlineprotected

Definition at line 2768 of file qrangemodel_impl.h.

◆ moveRowsAcross()

template<typename Range>
bool QGenericTableItemModelImpl< Range >::moveRowsAcross ( const QModelIndex & ,
int ,
int ,
const QModelIndex & ,
int  )
inlineconstexprprotectednoexcept

Definition at line 2761 of file qrangemodel_impl.h.

◆ parentImpl()

template<typename Range>
QModelIndex QGenericTableItemModelImpl< Range >::parentImpl ( const QModelIndex & ) const
inlineprotected

Definition at line 2707 of file qrangemodel_impl.h.

◆ resetParentInChildren()

template<typename Range>
void QGenericTableItemModelImpl< Range >::resetParentInChildren ( range_type * )
inlineprotected

Definition at line 2818 of file qrangemodel_impl.h.

◆ rowCountImpl()

template<typename Range>
int QGenericTableItemModelImpl< Range >::rowCountImpl ( const QModelIndex & parent) const
inlineprotected

Definition at line 2712 of file qrangemodel_impl.h.

◆ rowDataImpl() [1/2]

template<typename Range>
decltype(auto) QGenericTableItemModelImpl< Range >::rowDataImpl ( const QModelIndex & index)
inlineprotected

Definition at line 2796 of file qrangemodel_impl.h.

◆ rowDataImpl() [2/2]

template<typename Range>
decltype(auto) QGenericTableItemModelImpl< Range >::rowDataImpl ( const QModelIndex & index) const
inlineprotected

Definition at line 2790 of file qrangemodel_impl.h.

◆ QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >

template<typename Range>
friend class QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
friend

Definition at line 2662 of file qrangemodel_impl.h.


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