コード例 #1
0
ファイル: SetBase.cs プロジェクト: mstaessen/fluorinefx
 /// <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(IComparer comparer, bool allowDuplicates)
 {
     _comparer = comparer;
     _allowDuplicates = allowDuplicates;
     _tree = new RbTree(_comparer);
 }
コード例 #2
0
ファイル: SetBase.cs プロジェクト: mstaessen/fluorinefx
 /// <summary>
 /// Removes all objects from the set.
 /// </summary>
 public void Clear()
 {
     _tree = new RbTree(_comparer);
     _count = 0;
 }
コード例 #3
0
ファイル: SetEnumerator.cs プロジェクト: apakian/fluorinefx
 public SetEnumerator(RbTree tree)
 {
     _tree = tree;
 }
コード例 #4
0
ファイル: SetBase.cs プロジェクト: apakian/fluorinefx
 /// <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);
 }
コード例 #5
0
 public ReversedTree(RbTree tree)
 {
     _tree = tree;
 }
コード例 #6
0
ファイル: ReversedTree.cs プロジェクト: Joy011024/PickUpData
 public ReversedTree(RbTree tree)
 {
     this._tree = tree;
 }