loopqueue

package
v0.0.0-...-3b2a8e7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoopQueue

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

func New

func New(capacity int) *LoopQueue

func (*LoopQueue) Dequeue

func (lq *LoopQueue) Dequeue() (e interface{})

获得队列头部元素

func (*LoopQueue) Enqueue

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

入队

func (*LoopQueue) GetCapacity

func (lq *LoopQueue) GetCapacity() int

func (*LoopQueue) GetFront

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

查看队列头部元素

func (*LoopQueue) GetSize

func (lq *LoopQueue) GetSize() int

func (*LoopQueue) IsEmpty

func (lq *LoopQueue) IsEmpty() bool

func (*LoopQueue) String

func (lq *LoopQueue) String() string

Jump to

Keyboard shortcuts

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