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
QRangeModelDetails::ModelData< ModelStorage, ItemType > Struct Template Reference

#include <qrangemodel_impl.h>

Inheritance diagram for QRangeModelDetails::ModelData< ModelStorage, ItemType >:
Collaboration diagram for QRangeModelDetails::ModelData< ModelStorage, ItemType >:

Public Types

using WrappedStorage = Storage<wrapped_t<ModelStorage>>
using iterator = typename WrappedStorage::iterator
using const_iterator = typename WrappedStorage::const_iterator
Public Types inherited from QRangeModelDetails::Storage< ModelStorage, typename >
using iterator = decltype(begin(m_model))
using const_iterator = decltype(begin(m_model))

Public Member Functions

auto model ()
auto model () const
template<typename Model = ModelStorage>
 ModelData (Model &&model)
Public Member Functions inherited from QRangeModelDetails::PropertyData< has_metaobject_v< ItemType > >
void invalidateCaches ()

Additional Inherited Members

Public Attributes inherited from QRangeModelDetails::Storage< ModelStorage, typename >
std::remove_const_t< ModelStorage > m_model
Static Public Attributes inherited from QRangeModelDetails::PropertyData< has_metaobject_v< ItemType > >
static constexpr bool cachesProperties

Detailed Description

template<typename ModelStorage, typename ItemType>
struct QRangeModelDetails::ModelData< ModelStorage, ItemType >

Definition at line 896 of file qrangemodel_impl.h.

Member Typedef Documentation

◆ const_iterator

template<typename ModelStorage, typename ItemType>
using QRangeModelDetails::ModelData< ModelStorage, ItemType >::const_iterator = typename WrappedStorage::const_iterator

Definition at line 901 of file qrangemodel_impl.h.

◆ iterator

template<typename ModelStorage, typename ItemType>
using QRangeModelDetails::ModelData< ModelStorage, ItemType >::iterator = typename WrappedStorage::iterator

Definition at line 900 of file qrangemodel_impl.h.

◆ WrappedStorage

template<typename ModelStorage, typename ItemType>
using QRangeModelDetails::ModelData< ModelStorage, ItemType >::WrappedStorage = Storage<wrapped_t<ModelStorage>>

Definition at line 899 of file qrangemodel_impl.h.

Constructor & Destructor Documentation

◆ ModelData()

template<typename ModelStorage, typename ItemType>
template<typename Model = ModelStorage>
QRangeModelDetails::ModelData< ModelStorage, ItemType >::ModelData ( Model && model)
inline

Definition at line 907 of file qrangemodel_impl.h.

Referenced by QRangeModelDetails::ModelData< std::conditional_t< std::is_pointer_v< Range >, Range, std::remove_reference_t< Range > >, typename row_traits::item_type >::ModelData().

Here is the caller graph for this function:

Member Function Documentation

◆ model() [1/2]

template<typename ModelStorage, typename ItemType>
auto QRangeModelDetails::ModelData< ModelStorage, ItemType >::model ( )
inline

Definition at line 903 of file qrangemodel_impl.h.

◆ model() [2/2]

template<typename ModelStorage, typename ItemType>
auto QRangeModelDetails::ModelData< ModelStorage, ItemType >::model ( ) const
inline

Definition at line 904 of file qrangemodel_impl.h.


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