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::DefaultTreeProtocol< Range > Struct Template Reference

#include <qrangemodel_impl.h>

Inheritance diagram for QRangeModelDetails::DefaultTreeProtocol< Range >:
Collaboration diagram for QRangeModelDetails::DefaultTreeProtocol< Range >:

Public Member Functions

template<typename R>
auto parentRow (const R &row) const -> decltype(row.parentRow())
template<typename R>
auto setParentRow (R &row, R *parent) -> decltype(row.setParentRow(parent))
template<typename R>
auto childRows (const R &row) const -> decltype(row.childRows())
template<typename R>
auto childRows (R &row) -> decltype(row.childRows())
Public Member Functions inherited from QRangeModelDetails::TableProtocol< Range >
template<typename R = row_type, std::enable_if_t< std::conjunction_v< std::is_destructible< wrapped_t< R > >, is_owning_or_raw_pointer< R > >, bool > = true>
auto newRow () -> decltype(R(new wrapped_t< R >))
template<typename R = row_type, std::enable_if_t<!is_owning_or_raw_pointer< R >::value, bool > = true>
auto newRow () -> decltype(R{})
template<typename R = row_type, std::enable_if_t< std::is_pointer_v< std::remove_reference_t< R > >, bool > = true>
auto deleteRow (R &&row) -> decltype(delete row)

Additional Inherited Members

Public Types inherited from QRangeModelDetails::TableProtocol< Range >
using row_type = typename range_traits<wrapped_t<Range>>::value_type

Detailed Description

template<typename Range>
struct QRangeModelDetails::DefaultTreeProtocol< Range >

Definition at line 748 of file qrangemodel_impl.h.

Member Function Documentation

◆ childRows() [1/2]

template<typename Range>
template<typename R>
auto QRangeModelDetails::DefaultTreeProtocol< Range >::childRows ( const R & row) const -> decltype(row.childRows())
inline

Definition at line 763 of file qrangemodel_impl.h.

◆ childRows() [2/2]

template<typename Range>
template<typename R>
auto QRangeModelDetails::DefaultTreeProtocol< Range >::childRows ( R & row) -> decltype(row.childRows())
inline

Definition at line 769 of file qrangemodel_impl.h.

◆ parentRow()

template<typename Range>
template<typename R>
auto QRangeModelDetails::DefaultTreeProtocol< Range >::parentRow ( const R & row) const -> decltype(row.parentRow())
inline

Definition at line 751 of file qrangemodel_impl.h.

◆ setParentRow()

template<typename Range>
template<typename R>
auto QRangeModelDetails::DefaultTreeProtocol< Range >::setParentRow ( R & row,
R * parent ) -> decltype(row.setParentRow(parent))
inline

Definition at line 757 of file qrangemodel_impl.h.


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