A priority queue. More...
Public Member Functions | |
T | 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... | |
T | peek () |
PriorityQueue (fm.liveswitch.IFunction2< T, T, fm.liveswitch.CompareResult > comparer) | |
Initializes a new instance of the fm.liveswitch.PriorityQueue class. More... | |
A priority queue.
fm.liveswitch.PriorityQueue< T >.PriorityQueue | ( | fm.liveswitch.IFunction2< T, T, fm.liveswitch.CompareResult > | comparer | ) |
Initializes a new instance of the fm.liveswitch.PriorityQueue class.
comparer | The comparer. |
T fm.liveswitch.PriorityQueue< T >.dequeue | ( | ) |
Dequeues an item.
void fm.liveswitch.PriorityQueue< T >.enqueue | ( | T | item | ) |
Enqueues an item.
item | The item. |
boolean fm.liveswitch.PriorityQueue< T >.exists | ( | T | item | ) |
Checks if an item exists in the queue.
item | The item. |
int fm.liveswitch.PriorityQueue< T >.getCount | ( | ) |
Gets the count.
boolean fm.liveswitch.PriorityQueue< T >.isConsistent | ( | ) |
Determines whether the queue is consistent.
T fm.liveswitch.PriorityQueue< T >.peek | ( | ) |