Class BagMap
Static helpers.
Inheritance
System.Object
BagMap
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public static class BagMap : object
Methods
| Improve this Doc View SourceNew<T>(Nullable<Func<T, T, Boolean>>, Nullable<Func<T, Int32>>)
Constructs a new BagMap<T, TMap>.
Declaration
public static BagMap<T, MapHashLinked<int, T, SFunc<T, T, bool>, SFunc<T, int>>> New<T>(Func<T, T, bool>? equate = null, Func<T, int>? hash = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<Func<T, T, System.Boolean>> | equate | The function for comparing |
System.Nullable<Func<T, System.Int32>> | hash | The function for hashing |
Returns
Type | Description |
---|---|
BagMap<T, MapHashLinked<System.Int32, T, SFunc<T, T, System.Boolean>, SFunc<T, System.Int32>>> | The new constructed BagMap<T, TMap>. |
Type Parameters
Name | Description |
---|---|
T | The type of values stored in this data structure. |
NewHashLinked<T>(Nullable<Func<T, T, Boolean>>, Nullable<Func<T, Int32>>)
Constructs a new BagMap<T, TMap>.
Declaration
public static BagMap<T, MapHashLinked<int, T, SFunc<T, T, bool>, SFunc<T, int>>> NewHashLinked<T>(Func<T, T, bool>? equate = null, Func<T, int>? hash = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<Func<T, T, System.Boolean>> | equate | The function for comparing |
System.Nullable<Func<T, System.Int32>> | hash | The function for hashing |
Returns
Type | Description |
---|---|
BagMap<T, MapHashLinked<System.Int32, T, SFunc<T, T, System.Boolean>, SFunc<T, System.Int32>>> | The new constructed BagMap<T, TMap>. |
Type Parameters
Name | Description |
---|---|
T | The type of values stored in this data structure. |