|
|
@ -106,16 +106,6 @@ class KeyAddrBitfield {
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Iterator!
|
|
|
|
// Iterator!
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
class Iterator;
|
|
|
|
|
|
|
|
friend class KeyAddrBitfield::Iterator;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Iterator begin() const {
|
|
|
|
|
|
|
|
return Iterator{*this, 0};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Iterator end() const {
|
|
|
|
|
|
|
|
return Iterator{*this, total_blocks};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Iterator {
|
|
|
|
class Iterator {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
Iterator(const KeyAddrBitfield &bitfield, uint8_t x)
|
|
|
|
Iterator(const KeyAddrBitfield &bitfield, uint8_t x)
|
|
|
@ -171,6 +161,15 @@ class KeyAddrBitfield {
|
|
|
|
|
|
|
|
|
|
|
|
}; // class Iterator {
|
|
|
|
}; // class Iterator {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
friend class Iterator;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Iterator begin() const {
|
|
|
|
|
|
|
|
return Iterator{*this, 0};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Iterator end() const {
|
|
|
|
|
|
|
|
return Iterator{*this, total_blocks};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} __attribute__((packed)); // class KeyAddrBitfield {
|
|
|
|
} __attribute__((packed)); // class KeyAddrBitfield {
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace kaleidoscope {
|
|
|
|
} // namespace kaleidoscope {
|
|
|
|