list

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 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 Element

type Element[T any] struct {
	// contains filtered or unexported fields
}

func (*Element[T]) Next

func (e *Element[T]) Next() *Element[T]

func (*Element[T]) Prev

func (e *Element[T]) Prev() *Element[T]

func (*Element[T]) SetValue

func (e *Element[T]) SetValue(t T) *Element[T]

func (*Element[T]) Value

func (e *Element[T]) Value() T

type List

type List[T any] struct {
	// contains filtered or unexported fields
}

func NewList

func NewList[T any]() *List[T]

func (*List[T]) Back

func (s *List[T]) Back() *Element[T]

func (*List[T]) Front

func (s *List[T]) Front() *Element[T]

func (*List[T]) Len

func (s *List[T]) Len() int

func (*List[T]) MoveToFront

func (s *List[T]) MoveToFront(e *Element[T])

func (*List[T]) PushBack

func (s *List[T]) PushBack(v T) *Element[T]

func (*List[T]) PushFront

func (s *List[T]) PushFront(v T) *Element[T]

func (*List[T]) Remove

func (s *List[T]) Remove(e *Element[T]) T

type Set

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

func NewSet

func NewSet[T comparable]() *Set[T]

func (*Set[T]) Clear

func (q *Set[T]) Clear()

func (*Set[T]) Len

func (q *Set[T]) Len() int

func (*Set[T]) Pop

func (s *Set[T]) Pop() (T, bool)

func (*Set[T]) Push

func (q *Set[T]) Push(x T)

func (*Set[T]) Range

func (q *Set[T]) Range(ranger func(T) bool)

type SyncList

type SyncList[T any] struct {
	// contains filtered or unexported fields
}

func NewSyncList

func NewSyncList[T any]() *SyncList[T]

func (*SyncList[T]) Back

func (s *SyncList[T]) Back() *Element[T]

func (*SyncList[T]) Front

func (s *SyncList[T]) Front() *Element[T]

func (*SyncList[T]) Len

func (s *SyncList[T]) Len() int

func (*SyncList[T]) MoveToFront

func (s *SyncList[T]) MoveToFront(e *Element[T])

func (*SyncList[T]) PushBack

func (s *SyncList[T]) PushBack(v T) *Element[T]

func (*SyncList[T]) PushFront

func (s *SyncList[T]) PushFront(v T) *Element[T]

func (*SyncList[T]) Remove

func (s *SyncList[T]) Remove(e *Element[T]) T

Jump to

Keyboard shortcuts

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