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::protocol_traits< Range, Protocol > Struct Template Reference

#include <qrangemodel_impl.h>

Collaboration diagram for QRangeModelDetails::protocol_traits< Range, Protocol >:

Public Types

using protocol = QRangeModelDetails::wrapped_t<Protocol>
using row = typename range_traits<QRangeModelDetails::wrapped_t<Range>>::value_type

Static Public Attributes

static constexpr bool is_tree
static constexpr bool is_list
static constexpr bool is_table = !is_list && !is_tree
static constexpr bool has_newRow = protocol_newRow<protocol>()
static constexpr bool has_deleteRow = protocol_deleteRow<protocol, row>()
static constexpr bool has_setParentRow = protocol_setParentRow<protocol, row>()
static constexpr bool has_mutable_childRows = protocol_mutable_childRows<protocol, row>()
static constexpr bool is_default = is_any_of<protocol, ListProtocol, TableProtocol, DefaultTreeProtocol>()

Detailed Description

template<typename Range, typename Protocol>
struct QRangeModelDetails::protocol_traits< Range, Protocol >

Definition at line 796 of file qrangemodel_impl.h.

Member Typedef Documentation

◆ protocol

template<typename Range, typename Protocol>
using QRangeModelDetails::protocol_traits< Range, Protocol >::protocol = QRangeModelDetails::wrapped_t<Protocol>

Definition at line 798 of file qrangemodel_impl.h.

◆ row

template<typename Range, typename Protocol>
using QRangeModelDetails::protocol_traits< Range, Protocol >::row = typename range_traits<QRangeModelDetails::wrapped_t<Range>>::value_type

Definition at line 799 of file qrangemodel_impl.h.

Member Data Documentation

◆ has_deleteRow

template<typename Range, typename Protocol>
bool QRangeModelDetails::protocol_traits< Range, Protocol >::has_deleteRow = protocol_deleteRow<protocol, row>()
staticconstexpr

Definition at line 807 of file qrangemodel_impl.h.

◆ has_mutable_childRows

template<typename Range, typename Protocol>
bool QRangeModelDetails::protocol_traits< Range, Protocol >::has_mutable_childRows = protocol_mutable_childRows<protocol, row>()
staticconstexpr

Definition at line 809 of file qrangemodel_impl.h.

◆ has_newRow

template<typename Range, typename Protocol>
bool QRangeModelDetails::protocol_traits< Range, Protocol >::has_newRow = protocol_newRow<protocol>()
staticconstexpr

Definition at line 806 of file qrangemodel_impl.h.

◆ has_setParentRow

template<typename Range, typename Protocol>
bool QRangeModelDetails::protocol_traits< Range, Protocol >::has_setParentRow = protocol_setParentRow<protocol, row>()
staticconstexpr

Definition at line 808 of file qrangemodel_impl.h.

◆ is_default

template<typename Range, typename Protocol>
bool QRangeModelDetails::protocol_traits< Range, Protocol >::is_default = is_any_of<protocol, ListProtocol, TableProtocol, DefaultTreeProtocol>()
staticconstexpr

Definition at line 811 of file qrangemodel_impl.h.

◆ is_list

template<typename Range, typename Protocol>
bool QRangeModelDetails::protocol_traits< Range, Protocol >::is_list
staticconstexpr
Initial value:

Definition at line 802 of file qrangemodel_impl.h.

◆ is_table

template<typename Range, typename Protocol>
bool QRangeModelDetails::protocol_traits< Range, Protocol >::is_table = !is_list && !is_tree
staticconstexpr

Definition at line 804 of file qrangemodel_impl.h.

◆ is_tree

template<typename Range, typename Protocol>
bool QRangeModelDetails::protocol_traits< Range, Protocol >::is_tree
staticconstexpr
Initial value:
= std::conjunction_v<protocol_parentRow<protocol, row>,
qxp::is_detected< protocol_childRows_test, P, R > protocol_childRows

Definition at line 800 of file qrangemodel_impl.h.


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