MCPcopy
hub / github.com/RoaringBitmap/roaring / Iterator

Method Iterator

roaring.go:1005–1009  ·  view source on GitHub ↗

Iterator creates a new IntPeekable 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).

()

Source from the content-addressed store, hash-verified

1003// Iterator creates a new IntPeekable to iterate over the integers contained in the bitmap, in sorted order;
1004// the iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove).
1005func (rb *Bitmap) Iterator() IntPeekable {
1006 p := new(intIterator)
1007 p.Initialize(rb)
1008 return p
1009}
1010
1011// ReverseIterator creates a new IntIterable to iterate over the integers contained in the bitmap, in sorted order;
1012// the iterator becomes invalid if the bitmap is modified (e.g., with Add or Remove).

Callers 15

StringMethod · 0.95
BenchmarkIterator123Function · 0.95
BenchmarkIteratorAllocFunction · 0.95
BenchmarkIterateRoaringFunction · 0.95
BenchmarkNextsFunction · 0.95
BenchmarkNextsRLEFunction · 0.95
TestExample_roaring060Function · 0.45
equalsBitSetMethod · 0.45

Calls 1

InitializeMethod · 0.45

Tested by 15

BenchmarkIterator123Function · 0.76
BenchmarkIteratorAllocFunction · 0.76
BenchmarkIterateRoaringFunction · 0.76
BenchmarkNextsFunction · 0.76
BenchmarkNextsRLEFunction · 0.76
TestExample_roaring060Function · 0.36
TestFlip64COWFunction · 0.36
TestFlip64OffCOWFunction · 0.36