ring

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CircularQueue

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

func NewCircularQueue

func NewCircularQueue(n int) *CircularQueue

func (*CircularQueue) Clear

func (q *CircularQueue) Clear() bool

清空

func (*CircularQueue) Dequeue

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

func (*CircularQueue) Each

func (q *CircularQueue) Each(fn func(node interface{}))

遍历

func (*CircularQueue) Enqueue

func (q *CircularQueue) Enqueue(item interface{}) bool

func (*CircularQueue) IsEmpty

func (q *CircularQueue) IsEmpty() bool

func (*CircularQueue) IsFull

func (q *CircularQueue) IsFull() bool

func (*CircularQueue) Size

func (q *CircularQueue) Size() int

Jump to

Keyboard shortcuts

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