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
QGenericItemModelImplBase Class Reference

#include <qgenericitemmodel_impl.h>

+ Inheritance diagram for QGenericItemModelImplBase:
+ Collaboration diagram for QGenericItemModelImplBase:

Public Types

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

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)
 

Protected Member Functions

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, QByteArrayroleNames () 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 ()
 
QAbstractItemModelitemModel ()
 
const QAbstractItemModelitemModel () const
 

Static Protected Member Functions

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)
 

Detailed Description

Definition at line 506 of file qgenericitemmodel_impl.h.

Member Enumeration Documentation

◆ ConstOp

Enumerator
Index 
Parent 
Sibling 
RowCount 
ColumnCount 
Flags 
HeaderData 
Data 
ItemData 

Definition at line 570 of file qgenericitemmodel_impl.h.

◆ Op

Enumerator
Destroy 
SetData 
SetItemData 
ClearItemData 
InsertColumns 
RemoveColumns 
MoveColumns 
InsertRows 
RemoveRows 
MoveRows 

Definition at line 582 of file qgenericitemmodel_impl.h.

Constructor & Destructor Documentation

◆ QGenericItemModelImplBase()

template<typename Impl>
QGenericItemModelImplBase::QGenericItemModelImplBase ( QGenericItemModel * itemModel,
const Impl *  )
inlineexplicitprotected

Definition at line 614 of file qgenericitemmodel_impl.h.

References QGenericItemModelImplBase().

Referenced by QGenericItemModelImplBase().

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

◆ ~QGenericItemModelImplBase()

QGenericItemModelImplBase::~QGenericItemModelImplBase ( )
protecteddefault

Member Function Documentation

◆ apply()

template<typename Class, typename T, typename F, size_t... I>
static auto QGenericItemModelImplBase::apply ( std::integer_sequence< size_t, I... > ,
Class * obj,
F && fn,
T && tuple )
inlinestaticprotected

Definition at line 548 of file qgenericitemmodel_impl.h.

◆ beginInsertColumns()

void QGenericItemModelImplBase::beginInsertColumns ( const QModelIndex & parent,
int start,
int count )
inlineprotected

Definition at line 129 of file qgenericitemmodel.h.

◆ beginInsertRows()

void QGenericItemModelImplBase::beginInsertRows ( const QModelIndex & parent,
int start,
int count )
inlineprotected

Definition at line 157 of file qgenericitemmodel.h.

◆ beginMoveColumns()

bool QGenericItemModelImplBase::beginMoveColumns ( const QModelIndex & sourceParent,
int sourceFirst,
int sourceLast,
const QModelIndex & destParent,
int destRow )
inlineprotected

Definition at line 145 of file qgenericitemmodel.h.

◆ beginMoveRows()

bool QGenericItemModelImplBase::beginMoveRows ( const QModelIndex & sourceParent,
int sourceFirst,
int sourceLast,
const QModelIndex & destParent,
int destRow )
inlineprotected

Definition at line 173 of file qgenericitemmodel.h.

◆ beginRemoveColumns()

void QGenericItemModelImplBase::beginRemoveColumns ( const QModelIndex & parent,
int start,
int count )
inlineprotected

Definition at line 137 of file qgenericitemmodel.h.

◆ beginRemoveRows()

void QGenericItemModelImplBase::beginRemoveRows ( const QModelIndex & parent,
int start,
int count )
inlineprotected

Definition at line 165 of file qgenericitemmodel.h.

◆ call()

template<typename Ret, typename ... Args>
Ret QGenericItemModelImplBase::call ( Op op,
const Args &... args )
inline

Definition at line 652 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:

◆ call_at()

template<typename Tuple, typename F, size_t ... Is>
static void QGenericItemModelImplBase::call_at ( Tuple && tuple,
size_t idx,
std::index_sequence< Is... > ,
F && function )
inlinestaticprotected

Definition at line 512 of file qgenericitemmodel_impl.h.

◆ callConst()

template<typename Ret, typename ... Args>
Ret QGenericItemModelImplBase::callConst ( ConstOp op,
const Args &... args ) const
inline

Definition at line 643 of file qgenericitemmodel_impl.h.

◆ changePersistentIndexList()

void QGenericItemModelImplBase::changePersistentIndexList ( const QModelIndexList & from,
const QModelIndexList & to )
inlineprotected

Definition at line 115 of file qgenericitemmodel.h.

◆ createIndex()

QModelIndex QGenericItemModelImplBase::createIndex ( int row,
int column,
const void * ptr = nullptr ) const
inlineprotected

Definition at line 111 of file qgenericitemmodel.h.

◆ dataChanged()

void QGenericItemModelImplBase::dataChanged ( const QModelIndex & from,
const QModelIndex & to,
const QList< int > & roles )
inlineprotected

Definition at line 124 of file qgenericitemmodel.h.

◆ destroy()

void QGenericItemModelImplBase::destroy ( )
inline

Definition at line 595 of file qgenericitemmodel_impl.h.

References Destroy.

◆ endInsertColumns()

void QGenericItemModelImplBase::endInsertColumns ( )
inlineprotected

Definition at line 133 of file qgenericitemmodel.h.

Referenced by QGenericItemModelImpl< Structure, Range, Protocol >::insertColumns().

+ Here is the caller graph for this function:

◆ endInsertRows()

void QGenericItemModelImplBase::endInsertRows ( )
inlineprotected

Definition at line 161 of file qgenericitemmodel.h.

Referenced by QGenericItemModelImpl< Structure, Range, Protocol >::insertRows().

+ Here is the caller graph for this function:

◆ endMoveColumns()

void QGenericItemModelImplBase::endMoveColumns ( )
inlineprotected

Definition at line 152 of file qgenericitemmodel.h.

Referenced by QGenericItemModelImpl< Structure, Range, Protocol >::moveColumns().

+ Here is the caller graph for this function:

◆ endMoveRows()

void QGenericItemModelImplBase::endMoveRows ( )
inlineprotected

Definition at line 179 of file qgenericitemmodel.h.

Referenced by QGenericItemModelImpl< Structure, Range, Protocol >::moveRows().

+ Here is the caller graph for this function:

◆ endRemoveColumns()

void QGenericItemModelImplBase::endRemoveColumns ( )
inlineprotected

Definition at line 141 of file qgenericitemmodel.h.

Referenced by QGenericItemModelImpl< Structure, Range, Protocol >::removeColumns().

+ Here is the caller graph for this function:

◆ endRemoveRows()

void QGenericItemModelImplBase::endRemoveRows ( )
inlineprotected

Definition at line 169 of file qgenericitemmodel.h.

◆ for_element_at()

template<typename T, typename F>
static auto QGenericItemModelImplBase::for_element_at ( T && tuple,
size_t idx,
F && function )
inlinestaticprotected

Definition at line 521 of file qgenericitemmodel_impl.h.

◆ itemModel() [1/2]

QAbstractItemModel & QGenericItemModelImplBase::itemModel ( )
inlineprotected

Definition at line 183 of file qgenericitemmodel.h.

◆ itemModel() [2/2]

const QAbstractItemModel & QGenericItemModelImplBase::itemModel ( ) const
inlineprotected

Definition at line 187 of file qgenericitemmodel.h.

◆ makeCall() [1/2]

template<typename Ret, typename Class, typename ... Args>
static void QGenericItemModelImplBase::makeCall ( const QGenericItemModelImplBase * obj,
Ret(Class::*&&fn)(Args...) const ,
void * ret,
const void * args )
inlinestaticprotected

Definition at line 561 of file qgenericitemmodel_impl.h.

◆ makeCall() [2/2]

template<typename Ret, typename Class, typename ... Args>
static void QGenericItemModelImplBase::makeCall ( QGenericItemModelImplBase * obj,
Ret(Class::*&&fn)(Args...) ,
void * ret,
const void * args )
inlinestaticprotected

Definition at line 553 of file qgenericitemmodel_impl.h.

◆ makeMetaTypes()

template<typename Tuple, std::size_t ... I>
static constexpr std::array< QMetaType, sizeof...(I)> QGenericItemModelImplBase::makeMetaTypes ( std::index_sequence< I... > )
inlinestaticconstexprprotected

Definition at line 533 of file qgenericitemmodel_impl.h.

◆ meta_type_at()

template<typename T>
static constexpr QMetaType QGenericItemModelImplBase::meta_type_at ( size_t idx)
inlinestaticconstexprprotected

Definition at line 538 of file qgenericitemmodel_impl.h.

◆ roleNames()

QHash< int, QByteArray > QGenericItemModelImplBase::roleNames ( ) const
inlineprotected

Definition at line 120 of file qgenericitemmodel.h.


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