Documentation
¶
Index ¶
- type Queue
- func (q *Queue[T]) Add(val T)
- func (q *Queue[T]) Clear()
- func (q *Queue[T]) Contains(val T) bool
- func (q *Queue[T]) First() T
- func (q *Queue[T]) Get(i int) (T, error)
- func (q *Queue[T]) IsEmpty() bool
- func (q *Queue[T]) IsNotEmpty() bool
- func (q *Queue[T]) Last() T
- func (q *Queue[T]) Len() int
- func (q *Queue[T]) Position(val T) (pos int)
- func (q *Queue[T]) Push(val T)
- func (q *Queue[T]) Remove(e *element[T])
- func (q *Queue[T]) RemoveAllVal(val T)
- func (q *Queue[T]) RemoveFirst()
- func (q *Queue[T]) RemoveFirstVal(val T)
- func (q *Queue[T]) RemoveLast()
- func (q *Queue[T]) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue[T constraints.Ordered] struct { // contains filtered or unexported fields }
func NewQueue ¶
func NewQueue[T constraints.Ordered]() *Queue[T]
func (*Queue[T]) IsNotEmpty ¶
func (*Queue[T]) RemoveAllVal ¶
func (q *Queue[T]) RemoveAllVal(val T)
func (*Queue[T]) RemoveFirst ¶
func (q *Queue[T]) RemoveFirst()
func (*Queue[T]) RemoveFirstVal ¶
func (q *Queue[T]) RemoveFirstVal(val T)
func (*Queue[T]) RemoveLast ¶
func (q *Queue[T]) RemoveLast()
Click to show internal directories.
Click to hide internal directories.