Constructor LurchTable
LurchTable(Int32)
Creates a LurchTable that can store up to (capacity) items efficiently.
Declaration
public LurchTable(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity |
LurchTable(Int32, LurchTableOrder)
Creates a LurchTable that can store up to (capacity) items efficiently.
Declaration
public LurchTable(int capacity, LurchTableOrder ordering)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity | |
LurchTableOrder | ordering |
LurchTable(Int32, LurchTableOrder, IEqualityComparer<TKey>)
Creates a LurchTable that can store up to (capacity) items efficiently.
Declaration
public LurchTable(int capacity, LurchTableOrder ordering, IEqualityComparer<TKey> comparer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity | |
LurchTableOrder | ordering | |
IEqualityComparer<TKey> | comparer |
LurchTable(LurchTableOrder, Int32)
Creates a LurchTable that orders items by (ordering) and removes items once the specified (limit) is reached.
Declaration
public LurchTable(LurchTableOrder ordering, int limit)
Parameters
Type | Name | Description |
---|---|---|
LurchTableOrder | ordering | |
System.Int32 | limit |
LurchTable(LurchTableOrder, Int32, IEqualityComparer<TKey>)
Creates a LurchTable that orders items by (ordering) and removes items once the specified (limit) is reached.
Declaration
public LurchTable(LurchTableOrder ordering, int limit, IEqualityComparer<TKey> comparer)
Parameters
Type | Name | Description |
---|---|---|
LurchTableOrder | ordering | |
System.Int32 | limit | |
IEqualityComparer<TKey> | comparer |
LurchTable(LurchTableOrder, Int32, Int32, Int32, Int32, IEqualityComparer<TKey>)
Creates a LurchTable that orders items by (ordering) and removes items once the specified (limit) is reached.
Declaration
public LurchTable(LurchTableOrder ordering, int limit, int hashSize, int allocSize, int lockSize, IEqualityComparer<TKey> comparer)
Parameters
Type | Name | Description |
---|---|---|
LurchTableOrder | ordering | The type of linking for the items |
System.Int32 | limit | The maximum allowable number of items, or int.MaxValue for unlimited |
System.Int32 | hashSize | The number of hash buckets to use for the collection, usually 1/2 estimated capacity |
System.Int32 | allocSize | The number of entries to allocate at a time, usually 1/16 estimated capacity |
System.Int32 | lockSize | The number of concurrency locks to preallocate, usually 1/256 estimated capacity |
IEqualityComparer<TKey> | comparer | The element hash generator for keys |