fm.liveswitch.PriorityQueue< T > Class Template Reference

A priority queue. More...

Public Member Functions

dequeue ()
 Dequeues an item. More...
 
void enqueue (T item)
 Enqueues an item. More...
 
boolean exists (T item)
 Checks if an item exists in the queue. More...
 
int getCount ()
 Gets the count. More...
 
boolean isConsistent ()
 Determines whether the queue is consistent. More...
 
peek ()
 
 PriorityQueue (fm.liveswitch.IFunction2< T, T, fm.liveswitch.CompareResult > comparer)
 Initializes a new instance of the fm.liveswitch.PriorityQueue class. More...
 

Detailed Description

A priority queue.

Constructor & Destructor Documentation

◆ PriorityQueue()

Initializes a new instance of the fm.liveswitch.PriorityQueue class.

Parameters
comparerThe comparer.

Member Function Documentation

◆ dequeue()

T fm.liveswitch.PriorityQueue< T >.dequeue ( )

Dequeues an item.

◆ enqueue()

void fm.liveswitch.PriorityQueue< T >.enqueue ( item)

Enqueues an item.

Parameters
itemThe item.

◆ exists()

boolean fm.liveswitch.PriorityQueue< T >.exists ( item)

Checks if an item exists in the queue.

Parameters
itemThe item.

◆ getCount()

int fm.liveswitch.PriorityQueue< T >.getCount ( )

Gets the count.

◆ isConsistent()

boolean fm.liveswitch.PriorityQueue< T >.isConsistent ( )

Determines whether the queue is consistent.

◆ peek()

T fm.liveswitch.PriorityQueue< T >.peek ( )