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

#include <qgenericitemmodel_impl.h>

+ Inheritance diagram for QGenericItemModelDetails::DefaultTreeProtocol< Range >:
+ Collaboration diagram for QGenericItemModelDetails::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 QGenericItemModelDetails::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 QGenericItemModelDetails::TableProtocol< Range >
using row_type = typename range_traits<wrapped_t<Range>>::value_type
 

Detailed Description

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

Definition at line 385 of file qgenericitemmodel_impl.h.

Member Function Documentation

◆ childRows() [1/2]

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

Definition at line 400 of file qgenericitemmodel_impl.h.

◆ childRows() [2/2]

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

Definition at line 406 of file qgenericitemmodel_impl.h.

◆ parentRow()

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

Definition at line 388 of file qgenericitemmodel_impl.h.

◆ setParentRow()

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

Definition at line 394 of file qgenericitemmodel_impl.h.


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