circularqueue

package
v0.0.0-...-a3fd192 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: GPL-3.0 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(size int) *CircularQueue

func (*CircularQueue) CountUnused

func (q *CircularQueue) CountUnused() int

func (*CircularQueue) CountUsed

func (q *CircularQueue) CountUsed() int

func (*CircularQueue) DeQueue

func (q *CircularQueue) DeQueue() (any, bool)

func (*CircularQueue) EnQueue

func (q *CircularQueue) EnQueue(item any) bool

func (*CircularQueue) Front

func (q *CircularQueue) Front() any

func (*CircularQueue) IsEmpty

func (q *CircularQueue) IsEmpty() bool

func (*CircularQueue) IsFull

func (q *CircularQueue) IsFull() bool

func (*CircularQueue) Rear

func (q *CircularQueue) Rear() any

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