Class RedBlackTree<TKey, TValue>
Red-black tree specialized for key-based value retrieval.
Implements
ICollection<KeyValuePair<TKey, TValue>>
Inherited Members
Namespace: ISynergy.Framework.Core.Collections
Assembly: ISynergy.Framework.Core.dll
Syntax
public class RedBlackTree<TKey, TValue> : RedBlackTree<KeyValuePair<TKey, TValue>>
Type Parameters
Name | Description |
---|---|
TKey | The type of the key. |
TValue | The type of the value. |
Remarks
See RedBlackTree<T>.
Constructors
View SourceRedBlackTree()
Constructs a new RedBlackTree<T> using the default
TKey
.
Declaration
public RedBlackTree()
RedBlackTree(IComparer<KeyValuePair<TKey, TValue>>)
Constructs a new RedBlackTree<T> using
the provided
Declaration
public RedBlackTree(IComparer<KeyValuePair<TKey, TValue>> comparer)
Parameters
Type | Name | Description |
---|---|---|
IComparer<KeyValuePair<TKey, TValue>> | comparer | The element comparer to be used to order elements in the tree. |
RedBlackTree(IComparer<KeyValuePair<TKey, TValue>>, Boolean)
Constructs a new RedBlackTree<T> using
the provided
Declaration
public RedBlackTree(IComparer<KeyValuePair<TKey, TValue>> comparer, bool allowDuplicates)
Parameters
Type | Name | Description |
---|---|---|
IComparer<KeyValuePair<TKey, TValue>> | comparer | The element comparer to be used to order elements in the tree. |
System.Boolean | allowDuplicates | Pass |
RedBlackTree(Boolean)
Constructs a new RedBlackTree<T> using the default
TKey
.
Declaration
public RedBlackTree(bool allowDuplicates)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowDuplicates | Pass |
Implements
ICollection<>
ICollection<>