queue2

package
v0.0.0-...-73cdf94 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLoopQueue

func InitLoopQueue() basic.Queue

func NewLoopQueue

func NewLoopQueue(cap int) basic.Queue

Types

type LoopQueue

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

不使用size的循环队列

func (*LoopQueue) Cap

func (q *LoopQueue) Cap() int

func (*LoopQueue) Dequeue

func (q *LoopQueue) Dequeue() interface{}

出队

func (*LoopQueue) Enqueue

func (q *LoopQueue) Enqueue(e interface{})

入队

func (*LoopQueue) GetFront

func (q *LoopQueue) GetFront() interface{}

func (*LoopQueue) IsEmpty

func (q *LoopQueue) IsEmpty() bool

func (*LoopQueue) Len

func (q *LoopQueue) Len() int

func (*LoopQueue) String

func (q *LoopQueue) String() string

Jump to

Keyboard shortcuts

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