T_PurpleKingdomGames_Core_Collections_BinaryHeap_1 - PurpleKingdomGames/CoreLibs GitHub Wiki
A binary heap implementation for any types that extend IComparable
System.Object
  PurpleKingdomGames.Core.Collections.BinaryHeap(T)
Namespace: PurpleKingdomGames.Core.Collections
Assembly: PurpleKingdomGamesCore (in PurpleKingdomGamesCore.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public class BinaryHeap<T>
where T : IComparable
- T
 - Any type that extends IComparable
 
| Name | Description | |
|---|---|---|
![]()  | 
BinaryHeap(T) | Initializes a new instance of the BinaryHeap(T) class | 
| Name | Description | |
|---|---|---|
![]()  | 
Add | Add a single item to the heap | 
![]()  | 
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.) | 
![]()  | 
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | 
![]()  | 
GetType | Gets the type of the current instance. (Inherited from Object.) | 
![]()  | 
IndexOf | Gets the index of the specified item in the heap | 
![]()  | 
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
![]()  | 
Remove | Get the lowest value from the top of the heap | 
![]()  | 
Sort | Resort the heap from the specified index. Used when an items value changes | 
![]()  | 
ToString | Returns a string that represents the current object. (Inherited from Object.) | 
| Name | Description | |
|---|---|---|
![]()  | 
Count | The number of items on the heap | 


