Esempio n. 1
0
 public SetEnumerator(RbTree tree)
 {
     _tree = tree;
 }
Esempio n. 2
0
 public ReversedTree(RbTree tree)
 {
     _tree = tree;
 }
Esempio n. 3
0
 public SetEnumerator(RbTree tree)
 {
     _tree = tree;
 }
Esempio n. 4
0
 public ReversedTree(RbTree tree)
 {
     _tree = tree;
 }
Esempio n. 5
0
 /// <summary>
 /// Creates an instance of SetBase.
 /// </summary>
 /// <param name="comparer">Comparer that specifies sort order of the elements.</param>
 /// <param name="allowDuplicates">Whether multiple duplicate (equivalent) elements are allowed.</param>
 public SetBase(System.Collections.IComparer comparer, bool allowDuplicates)
 {
     _comparer = comparer;
     _allowDuplicates = allowDuplicates;
     _tree = new RbTree(_comparer);
 }
Esempio n. 6
0
 /// <summary>
 /// Removes all objects from the set.
 /// </summary>
 public void Clear()
 {
     _tree = new RbTree(_comparer);
     _count = 0;
 }
Esempio n. 7
0
 /// <summary>
 /// Creates an instance of SetBase.
 /// </summary>
 /// <param name="comparer">Comparer that specifies sort order of the elements.</param>
 /// <param name="allowDuplicates">Whether multiple duplicate (equivalent) elements are allowed.</param>
 public SetBase(System.Collections.IComparer comparer, bool allowDuplicates)
 {
     _comparer        = comparer;
     _allowDuplicates = allowDuplicates;
     _tree            = new RbTree(_comparer);
 }
Esempio n. 8
0
 /// <summary>
 /// Removes all objects from the set.
 /// </summary>
 public void Clear()
 {
     _tree  = new RbTree(_comparer);
     _count = 0;
 }