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)
| 674 | // the provided bitmap. |
| 675 | // The iteration results are undefined if the bitmap is modified (e.g., with Add or Remove). |
| 676 | func (ii *intReverseIterator) Initialize(a *Bitmap) { |
| 677 | ii.highlowcontainer = &a.highlowcontainer |
| 678 | ii.pos = a.highlowcontainer.size() - 1 |
| 679 | ii.init() |
| 680 | } |
| 681 | |
| 682 | // ManyIntIterable allows you to iterate over the values in a Bitmap |
| 683 | type ManyIntIterable interface { |