HeapOrdering

net.walend.disentangle.heap.HeapOrdering
trait HeapOrdering[K] extends PartialOrdering[K]

The heap moves the greatest value to the top, according to some HeapOrdering.

Attributes

K

the key type in this heap map.

Graph
Supertypes
trait PartialOrdering[K]
trait Equiv[K]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

A key that will among items on the bottom of the heap. Used primarily to add items that will eventually flow higher.

A key that will among items on the bottom of the heap. Used primarily to add items that will eventually flow higher.

Attributes

def AlwaysTop: K

A key that will always be at the top of the heap if present at all. Used to efficiently remove items from the heap.

A key that will always be at the top of the heap if present at all. Used to efficiently remove items from the heap.

Attributes

def checkKey(key: K): Unit

Attributes

Throws:
IllegalArgumentException

if the key is unusable

Inherited methods

def equiv(x: K, y: K): Boolean

Attributes

Inherited from:
PartialOrdering
def gt(x: K, y: K): Boolean

Attributes

Inherited from:
PartialOrdering
def gteq(x: K, y: K): Boolean

Attributes

Inherited from:
PartialOrdering
def lt(x: K, y: K): Boolean

Attributes

Inherited from:
PartialOrdering
def lteq(x: K, y: K): Boolean

Attributes

Inherited from:
PartialOrdering
def reverse: PartialOrdering[T]

Attributes

Inherited from:
PartialOrdering
def tryCompare(x: K, y: K): Option[Int]

Attributes

Inherited from:
PartialOrdering