LoopQueue

package
v0.0.0-...-adc727d Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 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 Constructor

func Constructor(capacity int) *LoopQueue

func (*LoopQueue) Dequeue

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

获得队列头部元素

func (*LoopQueue) Enqueue

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

入队

func (*LoopQueue) GetCapacity

func (this *LoopQueue) GetCapacity() int

func (*LoopQueue) GetFront

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

查看队列头部元素

func (*LoopQueue) GetSize

func (this *LoopQueue) GetSize() int

func (*LoopQueue) IsEmpty

func (this *LoopQueue) IsEmpty() bool

func (*LoopQueue) String

func (this *LoopQueue) String() string

Jump to

Keyboard shortcuts

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