![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qgenericitemmodel_impl.h>
Inheritance diagram for QGenericItemModelImpl< Structure, Range, Protocol >:
Collaboration diagram for QGenericItemModelImpl< Structure, Range, Protocol >:Classes | |
| struct | EmptyRowGenerator |
Public Types | |
| using | range_type = QGenericItemModelDetails::wrapped_t<Range> |
| using | row_reference = decltype(*QGenericItemModelDetails::begin(std::declval<range_type&>())) |
| using | const_row_reference = decltype(*QGenericItemModelDetails::cbegin(std::declval<range_type&>())) |
| using | row_type = std::remove_reference_t<row_reference> |
| using | protocol_type = QGenericItemModelDetails::wrapped_t<Protocol> |
Public Types inherited from QGenericItemModelImplBase | |
| enum | ConstOp { Index , Parent , Sibling , RowCount , ColumnCount , Flags , HeaderData , Data , ItemData } |
| enum | Op { Destroy , SetData , SetItemData , ClearItemData , InsertColumns , RemoveColumns , MoveColumns , InsertRows , RemoveRows , MoveRows } |
Public Member Functions | |
| QGenericItemModelImpl (Range &&model, Protocol &&protocol, QGenericItemModel *itemModel) | |
| 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, QVariant > | itemData (const QModelIndex &index) const |
| bool | setData (const QModelIndex &index, const QVariant &data, int role) |
| bool | setItemData (const QModelIndex &index, const QMap< int, QVariant > &data) |
| bool | clearItemData (const QModelIndex &index) |
| 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 | 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) |
Public Member Functions inherited from QGenericItemModelImplBase | |
| void | destroy () |
| template<typename Ret, typename ... Args> | |
| Ret | callConst (ConstOp op, const Args &...args) const |
| template<typename Ret, typename ... Args> | |
| Ret | call (Op op, const Args &...args) |
Static Public Member Functions | |
| static void | callConst (ConstOp op, const QGenericItemModelImplBase *that, void *r, const void *args) |
| static void | call (Op op, QGenericItemModelImplBase *that, void *r, const void *args) |
Protected Types | |
| using | Self = QGenericItemModelImpl<Structure, Range, Protocol> |
| using | range_features = QGenericItemModelDetails::range_traits<range_type> |
| using | wrapped_row_type = QGenericItemModelDetails::wrapped_t<row_type> |
| using | row_features = QGenericItemModelDetails::range_traits<wrapped_row_type> |
| using | row_traits = QGenericItemModelDetails::row_traits<std::remove_cv_t<wrapped_row_type>> |
| using | protocol_traits = QGenericItemModelDetails::protocol_traits<Range, protocol_type> |
| using | row_ptr = wrapped_row_type * |
| using | const_row_ptr = const wrapped_row_type * |
| using | ModelData |
Protected Member Functions | |
| Structure & | that () |
| const Structure & | that () const |
| ~QGenericItemModelImpl () | |
| template<typename F> | |
| bool | writeAt (const QModelIndex &index, F &&writer) |
| template<typename F> | |
| void | readAt (const QModelIndex &index, F &&reader) const |
| template<typename ItemType> | |
| QMetaProperty | roleProperty (int role) const |
| template<typename ItemType> | |
| QVariant | readRole (int role, ItemType *gadget) const |
| template<typename ItemType> | |
| QVariant | readRole (int role, const ItemType &gadget) const |
| template<typename ItemType> | |
| bool | writeRole (int role, ItemType *gadget, const QVariant &data) |
| template<typename ItemType> | |
| 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_type * | childRange (const QModelIndex &index) const |
| range_type * | childRange (const QModelIndex &index) |
| const protocol_type & | protocol () const |
| protocol_type & | protocol () |
Protected Member Functions inherited from QGenericItemModelImplBase | |
| template<typename Impl> | |
| QGenericItemModelImplBase (QGenericItemModel *itemModel, const Impl *) | |
| ~QGenericItemModelImplBase ()=default | |
| QModelIndex | createIndex (int row, int column, const void *ptr=nullptr) const |
| void | changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to) |
| QHash< int, QByteArray > | roleNames () const |
| void | dataChanged (const QModelIndex &from, const QModelIndex &to, const QList< int > &roles) |
| void | beginInsertColumns (const QModelIndex &parent, int start, int count) |
| void | endInsertColumns () |
| void | beginRemoveColumns (const QModelIndex &parent, int start, int count) |
| void | endRemoveColumns () |
| bool | beginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destParent, int destRow) |
| void | endMoveColumns () |
| void | beginInsertRows (const QModelIndex &parent, int start, int count) |
| void | endInsertRows () |
| void | beginRemoveRows (const QModelIndex &parent, int start, int count) |
| void | endRemoveRows () |
| bool | beginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destParent, int destRow) |
| void | endMoveRows () |
| QAbstractItemModel & | itemModel () |
| const QAbstractItemModel & | itemModel () const |
Static Protected Member Functions | |
| template<typename C> | |
| static constexpr int | size (const C &c) |
| static constexpr bool | isMutable () |
| static constexpr bool | dynamicRows () |
| static constexpr bool | dynamicColumns () |
| static constexpr bool | canInsertRows () |
| template<typename Value> | |
| static QVariant | read (const Value &value) |
| template<typename Value> | |
| static QVariant | read (Value *value) |
| template<typename Target> | |
| static bool | write (Target &target, const QVariant &value) |
| template<typename Target> | |
| static bool | write (Target *target, const QVariant &value) |
| template<typename ItemType> | |
| static QVariant | readProperty (const QMetaProperty &prop, ItemType *gadget) |
| template<typename ItemType> | |
| static QVariant | readProperty (int property, ItemType *gadget) |
| template<typename ItemType> | |
| static QVariant | readProperty (int property, const ItemType &gadget) |
| template<typename ItemType> | |
| static bool | writeProperty (const QMetaProperty &prop, ItemType *gadget, const QVariant &data) |
| template<typename ItemType> | |
| static bool | writeProperty (int property, ItemType *gadget, const QVariant &data) |
| template<typename ItemType> | |
| static bool | writeProperty (int property, ItemType &&gadget, const QVariant &data) |
| template<typename ItemType> | |
| static bool | resetProperty (int property, ItemType *object) |
| template<typename ItemType> | |
| static bool | resetProperty (int property, ItemType &&object) |
Static Protected Member Functions inherited from QGenericItemModelImplBase | |
| template<typename Tuple, typename F, size_t ... Is> | |
| static void | call_at (Tuple &&tuple, size_t idx, std::index_sequence< Is... >, F &&function) |
| template<typename T, typename F> | |
| static auto | for_element_at (T &&tuple, size_t idx, F &&function) |
| template<typename Tuple, std::size_t ... I> | |
| static constexpr std::array< QMetaType, sizeof...(I)> | makeMetaTypes (std::index_sequence< I... >) |
| template<typename T> | |
| static constexpr QMetaType | meta_type_at (size_t idx) |
| template<typename Class, typename T, typename F, size_t... I> | |
| static auto | apply (std::integer_sequence< size_t, I... >, Class *obj, F &&fn, T &&tuple) |
| template<typename Ret, typename Class, typename ... Args> | |
| static void | makeCall (QGenericItemModelImplBase *obj, Ret(Class::*&&fn)(Args...), void *ret, const void *args) |
| template<typename Ret, typename Class, typename ... Args> | |
| static void | makeCall (const QGenericItemModelImplBase *obj, Ret(Class::*&&fn)(Args...) const, void *ret, const void *args) |
Protected Attributes | |
| ModelData | m_data |
| Protocol | m_protocol |
Static Protected Attributes | |
| static constexpr int | static_row_count = QGenericItemModelDetails::static_size_v<range_type> |
| static constexpr bool | rows_are_raw_pointers = std::is_pointer_v<row_type> |
| static constexpr bool | rows_are_owning_or_raw_pointers |
| static constexpr int | static_column_count = QGenericItemModelDetails::static_size_v<row_type> |
| static constexpr bool | one_dimensional_range = static_column_count == 0 |
| template<typename T> | |
| static constexpr bool | has_metaobject |
Definition at line 663 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 729 of file qgenericitemmodel_impl.h.
| using QGenericItemModelImpl< Structure, Range, Protocol >::const_row_reference = decltype(*QGenericItemModelDetails::cbegin(std::declval<range_type&>())) |
Definition at line 669 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 735 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 707 of file qgenericitemmodel_impl.h.
| using QGenericItemModelImpl< Structure, Range, Protocol >::protocol_type = QGenericItemModelDetails::wrapped_t<Protocol> |
Definition at line 671 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 703 of file qgenericitemmodel_impl.h.
| using QGenericItemModelImpl< Structure, Range, Protocol >::range_type = QGenericItemModelDetails::wrapped_t<Range> |
Definition at line 667 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 705 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 728 of file qgenericitemmodel_impl.h.
| using QGenericItemModelImpl< Structure, Range, Protocol >::row_reference = decltype(*QGenericItemModelDetails::begin(std::declval<range_type&>())) |
Definition at line 668 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 706 of file qgenericitemmodel_impl.h.
| using QGenericItemModelImpl< Structure, Range, Protocol >::row_type = std::remove_reference_t<row_reference> |
Definition at line 670 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 680 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 704 of file qgenericitemmodel_impl.h.
|
inlineexplicit |
Definition at line 772 of file qgenericitemmodel_impl.h.
Referenced by QGenericItemModelImpl().
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 1419 of file qgenericitemmodel_impl.h.
|
inlinestatic |
Definition at line 804 of file qgenericitemmodel_impl.h.
Referenced by coverage_report.CoverageExecutor::build_binaries(), coverage_report.CoverageExecutor::generate_coverage(), coverage_report.CoverageExecutor::generate_html_report(), and coverage_report.CoverageExecutor::merge_raw_coverage_results().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 780 of file qgenericitemmodel_impl.h.
|
inlinestaticconstexprprotected |
Definition at line 1436 of file qgenericitemmodel_impl.h.
Referenced by insertRows().
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 1676 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1667 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 1186 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 925 of file qgenericitemmodel_impl.h.
|
inlinestaticconstexprprotected |
Definition at line 724 of file qgenericitemmodel_impl.h.
Referenced by moveColumns(), readAt(), and writeAt().
Here is the caller graph for this function:
|
inlinestaticconstexprprotected |
Definition at line 723 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 859 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 898 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 831 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 1218 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 1299 of file qgenericitemmodel_impl.h.
|
inlinestaticconstexprprotected |
Definition at line 709 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 961 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 1259 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 1377 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1687 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1686 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1496 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1504 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1483 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1567 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1584 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1575 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1561 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1547 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 1238 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 1331 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1649 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1629 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1537 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1661 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1655 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 1021 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 1081 of file qgenericitemmodel_impl.h.
|
inline |
Definition at line 841 of file qgenericitemmodel_impl.h.
|
inlinestaticconstexprprotected |
Definition at line 685 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 681 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 682 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1516 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1529 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1457 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1607 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1623 of file qgenericitemmodel_impl.h.
|
inlinestaticprotected |
Definition at line 1615 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1601 of file qgenericitemmodel_impl.h.
|
inlineprotected |
Definition at line 1590 of file qgenericitemmodel_impl.h.
|
staticconstexprprotected |
Definition at line 732 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 1689 of file qgenericitemmodel_impl.h.
|
protected |
Definition at line 1690 of file qgenericitemmodel_impl.h.
Referenced by protocol(), and protocol().
|
staticconstexprprotected |
Definition at line 721 of file qgenericitemmodel_impl.h.
|
staticconstexprprotected |
Definition at line 718 of file qgenericitemmodel_impl.h.
Referenced by insertRows().
|
staticconstexprprotected |
Definition at line 717 of file qgenericitemmodel_impl.h.
|
staticconstexprprotected |
Definition at line 720 of file qgenericitemmodel_impl.h.
Referenced by dynamicColumns(), flags(), and headerData().
|
staticconstexprprotected |
Definition at line 716 of file qgenericitemmodel_impl.h.
Referenced by dynamicRows().