Class RBTreeNode
Node class used for proper storing of data in the Map Collection.
Inheritance
System.Object
RBTreeNode
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.CompoundFile.DocIO.Net
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class RBTreeNode
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 | Refernce 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 | Refernce 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 | Description |
---|---|
NodeColor |
IsBlack
Is current node set to black color?
Declaration
public bool IsBlack { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsNil
Is current node Nil element or not?
Declaration
public bool IsNil { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsRed
Is current node set to red color?
Declaration
public bool IsRed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Key
Key part of stored in node data.
Declaration
public object Key { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Left
Reference on left branch.
Declaration
public RBTreeNode Left { get; set; }
Property Value
Type | Description |
---|---|
RBTreeNode |
Parent
Reference on parent branch.
Declaration
public RBTreeNode Parent { get; set; }
Property Value
Type | Description |
---|---|
RBTreeNode |
Right
Reference on right branch.
Declaration
public RBTreeNode Right { get; set; }
Property Value
Type | Description |
---|---|
RBTreeNode |
Value
Value part of stored in node data.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |