Esempio n. 1
0
 public void Reset()
 {
     current = null;
 }
Esempio n. 2
0
 public void Dispose()
 {
     current = null;
     tree    = null;
 }
Esempio n. 3
0
 /// <summary>
 /// CONSTRUCTOR.
 /// If allowDuplictes is set to false, no duplicate items will be inserted.
 /// </summary>
 public BinarySearchTree(bool allowDuplicates)
 {
     _count           = 0;
     _allowDuplicates = allowDuplicates;
     Root             = null;
 }
Esempio n. 4
0
 /// <summary>
 /// CONSTRUCTOR.
 /// Allows duplicates by default.
 /// </summary>
 public BinarySearchTree()
 {
     _count           = 0;
     _allowDuplicates = true;
     Root             = null;
 }
Esempio n. 5
0
 /// <summary>
 /// Clears all elements from tree.
 /// </summary>
 public virtual void Clear()
 {
     Root   = null;
     _count = 0;
 }
Esempio n. 6
0
 public BinarySearchTree()
 {
     Root   = null;
     _count = 0;
 }