18#ifndef QGSSORTEDRASTERBLOCKINDEX_H
19#define QGSSORTEDRASTERBLOCKINDEX_H
71 qgssize sortedIndex(
qgssize rank, Qt::SortOrder order = Qt::AscendingOrder )
const;
81 void sortedColumnRow(
qgssize rank,
int &column
SIP_OUT,
int &row
SIP_OUT, Qt::SortOrder order = Qt::AscendingOrder )
const;
89 double sortedValue(
qgssize rank, Qt::SortOrder order = Qt::AscendingOrder )
const;
97 std::variant<std::vector<uint32_t>, std::vector<qgssize>> mSortedIndices;
99 inline void indexToColumnAndRow(
qgssize index,
int &column,
int &row )
const
101 column =
static_cast<int>( index % mCols );
102 row =
static_cast<int>( index / mCols );
const QgsRasterBlock * block() const
Returns a pointer to source QgsRasterBlock.
qgssize sortedCount() const
Returns the number of valid (non-NoData) sorted cells.
QgsSortedRasterBlockIndex(const QgsRasterBlock *block)
Constructor for QgsSortedRasterBlockIndex, indexing the specified raster block.
unsigned long long qgssize
Qgssize is used instead of size_t, because size_t is stdlib type, unknown by SIP, and it would be har...