typedRoaring

package
v1.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2022 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitConstraint

type BitConstraint interface {
	~int | ~uint32
}

type Bitmap

type Bitmap[T BitConstraint] struct {
	roaring.Bitmap
}

func (*Bitmap[T]) Add

func (me *Bitmap[T]) Add(x T)

func (*Bitmap[T]) CheckedAdd

func (me *Bitmap[T]) CheckedAdd(x T) bool

func (*Bitmap[T]) CheckedRemove

func (me *Bitmap[T]) CheckedRemove(x T) bool

func (*Bitmap[T]) Clone

func (me *Bitmap[T]) Clone() Bitmap[T]

func (*Bitmap[T]) Contains

func (me *Bitmap[T]) Contains(x T) bool

func (Bitmap[T]) Iterate

func (me Bitmap[T]) Iterate(f func(x T) bool)

func (Bitmap[T]) IteratorType

func (Bitmap[T]) IteratorType() Iterator[T]

Returns an uninitialized iterator for the type of the receiver.

func (*Bitmap[T]) Rank

func (me *Bitmap[T]) Rank(x T) uint64

func (*Bitmap[T]) Remove

func (me *Bitmap[T]) Remove(x T)

type Iterator

type Iterator[T BitConstraint] struct {
	roaring.IntIterator
}

func (*Iterator[T]) AdvanceIfNeeded

func (t *Iterator[T]) AdvanceIfNeeded(minVal T)

func (*Iterator[T]) Initialize

func (t *Iterator[T]) Initialize(a *Bitmap[T])

func (*Iterator[T]) Next

func (t *Iterator[T]) Next() T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL