heap

package
v0.0.0-...-db1a295 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float32Heap

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

Float32Heap int heap

func NewFloat32Heap

func NewFloat32Heap(items ...float32) *Float32Heap

NewFloat32Heap new int heap

func (*Float32Heap) Empty

func (h *Float32Heap) Empty() bool

Empty empty

func (*Float32Heap) Len

func (h *Float32Heap) Len() int

Len len

func (*Float32Heap) Pop

func (h *Float32Heap) Pop() (float32, bool)

Pop pop

func (*Float32Heap) Push

func (h *Float32Heap) Push(v float32)

Push push

func (*Float32Heap) Remove

func (h *Float32Heap) Remove(index int) (float32, bool)

Remove remove

func (*Float32Heap) Top

func (h *Float32Heap) Top() (float32, bool)

Top top

type Float64Heap

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

Float64Heap int heap

func NewFloat64Heap

func NewFloat64Heap(items ...float64) *Float64Heap

NewFloat64Heap new int heap

func (*Float64Heap) Empty

func (h *Float64Heap) Empty() bool

Empty empty

func (*Float64Heap) Len

func (h *Float64Heap) Len() int

Len len

func (*Float64Heap) Pop

func (h *Float64Heap) Pop() (float64, bool)

Pop pop

func (*Float64Heap) Push

func (h *Float64Heap) Push(v float64)

Push push

func (*Float64Heap) Remove

func (h *Float64Heap) Remove(index int) (float64, bool)

Remove remove

func (*Float64Heap) Top

func (h *Float64Heap) Top() (float64, bool)

Top top

type Heap

type Heap interface {
	Len() int
	Empty() bool
	Top() (int, bool)
	Pop() (int, bool)
	Remove(index int) (int, bool)
	Push(v int)
}

type Int16Heap

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

Int16Heap int heap

func NewInt16Heap

func NewInt16Heap(items ...int16) *Int16Heap

NewInt16Heap new int heap

func (*Int16Heap) Empty

func (h *Int16Heap) Empty() bool

Empty empty

func (*Int16Heap) Len

func (h *Int16Heap) Len() int

Len len

func (*Int16Heap) Pop

func (h *Int16Heap) Pop() (int16, bool)

Pop pop

func (*Int16Heap) Push

func (h *Int16Heap) Push(v int16)

Push push

func (*Int16Heap) Remove

func (h *Int16Heap) Remove(index int) (int16, bool)

Remove remove

func (*Int16Heap) Top

func (h *Int16Heap) Top() (int16, bool)

Top top

type Int32Heap

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

Int32Heap int heap

func NewInt32Heap

func NewInt32Heap(items ...int32) *Int32Heap

NewInt32Heap new int heap

func (*Int32Heap) Empty

func (h *Int32Heap) Empty() bool

Empty empty

func (*Int32Heap) Len

func (h *Int32Heap) Len() int

Len len

func (*Int32Heap) Pop

func (h *Int32Heap) Pop() (int32, bool)

Pop pop

func (*Int32Heap) Push

func (h *Int32Heap) Push(v int32)

Push push

func (*Int32Heap) Remove

func (h *Int32Heap) Remove(index int) (int32, bool)

Remove remove

func (*Int32Heap) Top

func (h *Int32Heap) Top() (int32, bool)

Top top

type Int64Heap

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

Int64Heap int heap

func NewInt64Heap

func NewInt64Heap(items ...int64) *Int64Heap

NewInt64Heap new int heap

func (*Int64Heap) Empty

func (h *Int64Heap) Empty() bool

Empty empty

func (*Int64Heap) Len

func (h *Int64Heap) Len() int

Len len

func (*Int64Heap) Pop

func (h *Int64Heap) Pop() (int64, bool)

Pop pop

func (*Int64Heap) Push

func (h *Int64Heap) Push(v int64)

Push push

func (*Int64Heap) Remove

func (h *Int64Heap) Remove(index int) (int64, bool)

Remove remove

func (*Int64Heap) Top

func (h *Int64Heap) Top() (int64, bool)

Top top

type IntHeap

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

IntHeap int heap

func NewIntHeap

func NewIntHeap(items ...int) *IntHeap

NewIntHeap new int heap

func (*IntHeap) Empty

func (h *IntHeap) Empty() bool

Empty empty

func (*IntHeap) Len

func (h *IntHeap) Len() int

Len len

func (*IntHeap) Pop

func (h *IntHeap) Pop() (int, bool)

Pop pop

func (*IntHeap) Push

func (h *IntHeap) Push(v int)

Push push

func (*IntHeap) Remove

func (h *IntHeap) Remove(index int) (int, bool)

Remove remove

func (*IntHeap) Top

func (h *IntHeap) Top() (int, bool)

Top top

type Uint16Heap

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

Uint16Heap int heap

func NewUint16Heap

func NewUint16Heap(items ...uint16) *Uint16Heap

NewUint16Heap new int heap

func (*Uint16Heap) Empty

func (h *Uint16Heap) Empty() bool

Empty empty

func (*Uint16Heap) Len

func (h *Uint16Heap) Len() int

Len len

func (*Uint16Heap) Pop

func (h *Uint16Heap) Pop() (uint16, bool)

Pop pop

func (*Uint16Heap) Push

func (h *Uint16Heap) Push(v uint16)

Push push

func (*Uint16Heap) Remove

func (h *Uint16Heap) Remove(index int) (uint16, bool)

Remove remove

func (*Uint16Heap) Top

func (h *Uint16Heap) Top() (uint16, bool)

Top top

type Uint32Heap

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

Uint32Heap int heap

func NewUint32Heap

func NewUint32Heap(items ...uint32) *Uint32Heap

NewUint32Heap new int heap

func (*Uint32Heap) Empty

func (h *Uint32Heap) Empty() bool

Empty empty

func (*Uint32Heap) Len

func (h *Uint32Heap) Len() int

Len len

func (*Uint32Heap) Pop

func (h *Uint32Heap) Pop() (uint32, bool)

Pop pop

func (*Uint32Heap) Push

func (h *Uint32Heap) Push(v uint32)

Push push

func (*Uint32Heap) Remove

func (h *Uint32Heap) Remove(index int) (uint32, bool)

Remove remove

func (*Uint32Heap) Top

func (h *Uint32Heap) Top() (uint32, bool)

Top top

type Uint64Heap

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

Uint64Heap int heap

func NewUint64Heap

func NewUint64Heap(items ...uint64) *Uint64Heap

NewUint64Heap new int heap

func (*Uint64Heap) Empty

func (h *Uint64Heap) Empty() bool

Empty empty

func (*Uint64Heap) Len

func (h *Uint64Heap) Len() int

Len len

func (*Uint64Heap) Pop

func (h *Uint64Heap) Pop() (uint64, bool)

Pop pop

func (*Uint64Heap) Push

func (h *Uint64Heap) Push(v uint64)

Push push

func (*Uint64Heap) Remove

func (h *Uint64Heap) Remove(index int) (uint64, bool)

Remove remove

func (*Uint64Heap) Top

func (h *Uint64Heap) Top() (uint64, bool)

Top top

type UintHeap

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

UintHeap int heap

func NewUintHeap

func NewUintHeap(items ...uint) *UintHeap

NewUintHeap new int heap

func (*UintHeap) Empty

func (h *UintHeap) Empty() bool

Empty empty

func (*UintHeap) Len

func (h *UintHeap) Len() int

Len len

func (*UintHeap) Pop

func (h *UintHeap) Pop() (uint, bool)

Pop pop

func (*UintHeap) Push

func (h *UintHeap) Push(v uint)

Push push

func (*UintHeap) Remove

func (h *UintHeap) Remove(index int) (uint, bool)

Remove remove

func (*UintHeap) Top

func (h *UintHeap) Top() (uint, bool)

Top top

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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