Class RedBlackTreeNode<T>
RedBlackTree<T> node.
Inheritance
System.Object
RedBlackTreeNode<T>
Implements
Inherited Members
Namespace: ISynergy.Framework.Core.Collections
Assembly: ISynergy.Framework.Core.dll
Syntax
public class RedBlackTreeNode<T> : BinaryNode<RedBlackTreeNode<T>>, IBinaryTreeNode<RedBlackTreeNode<T>>
Type Parameters
Name | Description |
---|---|
T | The type of the value to be stored. |
Constructors
View SourceRedBlackTreeNode()
Constructs a new empty node.
Declaration
public RedBlackTreeNode()
RedBlackTreeNode(T)
Constructs a node containing the given .
Declaration
public RedBlackTreeNode(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value |
Properties
View SourceColor
Gets or sets this node's color.
Declaration
public RedBlackTreeNodeType Color { get; set; }
Property Value
Type | Description |
---|---|
RedBlackTreeNodeType |
Parent
Gets or sets a reference to this node's parent node.
Declaration
public RedBlackTreeNode<T> Parent { get; set; }
Property Value
Type | Description |
---|---|
RedBlackTreeNode<T> |
Value
Gets or sets the value associated with this node.
Declaration
public T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
Methods
View SourceToString()
Returns a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A |