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