Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item is something we manage in a priority queue.
type PriorityQueue ¶
type PriorityQueue struct {
// contains filtered or unexported fields
}
func NewPriorityQueue ¶
func NewPriorityQueue() *PriorityQueue
func (*PriorityQueue) Len ¶
func (pq *PriorityQueue) Len() int
func (*PriorityQueue) Peek ¶
func (pq *PriorityQueue) Peek() Value
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() Value
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(value Value)
func (*PriorityQueue) Release ¶
func (pq *PriorityQueue) Release(value Value)
func (*PriorityQueue) Values ¶
func (pq *PriorityQueue) Values() []Value
Click to show internal directories.
Click to hide internal directories.