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::AdapterStorage< Model, Impl > Struct Template Reference

#include <qrangemodeladapter_impl.h>

Inheritance diagram for QRangeModelDetails::AdapterStorage< Model, Impl >:
Collaboration diagram for QRangeModelDetails::AdapterStorage< Model, Impl >:

Public Member Functions

template<typename I = Impl, std::enable_if_t< I::protocol_traits::is_tree, bool > = true>
 AdapterStorage (const std::shared_ptr< QRangeModel > &model, const QModelIndex &root)
 AdapterStorage (Model *model)
const Impl * implementation () const
Impl * implementation ()
auto * operator-> ()
const auto * operator-> () const
Public Member Functions inherited from QRangeModelDetails::ParentIndex< Impl::protocol_traits::is_tree >
 ParentIndex (const QModelIndex &dummy={})
QModelIndex root () const

Public Attributes

std::shared_ptr< QRangeModelm_model

Static Public Attributes

static constexpr bool isRangeModel = std::is_same_v<Model, QRangeModel>

Detailed Description

template<typename Model, typename Impl>
struct QRangeModelDetails::AdapterStorage< Model, Impl >

Definition at line 369 of file qrangemodeladapter_impl.h.

Constructor & Destructor Documentation

◆ AdapterStorage() [1/2]

template<typename Model, typename Impl>
template<typename I = Impl, std::enable_if_t< I::protocol_traits::is_tree, bool > = true>
QRangeModelDetails::AdapterStorage< Model, Impl >::AdapterStorage ( const std::shared_ptr< QRangeModel > & model,
const QModelIndex & root )
inlineexplicit

Definition at line 379 of file qrangemodeladapter_impl.h.

◆ AdapterStorage() [2/2]

template<typename Model, typename Impl>
QRangeModelDetails::AdapterStorage< Model, Impl >::AdapterStorage ( Model * model)
inlineexplicit

Definition at line 384 of file qrangemodeladapter_impl.h.

References AdapterStorage().

Referenced by AdapterStorage().

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

Member Function Documentation

◆ implementation() [1/2]

template<typename Model, typename Impl>
Impl * QRangeModelDetails::AdapterStorage< Model, Impl >::implementation ( )
inline

Definition at line 393 of file qrangemodeladapter_impl.h.

◆ implementation() [2/2]

template<typename Model, typename Impl>
const Impl * QRangeModelDetails::AdapterStorage< Model, Impl >::implementation ( ) const
inline

Definition at line 388 of file qrangemodeladapter_impl.h.

◆ operator->() [1/2]

template<typename Model, typename Impl>
auto * QRangeModelDetails::AdapterStorage< Model, Impl >::operator-> ( )
inline

Definition at line 398 of file qrangemodeladapter_impl.h.

References isRangeModel.

◆ operator->() [2/2]

template<typename Model, typename Impl>
const auto * QRangeModelDetails::AdapterStorage< Model, Impl >::operator-> ( ) const
inline

Definition at line 406 of file qrangemodeladapter_impl.h.

References isRangeModel.

Member Data Documentation

◆ isRangeModel

template<typename Model, typename Impl>
bool QRangeModelDetails::AdapterStorage< Model, Impl >::isRangeModel = std::is_same_v<Model, QRangeModel>
staticconstexpr

Definition at line 374 of file qrangemodeladapter_impl.h.

Referenced by operator->(), and operator->().

◆ m_model

template<typename Model, typename Impl>
std::shared_ptr<QRangeModel> QRangeModelDetails::AdapterStorage< Model, Impl >::m_model

Definition at line 376 of file qrangemodeladapter_impl.h.


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