BinaryHeap used from: http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=789
More...
|
| | BinaryHeap () |
| | Creates a BinaryHeap with a Default IComparer. More...
|
| |
| | BinaryHeap (IComparer< T > comp) |
| | Creates a BinaryHeap with a Custom IComparer. More...
|
| |
| void | Clear () |
| | Removes All Items from the Collection. More...
|
| |
| void | TrimExcess () |
| | Sets the Capacity to the Actual Number of Elements in the BinaryHeap, if that Number is Less Than a Threshold Value. More...
|
| |
| void | Insert (T newItem) |
| | Inserts an Item onto the Heap. More...
|
| |
| bool | Contains (T item) |
| | Return the Root Item from the Collection, without Removing it. More...
|
| |
| T | Peek () |
| | Returns the Item at the Top of the BinaryHeap. More...
|
| |
| T | RemoveRoot () |
| | Removes and Returns the Root Item from the Collection. More...
|
| |
| IEnumerator | GetEnumerator () |
| |
|
| int | Count [get] |
| | Get a Count of the Number of Items in the Collection. More...
|
| |
BinaryHeap used from: http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=789
Selects and Bubbles Smallest Object on Top of Heap.
- Template Parameters
-
| T | Any Object that can be Sorted. |
| BinaryHeap< T >.BinaryHeap |
( |
| ) |
|
Creates a BinaryHeap with a Default IComparer.
| BinaryHeap< T >.BinaryHeap |
( |
IComparer< T > |
comp | ) |
|
Creates a BinaryHeap with a Custom IComparer.
- Parameters
-
Removes All Items from the Collection.
Return the Root Item from the Collection, without Removing it.
- Returns
- Returns the Item at the Root of the Heap.
Inserts an Item onto the Heap.
- Parameters
-
| newItem | The Item to be Inserted. |
Returns the Item at the Top of the BinaryHeap.
Removes and Returns the Root Item from the Collection.
- Returns
- Returns the Item at the Root of the Heap.
Sets the Capacity to the Actual Number of Elements in the BinaryHeap, if that Number is Less Than a Threshold Value.
The current threshold value is 90% (.NET 3.5), but might change in a future release.
Get a Count of the Number of Items in the Collection.
The documentation for this class was generated from the following file: