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
QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator Struct Reference

#include <qrangemodel_impl.h>

Collaboration diagram for QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator:

Public Types

using base_iterator = QModelIndexList::const_iterator
using item_type
using difference_type = typename base_iterator::difference_type
using iterator_category = std::bidirectional_iterator_tag
using value_type = QRangeModelDetails::MimeDataEntry<item_type>
using const_reference = value_type

Public Member Functions

const_reference operator* () const
MimeDataItemIteratoroperator++ ()
MimeDataItemIterator operator++ (int)
MimeDataItemIteratoroperator-- ()
MimeDataItemIterator operator-- (int)
MimeDataItemIterator operator- (difference_type n) const
bool operator== (const MimeDataItemIterator &other) const
bool operator!= (const MimeDataItemIterator &other) const

Public Attributes

base_iterator m_it
const QRangeModelImplm_model

Detailed Description

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
struct QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator

Definition at line 3133 of file qrangemodel_impl.h.

Member Typedef Documentation

◆ base_iterator

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
using QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::base_iterator = QModelIndexList::const_iterator

Definition at line 3135 of file qrangemodel_impl.h.

◆ const_reference

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
using QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::const_reference = value_type

Definition at line 3143 of file qrangemodel_impl.h.

◆ difference_type

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
using QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::difference_type = typename base_iterator::difference_type

Definition at line 3139 of file qrangemodel_impl.h.

◆ item_type

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
using QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::item_type
Initial value:
std::conditional_t<std::is_void_v<typename row_traits::item_type>,
void *, typename row_traits::item_type>
std::conditional_t< is_range, typename range_traits< std::remove_cv_t< wrapped_row_type > >::value_type, std::remove_cv_t< wrapped_row_type > > item_type

Definition at line 3137 of file qrangemodel_impl.h.

◆ iterator_category

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
using QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::iterator_category = std::bidirectional_iterator_tag

Definition at line 3140 of file qrangemodel_impl.h.

◆ value_type

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
using QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::value_type = QRangeModelDetails::MimeDataEntry<item_type>

Definition at line 3141 of file qrangemodel_impl.h.

Member Function Documentation

◆ operator!=()

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
bool QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::operator!= ( const MimeDataItemIterator & other) const
inline

Definition at line 3178 of file qrangemodel_impl.h.

◆ operator*()

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
const_reference QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::operator* ( ) const
inline

Definition at line 3146 of file qrangemodel_impl.h.

References m_model.

◆ operator++() [1/2]

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
MimeDataItemIterator & QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::operator++ ( )
inline

Definition at line 3166 of file qrangemodel_impl.h.

◆ operator++() [2/2]

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
MimeDataItemIterator QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::operator++ ( int )
inline

Definition at line 3167 of file qrangemodel_impl.h.

◆ operator-()

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
MimeDataItemIterator QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::operator- ( difference_type n) const
inline

Definition at line 3172 of file qrangemodel_impl.h.

◆ operator--() [1/2]

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
MimeDataItemIterator & QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::operator-- ( )
inline

Definition at line 3169 of file qrangemodel_impl.h.

◆ operator--() [2/2]

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
MimeDataItemIterator QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::operator-- ( int )
inline

Definition at line 3170 of file qrangemodel_impl.h.

◆ operator==()

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
bool QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::operator== ( const MimeDataItemIterator & other) const
inline

Definition at line 3177 of file qrangemodel_impl.h.

Member Data Documentation

◆ m_it

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
base_iterator QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::m_it

Definition at line 3180 of file qrangemodel_impl.h.

◆ m_model

template<typename Structure, typename Range, typename Protocol = QRangeModelDetails::table_protocol_t<Range>>
const QRangeModelImpl* QRangeModelImpl< Structure, Range, Protocol >::MimeDataItemIterator::m_model

Definition at line 3181 of file qrangemodel_impl.h.

Referenced by operator*().


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