MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / iterate

Method iterate

bitmapcontainer.go:121–131  ·  view source on GitHub ↗
(cb func(x uint16) bool)

Source from the content-addressed store, hash-verified

119}
120
121func (bc *bitmapContainer) iterate(cb func(x uint16) bool) bool {
122 iterator := bitmapContainerShortIterator{bc, bc.NextSetBit(0)}
123
124 for iterator.hasNext() {
125 if !cb(iterator.next()) {
126 return false
127 }
128 }
129
130 return true
131}
132
133type bitmapContainerShortIterator struct {
134 ptr *bitmapContainer

Callers

nothing calls this directly

Calls 3

NextSetBitMethod · 0.95
hasNextMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected