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