from Scanline.hpp:113
class iterator
{
public:
iterator(const Scanline& scanline) :
covers(scanline.covers),
curCount(scanline.counts),
curStartIndex(scanline.startIndices)
{
}
int next()
{
++curCount;
++curStartIndex;
return int(*curStartIndex);
}
int getNumPix() const
{
return int(*curCount);
}
const uint8_t* getCovers() const
{
return covers + *curStartIndex;
}
private:
const uint8_t* covers;
const uint16_t* curCount;
const uint16_t* curStartIndex;
};