heap

package
v0.0.0-...-736f5eb Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heap

type Heap struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() *Heap

func NewMax

func NewMax() *Heap

func NewMin

func NewMin() *Heap

func (*Heap) Extract

func (h *Heap) Extract() (el Item)

func (*Heap) Get

func (h *Heap) Get(n int) Item

func (*Heap) Insert

func (h *Heap) Insert(n Item)

func (*Heap) Len

func (h *Heap) Len() int

func (*Heap) Less

func (h *Heap) Less(a, b Item) bool

type Int

type Int int

func (Int) Less

func (x Int) Less(than Item) bool

type Item

type Item interface {
	Less(than Item) bool
}

Jump to

Keyboard shortcuts

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