Class MyBinaryStructHeap<TKey, TValue>
Inheritance
System.Object
MyBinaryStructHeap<TKey, TValue>
Assembly: VRage.Library.dll
Syntax
public class MyBinaryStructHeap<TKey, TValue> : Object where TValue : struct, ValueType
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Constructors
MyBinaryStructHeap(Int32, IComparer<TKey>)
Declaration
public MyBinaryStructHeap(int initialCapacity = 128, IComparer<TKey> comparer = null)
Parameters
Type |
Name |
Description |
System.Int32 |
initialCapacity |
|
System.Collections.Generic.IComparer<TKey> |
comparer |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Full
Declaration
public bool Full { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Clear()
Declaration
Insert(TValue, TKey)
Declaration
public void Insert(TValue value, TKey key)
Parameters
Type |
Name |
Description |
TValue |
value |
|
TKey |
key |
|
Min()
Declaration
Returns
MinKey()
Declaration
Returns
Remove(TKey)
Declaration
public TValue Remove(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
Remove(TValue, IEqualityComparer<TValue>)
Declaration
public TValue Remove(TValue value, IEqualityComparer<TValue> comparer = null)
Parameters
Type |
Name |
Description |
TValue |
value |
|
System.Collections.Generic.IEqualityComparer<TValue> |
comparer |
|
Returns
RemoveMax()
Declaration
public TValue RemoveMax()
Returns
RemoveMin()
Declaration
public TValue RemoveMin()
Returns