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
Click to show internal directories.
Click to hide internal directories.