ManyIterator creates a new ManyIntIterable to iterate over the integers contained in the bitmap, in sorted order; the iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove).
()
| 1019 | // ManyIterator creates a new ManyIntIterable to iterate over the integers contained in the bitmap, in sorted order; |
| 1020 | // the iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove). |
| 1021 | func (rb *Bitmap) ManyIterator() ManyIntIterable { |
| 1022 | p := new(manyIntIterator) |
| 1023 | p.Initialize(rb) |
| 1024 | return p |
| 1025 | } |
| 1026 | |
| 1027 | // UnsetIterator creates a new IntPeekable to iterate over values in the range [start, end) that are NOT contained in the bitmap. |
| 1028 | // The iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove). |