Ejemplo n.º 1
0
        public AVLTreeSort(CompareMethod <T> aSortMethod, DuplicateHandlingType aDuplicateHandling)
        {
            sortMethod        = aSortMethod;
            duplicateHandling = aDuplicateHandling;
            switch (DuplicateHandling)
            {
            case DuplicateHandlingType.CollectDuplicates:
                tree = new BaseAVLTreeSort <T, T[]> (aSortMethod, aDuplicateHandling);
                break;

            case DuplicateHandlingType.ThrowException:
            case DuplicateHandlingType.Drop:
                tree = new BaseAVLTreeSort <T, T> (aSortMethod, aDuplicateHandling);
                break;
            }
        }
Ejemplo n.º 2
0
 public SortEventArgs(IAVLTreeSort <T> aTree, CompareMethod <T> aMethod, DuplicateHandlingType aDuplicates)
 {
     tree              = aTree;
     method            = aMethod;
     duplicateHandling = aDuplicates;
 }
Ejemplo n.º 3
0
 public void Disconnect()
 {
     tree.Disconnect();
     tree = null;
 }
Ejemplo n.º 4
0
 public void Disconnect()
 {
     tree   = null;
     method = null;
 }