BinaryHeapTElement Methods |
The BinaryHeapTElement generic type exposes the following members.
| Name | Description | |
|---|---|---|
| Clear |
Clears all elements from the heap
(Overrides HeapBaseTElementClear.) | |
| Contains |
Determines whether this heap contains the element specified
(Overrides HeapBaseTElementContains(TElement).) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| ExtractRoot |
Extracts and removes the root of the heap.
(Overrides HeapBaseTElementExtractRoot.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Insert |
Inserts the specified element into the heap at the right spot
(Overrides HeapBaseTElementInsert(TElement).) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Merge |
Merges the specified heap into this heap.
| |
| Remove |
Removes the element specified
(Overrides HeapBaseTElementRemove(TElement).) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| UpdateKeyTKeyType(TElement, ActionTElement, TKeyType, TKeyType) |
Updates the key of the element passed in. Only use this method for elements where the key is a property of the element, not the element itself.
This means that if you have a heap with value typed elements (e.g. integers), updating the key is updating the value of the element itself, and because
a heap might contain elements with the same value, this could lead to undefined results.
(Overrides HeapBaseTElementUpdateKeyTKeyType(TElement, ActionTElement, TKeyType, TKeyType).) | |
| UpdateKeyTKeyType(TElement, ActionTElement, TKeyType, TKeyType) |
Updates the key of the element passed in. Only use this method for elements where the key is a property of the element, not the element itself.
This means that if you have a heap with value typed elements (e.g. integers), updating the key is updating the value of the element itself, and because
a heap might contain elements with the same value, this could lead to undefined results.
(Inherited from HeapBaseTElement.) |