queue

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PriorityQueue

type PriorityQueue struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*PriorityQueue) Cap

func (this *PriorityQueue) Cap() int

func (*PriorityQueue) Init

func (this *PriorityQueue) Init()

func (*PriorityQueue) Len

func (this *PriorityQueue) Len() int

func (*PriorityQueue) Less

func (this *PriorityQueue) Less(i, j int) bool

func (*PriorityQueue) Pop

func (this *PriorityQueue) Pop() (result interface{})

func (*PriorityQueue) PopItem

func (this *PriorityQueue) PopItem() QItem

func (*PriorityQueue) Push

func (this *PriorityQueue) Push(x interface{})

func (*PriorityQueue) PushItem

func (this *PriorityQueue) PushItem(item QItem)

func (*PriorityQueue) String added in v0.0.29

func (this *PriorityQueue) String() string

func (*PriorityQueue) Swap

func (this *PriorityQueue) Swap(i, j int)

type QItem

type QItem interface {
	GetPriority() int64

	String() string
}

Jump to

Keyboard shortcuts

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