public MyRedBlackTreeNode(T data, RedBlackTreeNodeColor color, MyRedBlackTreeNode <T> left, MyRedBlackTreeNode <T> right) : this(data, color) { Left = left; Right = right; }
public MyRedBlackTreeNode(T data, RedBlackTreeNodeColor color, MyRedBlackTreeNode <T> left, MyRedBlackTreeNode <T> right, MyRedBlackTreeNode <T> parent) : this(data, color, left, right) { Parent = parent; }
internal RedBlackTreeNode(RedBlackTreeNode <T> parent, T value) { Parent = parent; Values = new List <T> { value }; NodeColor = RedBlackTreeNodeColor.Red; }
internal AsIntervalRedBlackTreeNode(AsIntervalRedBlackTreeNode <T> parent, T value) { Parent = parent; Value = value; NodeColor = RedBlackTreeNodeColor.Red; }
public MyRedBlackTreeNode(T data, RedBlackTreeNodeColor color, MyRedBlackTreeNode <T> parent) : this(data) { Color = color; Parent = parent; }
public MyRedBlackTreeNode(T data, RedBlackTreeNodeColor color) : this(data) { Color = color; }
public RedBlackTreeNode(RedBlackTreeNode <T> parent, T value) { Parent = parent; Value = value; NodeColor = RedBlackTreeNodeColor.Red; }
public void SetRed() => Color = RedBlackTreeNodeColor.Red;
public void SetBlack() => Color = RedBlackTreeNodeColor.Black;
public RedBlackTreeNode(KeyValuePair <TKey, TValue> item, RedBlackTreeNodeColor color = RedBlackTreeNodeColor.Black, RedBlackTreeNode <TKey, TValue> left = null, RedBlackTreeNode <TKey, TValue> right = null, RedBlackTreeNode <TKey, TValue> parent = null) : base(item, left, right, parent) { Color = color; }
public RedBlackTreeNode(TKey key, TValue value, RedBlackTreeNodeColor color = RedBlackTreeNodeColor.Black, RedBlackTreeNode <TKey, TValue> left = null, RedBlackTreeNode <TKey, TValue> right = null, RedBlackTreeNode <TKey, TValue> parent = null) : this(new KeyValuePair <TKey, TValue>(key, value), color, left, right, parent) { }
/// <summary> /// Constructor. /// </summary> /// <param name="key">The key to be stored in the node. </param> /// <param name="value">The value to be stored in the node. </param> /// <param name="color">The color of the node, default is red. </param> public RedBlackTreeNode(TKey key, TValue value, RedBlackTreeNodeColor color = RedBlackTreeNodeColor.Red) : base(key, value) { Color = color; }