| Table of Contents
|
public class PriorityQueue<T>
| Visibility | Description |
|---|---|
| Public | PriorityQueue(PriorityQueueComparer<T> comparer) Create a new queue instance. |
| Public | PriorityQueue(int capacity, PriorityQueueComparer<T> comparer) Create a new queue instance. |
| Visibility | Description |
|---|---|
| Public | Enqueue(T item) Add an item to queue. |
| Public | Dequeue() Get the next item from the queue. |
| Public | Peek() Get the next item in the queue without removing it. |
| Public | Remove(T item) Remove an item from the queue. |
| Public | Clear() Clear all items from the queue. |
| Protected | SwitchElements(int i, int j) Switch the position of two index positions in the queue. |
| Protected | RebalanceBinaryArrayStartingAt(int i) Rebalance the queue starting at a specific index into PriorityQueue<T>._list. |
| Public | ToString() (Inherited from Object) |
| Public | Equals(object obj) (Inherited from Object) |
| Public | GetHashCode() (Inherited from Object) |
| Public | GetType() (Inherited from Object) |
| Protected | MemberwiseClone() (Inherited from Object) |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by