示例#1
0
 public ActiveNode(T data, ActiveParentNode <T> up, NormalNode <T> left, NormalNode <T> right)
     : base(data)
 {
     this.Up    = up;
     this.Left  = left;
     this.Right = right;
 }
示例#2
0
 public override ActiveNode <T> RecreateAsActive(NormalNode <T> secondChild)
 {
     return(new ActiveNode <T>(this.Data, this.Up, secondChild, this.Right));
 }
示例#3
0
 public ActiveParentRightNode(T data, ActiveParentNode <T> up, NormalNode <T> right)
     : base(data, up)
 {
     this.Right = right;
 }
示例#4
0
 public ActiveParentLeftNode(T data, ActiveParentNode <T> up, NormalNode <T> left)
     : base(data, up)
 {
     this.Left = left;
 }
示例#5
0
 public abstract ActiveNode <T> RecreateAsActive(NormalNode <T> secondChild);
示例#6
0
 public NormalNode(T data, NormalNode <T> left, NormalNode <T> right)
     : base(data)
 {
     this.Left  = left;
     this.Right = right;
 }