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

#include <qgenericitemmodel_impl.h>

+ Inheritance diagram for QGenericItemModelDetails::TableProtocol< Range >:
+ Collaboration diagram for QGenericItemModelDetails::TableProtocol< Range >:

Public Types

using row_type = typename range_traits<wrapped_t<Range>>::value_type
 

Public Member Functions

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)
 

Detailed Description

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

Definition at line 354 of file qgenericitemmodel_impl.h.

Member Typedef Documentation

◆ row_type

template<typename Range>
using QGenericItemModelDetails::TableProtocol< Range >::row_type = typename range_traits<wrapped_t<Range>>::value_type

Definition at line 356 of file qgenericitemmodel_impl.h.

Member Function Documentation

◆ deleteRow()

template<typename Range>
template<typename R = row_type, std::enable_if_t< std::is_pointer_v< std::remove_reference_t< R > >, bool > = true>
auto QGenericItemModelDetails::TableProtocol< Range >::deleteRow ( R && row) -> decltype(delete row)
inline

Definition at line 374 of file qgenericitemmodel_impl.h.

◆ newRow() [1/2]

template<typename 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 QGenericItemModelDetails::TableProtocol< Range >::newRow ( ) -> decltype(R(new wrapped_t<R>))
inline

Definition at line 361 of file qgenericitemmodel_impl.h.

◆ newRow() [2/2]

template<typename Range>
template<typename R = row_type, std::enable_if_t<!is_owning_or_raw_pointer< R >::value, bool > = true>
auto QGenericItemModelDetails::TableProtocol< Range >::newRow ( ) -> decltype(R{})
inline

Definition at line 370 of file qgenericitemmodel_impl.h.


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