Apache REEF
0.15.0
Retainable Evaluator Execution Framework
|
A simple priority queue implementation, where the head of the queue is the smallest element in the priority queue. More...
Inherits ICollection< T >.
Public Member Functions | |
PriorityQueue () | |
IEnumerator< T > | GetEnumerator () |
Gets the enumerator of the priority queue. More... | |
T | Peek () |
Peeks at the head of the priority queue, but does not remove the element at the head. More... | |
void | Enqueue (T item) |
Adds an element to the priority queue. More... | |
T | Dequeue () |
Dequeues an item from the priority queue. More... | |
void | Add (T item) |
Enqueue. More... | |
void | Clear () |
Clears the priority queue. More... | |
bool | Contains (T item) |
Checks if the list contains an item. More... | |
void | CopyTo (T[] array, int arrayIndex) |
Copies the priority queue to a compatible array, starting at the array's provided index. More... | |
bool | Remove (T item) |
Remove is not supported. More... | |
Properties | |
int | Count [get] |
Returns the count of the priority queue. More... | |
bool | IsReadOnly [get] |
Always returns false. More... | |
A simple priority queue implementation, where the head of the queue is the smallest element in the priority queue.
T | : | IComparable<T> |
|
inline |
|
inline |
|
inline |
Clears the priority queue.
|
inline |
Checks if the list contains an item.
|
inline |
Copies the priority queue to a compatible array, starting at the array's provided index.
|
inline |
Dequeues an item from the priority queue.
Removes the head of the priority queue, which is the smallest element in the priority queue.
InvalidOperationException | Thrown when the priority queue is empty |
|
inline |
Adds an element to the priority queue.
|
inline |
Gets the enumerator of the priority queue.
The Enumerator returns elements in no guaranteed order.
|
inline |
Peeks at the head of the priority queue, but does not remove the element at the head.
InvalidOperationException | Thrown when the priority queue is empty |
|
inline |
Remove is not supported.
NotSupportedException | Operation not supported |
|
get |
Returns the count of the priority queue.
|
get |
Always returns false.