Documentation
¶
Index ¶
- type Deap
- func (deap *Deap[T]) Clear()
- func (deap *Deap[T]) Iterator() *DeapIterator[T]
- func (deap *Deap[T]) PeekMax() (T, bool)
- func (deap *Deap[T]) PeekMin() (T, bool)
- func (deap *Deap[T]) PullMax() (T, bool)
- func (deap *Deap[T]) PullMin() (T, bool)
- func (deap *Deap[T]) Push(value T)
- func (deap *Deap[T]) Size() int
- func (deap *Deap[T]) Slice() []T
- type DeapIterator
- type DeapValue
- type Deque
- func (deque *Deque[T]) Clear()
- func (deque *Deque[T]) Drop(node *DequeNode[T]) (T, bool)
- func (deque *Deque[T]) Iterator() *DequeIterator[T]
- func (deque *Deque[T]) Peek() (T, bool)
- func (deque *Deque[T]) Poll() (T, bool)
- func (deque *Deque[T]) Pull() (T, bool)
- func (deque *Deque[T]) Push(value T)
- func (deque *Deque[T]) RIterator() *DequeReverseIterator[T]
- func (deque *Deque[T]) RPeek() (T, bool)
- func (deque *Deque[T]) RPoll() (T, bool)
- func (deque *Deque[T]) RPull() (T, bool)
- func (deque *Deque[T]) RPush(value T)
- func (deque *Deque[T]) RSlice() []T
- func (deque *Deque[T]) Size() int
- func (deque *Deque[T]) Slice() []T
- type DequeIterator
- type DequeNode
- type DequeReverseIterator
- type Heap
- type HeapIterator
- type HeapValue
- type Queue
- func (queue *Queue[T]) Clear()
- func (queue *Queue[T]) Iterator() *QueueIterator[T]
- func (queue *Queue[T]) Peek() (T, bool)
- func (queue *Queue[T]) Poll() (T, bool)
- func (queue *Queue[T]) Pull() (T, bool)
- func (queue *Queue[T]) Push(value T)
- func (queue *Queue[T]) Size() int
- func (queue *Queue[T]) Slice() []T
- type QueueIterator
- type QueueNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deap ¶
type Deap[T DeapValue[T]] struct { // contains filtered or unexported fields }
func (*Deap[T]) Iterator ¶
func (deap *Deap[T]) Iterator() *DeapIterator[T]
type DeapIterator ¶
type DeapIterator[T DeapValue[T]] struct { // contains filtered or unexported fields }
func (*DeapIterator[T]) Next ¶
func (iterator *DeapIterator[T]) Next() (T, bool)
type Deque ¶
type Deque[T any] struct { // contains filtered or unexported fields }
func (*Deque[T]) Iterator ¶
func (deque *Deque[T]) Iterator() *DequeIterator[T]
func (*Deque[T]) RIterator ¶
func (deque *Deque[T]) RIterator() *DequeReverseIterator[T]
type DequeIterator ¶
type DequeIterator[T any] struct { // contains filtered or unexported fields }
func (*DequeIterator[T]) Drop ¶
func (iterator *DequeIterator[T]) Drop() (T, bool)
func (*DequeIterator[T]) Next ¶
func (iterator *DequeIterator[T]) Next() (T, bool)
type DequeReverseIterator ¶
type DequeReverseIterator[T any] struct { // contains filtered or unexported fields }
func (*DequeReverseIterator[T]) Drop ¶
func (iterator *DequeReverseIterator[T]) Drop() (T, bool)
func (*DequeReverseIterator[T]) Next ¶
func (iterator *DequeReverseIterator[T]) Next() (T, bool)
type Heap ¶
type Heap[T HeapValue[T]] struct { // contains filtered or unexported fields }
func (*Heap[T]) Iterator ¶
func (heap *Heap[T]) Iterator() *HeapIterator[T]
type HeapIterator ¶
type HeapIterator[T HeapValue[T]] struct { // contains filtered or unexported fields }
func (*HeapIterator[T]) Next ¶
func (iterator *HeapIterator[T]) Next() (T, bool)
type HeapValue ¶
type HeapValue[T any] xbtype.Comparable[T]
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
func (*Queue[T]) Iterator ¶
func (queue *Queue[T]) Iterator() *QueueIterator[T]
type QueueIterator ¶
type QueueIterator[T any] struct { // contains filtered or unexported fields }
func (*QueueIterator[T]) Next ¶
func (iterator *QueueIterator[T]) Next() (T, bool)
Click to show internal directories.
Click to hide internal directories.