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::RowView< const_row_type, Iterator, Sentinel > Struct Template Reference

#include <qrangemodeladapter_impl.h>

Collaboration diagram for QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >:

Classes

struct  iterator

Public Types

using value_type = typename iterator::value_type
using difference_type = typename iterator::difference_type
template<typename Row>
using if_viewable_row

Public Member Functions

 RowView ()=default
 RowView (Iterator begin, Sentinel endend)
 RowView (const RowView &)=default
 RowView (RowView &&)=default
RowView & operator= (const RowView &)=default
RowView & operator= (RowView &&)=default
 ~RowView ()=default
template<typename Row, if_viewable_row< Row > = true>
 RowView (const Row &rowrow)
template<typename Row, if_viewable_row< Row > = true>
 RowView (const Row &&rowrow)=delete
template<typename RHS>
bool operator== (const RHS &rhs) const noexcept
template<typename RHS>
bool operator!= (const RHS &rhs) const noexcept
value_type at (difference_type nn) const
iterator begin () const
iterator end () const

Public Attributes

Iterator m_begin
Sentinel m_end

Friends

bool comparesEqual (const RowView &lhs, const RowView &rhs) noexcept

Detailed Description

template<typename const_row_type, typename Iterator, typename Sentinel>
struct QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >

Definition at line 97 of file qrangemodeladapter_impl.h.

Member Typedef Documentation

◆ difference_type

template<typename const_row_type, typename Iterator, typename Sentinel>
using QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::difference_type = typename iterator::difference_type

Definition at line 257 of file qrangemodeladapter_impl.h.

◆ if_viewable_row

template<typename const_row_type, typename Iterator, typename Sentinel>
template<typename Row>
using QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::if_viewable_row
Initial value:
std::enable_if_t<std::conjunction_v<
std::negation<std::is_same<Row, RowView>>,
std::is_convertible<decltype(QRangeModelDetails::begin(std::declval<const Row &>())),
std::is_convertible<decltype(QRangeModelDetails::end(std::declval<const Row &>())),
Sentinel>
>, bool>
\inherits QIterator

Definition at line 270 of file qrangemodeladapter_impl.h.

◆ value_type

template<typename const_row_type, typename Iterator, typename Sentinel>
using QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::value_type = typename iterator::value_type

Definition at line 256 of file qrangemodeladapter_impl.h.

Constructor & Destructor Documentation

◆ RowView() [1/6]

template<typename const_row_type, typename Iterator, typename Sentinel>
QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::RowView ( )
default

◆ RowView() [2/6]

template<typename const_row_type, typename Iterator, typename Sentinel>
QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::RowView ( Iterator begin,
Sentinel end )
inline

Definition at line 260 of file qrangemodeladapter_impl.h.

Referenced by QRangeModelDetails::RowView< const_row_type, const_iterator, const_iterator >::RowView().

Here is the caller graph for this function:

◆ RowView() [3/6]

template<typename const_row_type, typename Iterator, typename Sentinel>
QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::RowView ( const RowView< const_row_type, Iterator, Sentinel > & )
default

◆ RowView() [4/6]

template<typename const_row_type, typename Iterator, typename Sentinel>
QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::RowView ( RowView< const_row_type, Iterator, Sentinel > && )
default

◆ ~RowView()

template<typename const_row_type, typename Iterator, typename Sentinel>
QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::~RowView ( )
default

◆ RowView() [5/6]

template<typename const_row_type, typename Iterator, typename Sentinel>
template<typename Row, if_viewable_row< Row > = true>
QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::RowView ( const Row & row)
inline

Definition at line 282 of file qrangemodeladapter_impl.h.

Referenced by QRangeModelDetails::RowView< const_row_type, const_iterator, const_iterator >::RowView().

Here is the caller graph for this function:

◆ RowView() [6/6]

template<typename const_row_type, typename Iterator, typename Sentinel>
template<typename Row, if_viewable_row< Row > = true>
QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::RowView ( const Row && row)
delete

Member Function Documentation

◆ at()

template<typename const_row_type, typename Iterator, typename Sentinel>
value_type QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::at ( difference_type n) const
inline

Definition at line 306 of file qrangemodeladapter_impl.h.

◆ begin()

template<typename const_row_type, typename Iterator, typename Sentinel>
iterator QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::begin ( ) const
inline

Definition at line 308 of file qrangemodeladapter_impl.h.

◆ end()

template<typename const_row_type, typename Iterator, typename Sentinel>
iterator QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::end ( ) const
inline

Definition at line 309 of file qrangemodeladapter_impl.h.

◆ operator!=()

template<typename const_row_type, typename Iterator, typename Sentinel>
template<typename RHS>
bool QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::operator!= ( const RHS & rhs) const
inlinenoexcept

Definition at line 301 of file qrangemodeladapter_impl.h.

◆ operator=() [1/2]

template<typename const_row_type, typename Iterator, typename Sentinel>
RowView & QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::operator= ( const RowView< const_row_type, Iterator, Sentinel > & )
default

◆ operator=() [2/2]

template<typename const_row_type, typename Iterator, typename Sentinel>
RowView & QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::operator= ( RowView< const_row_type, Iterator, Sentinel > && )
default

◆ operator==()

template<typename const_row_type, typename Iterator, typename Sentinel>
template<typename RHS>
bool QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::operator== ( const RHS & rhs) const
inlinenoexcept

Definition at line 296 of file qrangemodeladapter_impl.h.

◆ comparesEqual

template<typename const_row_type, typename Iterator, typename Sentinel>
bool comparesEqual ( const RowView< const_row_type, Iterator, Sentinel > & lhs,
const RowView< const_row_type, Iterator, Sentinel > & rhs )
friend

Definition at line 289 of file qrangemodeladapter_impl.h.

Member Data Documentation

◆ m_begin

template<typename const_row_type, typename Iterator, typename Sentinel>
Iterator QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::m_begin

Definition at line 311 of file qrangemodeladapter_impl.h.

◆ m_end

template<typename const_row_type, typename Iterator, typename Sentinel>
Sentinel QRangeModelDetails::RowView< const_row_type, Iterator, Sentinel >::m_end

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