Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayQueue ¶
type ArrayQueue[T any] struct { // contains filtered or unexported fields }
func NewArrayQueue ¶
func NewArrayQueue[T any](capacity int) *ArrayQueue[T]
func (*ArrayQueue[T]) Clear ¶
func (a *ArrayQueue[T]) Clear()
func (*ArrayQueue[T]) DeQueue ¶
func (a *ArrayQueue[T]) DeQueue() (T, error)
func (*ArrayQueue[T]) EnQueue ¶
func (a *ArrayQueue[T]) EnQueue(newVal T)
func (*ArrayQueue[T]) Front ¶
func (a *ArrayQueue[T]) Front() (T, error)
func (*ArrayQueue[T]) IsEmpty ¶
func (a *ArrayQueue[T]) IsEmpty() bool
func (*ArrayQueue[T]) Size ¶
func (a *ArrayQueue[T]) Size() int
type LinkedQueue ¶
type LinkedQueue[T any] struct { // contains filtered or unexported fields }
func NewLinkedQueue ¶
func NewLinkedQueue[T any]() *LinkedQueue[T]
func (*LinkedQueue[T]) Clear ¶
func (l *LinkedQueue[T]) Clear()
func (*LinkedQueue[T]) DeQueue ¶
func (l *LinkedQueue[T]) DeQueue() (T, error)
func (*LinkedQueue[T]) Front ¶
func (l *LinkedQueue[T]) Front() (T, error)
func (*LinkedQueue[T]) IsEmpty ¶
func (l *LinkedQueue[T]) IsEmpty() bool
func (*LinkedQueue[T]) Size ¶
func (l *LinkedQueue[T]) Size() int
Click to show internal directories.
Click to hide internal directories.