Initialize configures the existing iterator so that it can iterate through the values of the provided bitmap. The iteration results are undefined if the bitmap is modified (e.g., with Add or Remove).
(a *Bitmap)
| 605 | // the provided bitmap. |
| 606 | // The iteration results are undefined if the bitmap is modified (e.g., with Add or Remove). |
| 607 | func (ii *intIterator) Initialize(a *Bitmap) { |
| 608 | ii.pos = 0 |
| 609 | ii.highlowcontainer = &a.highlowcontainer |
| 610 | ii.init() |
| 611 | } |
| 612 | |
| 613 | type intReverseIterator struct { |
| 614 | pos int |