| PriorityQueueBaseTElement Class |
Namespace: SD.Tools.Algorithmia.PriorityQueues
The PriorityQueueBaseTElement type exposes the following members.
| Name | Description | |
|---|---|---|
| PriorityQueueBaseTElement |
Initializes a new instance of the PriorityQueueBaseTElement class.
|
| Name | Description | |
|---|---|---|
| Count |
Gets the number of elements in the queue
| |
| PriorityComparison |
Gets the priority comparison.
|
| Name | Description | |
|---|---|---|
| Add |
Adds the specified element to the queue
| |
| Clear |
Clears the queue.
| |
| Contains |
Determines whether the queue contains the element specified
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetEnumerator |
Gets the enumerator for this queue
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Peek |
Peeks at the first element of the queue (the one with the highest priority, according to the priority comparison) and returns that element
without removing it
| |
| Remove |
Removes the first element from the queue, if the queue isn't empty.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| SetEqualTElement(IEnumerableTElement) | Overloaded.
Checks whether the enumerable to compare with is equal to the source enumerable, element wise. If elements are in a different order, the
method will still return true. This is different from SequenceEqual which does take order into account
(Defined by IEnumerableExtensionMethods.) | |
| SetEqualTElement(IEnumerableTElement, IEqualityComparerTElement) | Overloaded.
Checks whether the enumerable to compare with is equal to the source enumerable, element wise. If elements are in a different order, the
method will still return true. This is different from SequenceEqual which does take order into account
(Defined by IEnumerableExtensionMethods.) | |
| ToFilteringBindingListTElement |
Converts the passed in enumerable to a FilteringBindingList
(Defined by ExtensionMethods.) | |
| ToHashSetTElement |
Creates a new hashset and adds the source to it.
(Defined by IEnumerableExtensionMethods.) | |
| ToListSafeTElement |
Converts the passed in enumerable to a List(Of T). If toEnumerate is a CommandifiedList(Of T) it will lock on its SyncRoot if it's a synchronized CommandifiedList.
if it's not a commandified list, it will simply call ToList() on the enumerable. If toEnumerate is null, null is returned.
(Defined by ExtensionMethods.) | |
| ToReadOnlyCollectionTDestination |
Converts the enumerable to a ReadOnlyCollection.
(Defined by IEnumerableExtensionMethods.) |
| Name | Description | |
|---|---|---|
| IEnumerableTElementGetEnumerator |
Returns an enumerator that iterates through the collection.
| |
| IEnumerableGetEnumerator |
Returns an enumerator that iterates through a collection.
|