containers

package
v0.0.0-...-b41d64d Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	// contains filtered or unexported fields
}

type PriorityQueue

type PriorityQueue struct {
	// contains filtered or unexported fields
}

func NewPriorityQueue

func NewPriorityQueue() PriorityQueue

func (PriorityQueue) Contains

func (Q PriorityQueue) Contains(x interface{}) bool

func (*PriorityQueue) Dequeue

func (Q *PriorityQueue) Dequeue() interface{}

func (*PriorityQueue) Enqueue

func (Q *PriorityQueue) Enqueue(val interface{}, priority int)

func (PriorityQueue) Len

func (pq PriorityQueue) Len() int

func (*PriorityQueue) UpdatePriority

func (Q *PriorityQueue) UpdatePriority(x interface{}, p int)

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue() Queue

func (Queue) Contains

func (q Queue) Contains(val interface{}) bool

func (*Queue) Dequeue

func (q *Queue) Dequeue() interface{}

func (*Queue) Enqueue

func (q *Queue) Enqueue(v interface{})

func (*Queue) Len

func (q *Queue) Len() int

type Set

type Set struct {
	// contains filtered or unexported fields
}

func NewSet

func NewSet() *Set

func (*Set) Add

func (c *Set) Add(key string)

func (*Set) Exists

func (c *Set) Exists(key string) bool

func (*Set) Remove

func (c *Set) Remove(key string) error

func (*Set) Size

func (c *Set) Size() int

type Stack

type Stack struct {
	// contains filtered or unexported fields
}

func NewStack

func NewStack() Stack

func (Stack) Contains

func (s Stack) Contains(val interface{}) bool

func (*Stack) First

func (s *Stack) First() interface{}

func (*Stack) Len

func (s *Stack) Len() int

func (*Stack) Pop

func (s *Stack) Pop() interface{}

func (*Stack) Push

func (s *Stack) Push(v interface{})

Jump to

Keyboard shortcuts

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