natix.CompactDS.SortedList.Build C# (CSharp) Method

Build() public method

public Build ( List sortedList, int n ) : void
sortedList List
n int
return void
        public virtual void Build(List<int> sortedList, int n = 0)
        {
            if (n <= 0 && sortedList.Count > 0) {
                n = 1 + sortedList [sortedList.Count - 1];
            }
            this.sortedList = sortedList;
            this.N = n;
        }

Usage Example

Ejemplo n.º 1
0
 public override Bitmap Unravel(int sym)
 {
     var L = new List<int> ();
     var n = this.SEQ.Count;
     for (int i = 0; i < n; ++i) {
         if (this.SEQ[i] == sym) {
             L.Add (i);
         }
     }
     var slist = new SortedList();
     slist.Build(L, n);
     return slist;
 }
All Usage Examples Of natix.CompactDS.SortedList::Build