22 std::size_t mRow = -1;
23 std::size_t mColumn = -1;
26 AListModelIndex(std::size_t row, std::size_t column)
32 AListModelIndex(std::size_t row)
37 AListModelIndex() =
default;
39 std::size_t getRow()
const
44 std::size_t getColumn()
const
49 bool operator==(
const AListModelIndex& rhs)
const {
50 return std::tie(mRow, mColumn) == std::tie(rhs.mRow, rhs.mColumn);
53 bool operator!=(
const AListModelIndex& rhs)
const {
54 return !(rhs == *
this);
57 inline bool operator<(
const AListModelIndex& other)
const {
58 return hash() < other.hash();
61 [[nodiscard]]
inline uint64_t hash()
const {
62 uint64_t hash = uint32_t(mRow);
64 hash |= uint32_t(mColumn);