Esempio n. 1
0
 public Tree(ToInt func, Tree <T> tree)
 {
     this.func = func;
     root      = new Point <T>(default(T), this);
     foreach (T data in tree.ToArray())
     {
         Add(data);
     }
 }
Esempio n. 2
0
 public Tree(ToInt func, int capacity)
 {
     this.func = func;
     root      = new Point <T>(default(T), this);
     for (int i = 0; i < capacity; i++)
     {
         Add(default(T));
     }
 }
Esempio n. 3
0
 public Tree(ToInt func, Point <T> root)
 {
     this.func = func;
     this.root = root;
 }
Esempio n. 4
0
 public Tree(ToInt func)
 {
     this.func = func;
     root      = new Point <T>(default(T), this);
 }
Esempio n. 5
0
 public override string ToString()
 {
     return(ToInt.ToString());
 }