queue

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface{}

type ItemQueue

type ItemQueue struct {
	// contains filtered or unexported fields
}

func (*ItemQueue) Dequeue

func (q *ItemQueue) Dequeue() *Item

出队列

func (*ItemQueue) Enqueue

func (q *ItemQueue) Enqueue(t Item)

如队列

func (*ItemQueue) Front

func (q *ItemQueue) Front() *Item

获取队列的第一个元素,不移除

func (*ItemQueue) IsEmpty

func (q *ItemQueue) IsEmpty() bool

判空

func (*ItemQueue) New

func (q *ItemQueue) New() *ItemQueue

创建队列

func (*ItemQueue) Size

func (q *ItemQueue) Size() int

获取队列的长度

Jump to

Keyboard shortcuts

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