Documentation
¶
Index ¶
- type Item
- type Queue
- func (q *Queue[T]) Cap() int
- func (q *Queue[T]) Insert(id uint64, distance float32) int
- func (q *Queue[T]) InsertWithValue(id uint64, distance float32, val T) int
- func (q *Queue[T]) Len() int
- func (q *Queue[T]) Pop() Item[T]
- func (q *Queue[T]) Reset()
- func (q *Queue[T]) ResetCap(capacity int)
- func (q *Queue[T]) Top() Item[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue[T supportedValueType] struct {
// contains filtered or unexported fields
}
Queue is a priority queue supporting generic item values
func (*Queue[T]) InsertWithValue ¶ added in v1.23.0
InsertWithValue creates an item with a T type value and adds it to the queue
Click to show internal directories.
Click to hide internal directories.