Interface ICritBitTree<TValue>
Assembly: Mars.Common.dll
Syntax
public interface ICritBitTree<TValue>
Type Parameters
Properties
|
Improve this Doc
View Source
Count
Gets the number of entries.
Declaration
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Item[Int32[]]
Gets the value for the given
Declaration
TValue this[int[] key] { get; }
Parameters
Type |
Name |
Description |
System.Int32[] |
key |
The key to retrieve or null if none existed. |
Property Value
Methods
|
Improve this Doc
View Source
Add(Int32[], TValue)
Add the given with the specified to this tree.
Declaration
TValue Add(int[] key, TValue value)
Parameters
Type |
Name |
Description |
System.Int32[] |
key |
The key of the pair |
TValue |
value |
The value to add. |
Returns
|
Improve this Doc
View Source
ContainsKey(Int32[])
Checks whether the specified key is in the tree.
Declaration
bool ContainsKey(int[] key)
Parameters
Type |
Name |
Description |
System.Int32[] |
key |
The key to check |
Returns
Type |
Description |
System.Boolean |
Returns true, when the is part of the tree. |
|
Improve this Doc
View Source
Query(Int32[], Int32[])
Reads the entries in this tree for the given window.
Declaration
IEnumerable<TValue> Query(int[] lowerLeft, int[] upperRight)
Parameters
Type |
Name |
Description |
System.Int32[] |
lowerLeft |
Lower left coordinate of this window |
System.Int32[] |
upperRight |
Upper right coordinate of this window. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TValue> |
Returns an iterator on the elements intersecting with the given window.
|
|
Improve this Doc
View Source
Remove(Int32[])
Removes the value associated to the given
Declaration
Parameters
Type |
Name |
Description |
System.Int32[] |
key |
The key to remove. |
Returns
Type |
Description |
TValue |
Returns the value removed from the tree or null if none existed. |
Extension Methods