Documentation ¶
Index ¶
- type Item
- type ItemWithIndex
- type Queue
- type QueueWithIndex
- func (l *QueueWithIndex) Cap() int
- func (l *QueueWithIndex) Insert(id uint64, index uint64, dist float32)
- func (l *QueueWithIndex) Len() int
- func (l *QueueWithIndex) Pop() ItemWithIndex
- func (l *QueueWithIndex) Reset()
- func (l *QueueWithIndex) ResetCap(capacity int)
- func (l *QueueWithIndex) Top() ItemWithIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemWithIndex ¶
type QueueWithIndex ¶
type QueueWithIndex struct {
// contains filtered or unexported fields
}
func NewMaxWithIndex ¶
func NewMaxWithIndex(capacity int) *QueueWithIndex
func NewMinWithIndex ¶
func NewMinWithIndex(capacity int) *QueueWithIndex
func (*QueueWithIndex) Cap ¶
func (l *QueueWithIndex) Cap() int
func (*QueueWithIndex) Insert ¶
func (l *QueueWithIndex) Insert(id uint64, index uint64, dist float32)
func (*QueueWithIndex) Len ¶
func (l *QueueWithIndex) Len() int
func (*QueueWithIndex) Pop ¶
func (l *QueueWithIndex) Pop() ItemWithIndex
func (*QueueWithIndex) Reset ¶
func (l *QueueWithIndex) Reset()
func (*QueueWithIndex) ResetCap ¶
func (l *QueueWithIndex) ResetCap(capacity int)
func (*QueueWithIndex) Top ¶
func (l *QueueWithIndex) Top() ItemWithIndex
Click to show internal directories.
Click to hide internal directories.