CircularQueue

package
v0.0.0-...-36e34b5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 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 CircularQueue

type CircularQueue[T comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[T comparable](storage list.List[T], max int) *CircularQueue[T]

func (*CircularQueue[T]) Clear

func (CQ *CircularQueue[T]) Clear()

func (*CircularQueue[T]) Dequeue

func (CQ *CircularQueue[T]) Dequeue() (T, error)

func (*CircularQueue[T]) Enqueue

func (CQ *CircularQueue[T]) Enqueue(elements ...T) error

func (*CircularQueue[T]) Front

func (CQ *CircularQueue[T]) Front() (T, error)

func (*CircularQueue[T]) IsEmpty

func (CQ *CircularQueue[T]) IsEmpty() bool

func (*CircularQueue[T]) Length

func (CQ *CircularQueue[T]) Length() int

Jump to

Keyboard shortcuts

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