28 template <
typename ModelIndexType>
31 typedef ModelIndexType index_type;
43 iRow{ 0 }, iColumn{ 0 }
47 iRow{ aRow }, iColumn{ 0 }
51 iRow{ aRow }, iColumn{ aColumn }
58 iColumn += aRhs.iColumn;
59 return static_cast<index_type&
>(*this);
64 iColumn -= aRhs.iColumn;
65 return static_cast<index_type&
>(*this);
74 return index_type{ aRow,
column() };
86 return index_type{
row(), aColumn };
97 template <
typename ModelIndexType>
103 template <
typename ModelIndexType>
106 return !(aLhs == aRhs);
109 template <
typename ModelIndexType>
112 return std::forward_as_tuple(aLhs.
row(), aLhs.
column()) < std::forward_as_tuple(aRhs.
row(), aRhs.
column());
115 template <
typename ModelIndexType>
118 return std::forward_as_tuple(aLhs.
row(), aLhs.
column()) > std::forward_as_tuple(aRhs.
row(), aRhs.
column());
121 template <
typename ModelIndexType>
void set_column(column_type aColumn)
index_type with_column(column_type aColumn) const
index_type & operator+=(const item_index &aRhs)
column_type column() const
item_index(row_type aRow, column_type aColumn)
index_type & operator-=(const item_index &aRhs)
item_index(row_type aRow)
std::optional< column_type > optional_column_type
index_type with_row(row_type aRow) const
void set_row(row_type aRow)
std::optional< row_type > optional_row_type
std::optional< item_index< ModelIndexType > > optional_item_index
bool operator!=(color_or_gradient const &lhs, color const &rhs) noexcept
bool operator<(const basic_rect< CoordinateType, CoordinateSystem > &left, const basic_rect< CoordinateType, CoordinateSystem > &right)
bool operator==(const basic_rect< CoordinateType, CoordinateSystem > &left, const basic_rect< CoordinateType, CoordinateSystem > &right)
bool operator>(const basic_rect< CoordinateType, CoordinateSystem > &left, const basic_rect< CoordinateType, CoordinateSystem > &right)