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

Interface IntPeekable

roaring.go:521–527  ·  view source on GitHub ↗

IntPeekable allows you to look at the next value without advancing and advance as long as the next value is smaller than minval

Source from the content-addressed store, hash-verified

519// IntPeekable allows you to look at the next value without advancing and
520// advance as long as the next value is smaller than minval
521type IntPeekable interface {
522 IntIterable
523 // PeekNext peeks the next value without advancing the iterator
524 PeekNext() uint32
525 // AdvanceIfNeeded advances as long as the next value is smaller than minval
526 AdvanceIfNeeded(minval uint32)
527}
528
529type intIterator struct {
530 pos int

Implementers 3

intIteratorroaring.go
unsetIteratorroaring.go
intIteratorroaring64/iterables64.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…