Class RBTreeNode
Node class used for proper storing of data in the Map Collection.
Inheritance
System.Object
RBTreeNode
Namespace: Syncfusion.XlsIO.Implementation.Collections
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class RBTreeNode : Object
Constructors
RBTreeNode(RBTreeNode, RBTreeNode, RBTreeNode, Object, Object)
Create red colored Tree node.
Declaration
public RBTreeNode(RBTreeNode left, RBTreeNode parent, RBTreeNode right, object key, object value)
Parameters
Type | Name | Description |
---|---|---|
RBTreeNode | left | Reference on left branch. |
RBTreeNode | parent | Reference on parent branch. |
RBTreeNode | right | Reference on right branch. |
System.Object | key | Key value of node. |
System.Object | value | Value part of node. |
RBTreeNode(RBTreeNode, RBTreeNode, RBTreeNode, Object, Object, NodeColor)
Main constructor of class.
Declaration
public RBTreeNode(RBTreeNode left, RBTreeNode parent, RBTreeNode right, object key, object value, NodeColor color)
Parameters
Type | Name | Description |
---|---|---|
RBTreeNode | left | Reference on left branch. |
RBTreeNode | parent | Reference on parent branch. |
RBTreeNode | right | Reference on right branch. |
System.Object | key | Key value of node. |
System.Object | value | Value part of node. |
NodeColor | color | Color of node. |
Properties
Color
Color of node branch.
Declaration
public NodeColor Color { get; set; }
Property Value
Type |
---|
NodeColor |
IsBlack
Is current node set to black color?
Declaration
public bool IsBlack { get; }
Property Value
Type |
---|
System.Boolean |
IsNil
Is current node Nil element or not?
Declaration
public bool IsNil { get; set; }
Property Value
Type |
---|
System.Boolean |
IsRed
Is current node set to red color?
Declaration
public bool IsRed { get; }
Property Value
Type |
---|
System.Boolean |
Key
Key part of stored in node data.
Declaration
public object Key { get; set; }
Property Value
Type |
---|
System.Object |
Left
Reference on left branch.
Declaration
public RBTreeNode Left { get; set; }
Property Value
Type |
---|
RBTreeNode |
Parent
Reference on parent branch.
Declaration
public RBTreeNode Parent { get; set; }
Property Value
Type |
---|
RBTreeNode |
Right
Reference on right branch.
Declaration
public RBTreeNode Right { get; set; }
Property Value
Type |
---|
RBTreeNode |
Value
Value part of stored in node data.
Declaration
public object Value { get; set; }
Property Value
Type |
---|
System.Object |