RedBlackTree<T>
Red-Black tree data structure.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Type Parameters:
T
The data type contained in the tree.
Syntax:
public class RedBlackTree<T> : BinarySearchTreeBase<T>, ISearchTree<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Inheritance: objectBinarySearchTreeBase<T>RedBlackTree<T>
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RedBlackTree<T> class.
public RedBlackTree()
The default comparer for the data type will be used.
Initializes a new instance of the RedBlackTree<T> class.
Initializes a new instance of the RedBlackTree<T> class.
Methods
Adds an element with the provided key and value to the IDictionary<TKey, TValue>.
protected override void AddItem(T item)
The item.
Overrides:
Removes the element with the specified key from the IDictionary<TKey, TValue>.
protected override bool RemoveItem(T item)
The item to remove.
Returns:true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original IDictionary<TKey, TValue>.
Overrides: