natix.CompactDS.SeqXLB.AccessSequential C# (CSharp) 메소드

AccessSequential() 공개 메소드

public AccessSequential ( int pos ) : int
pos int
리턴 int
        public int AccessSequential(int pos)
        {
            // DONE: Convert this into a permutation index using the golynski large perm. scheme
            long n = this.Count;
            for (int i = 0; i < this.sigma; ++i) {
                if (this.xl_bitmap.Access (i * n + pos)) {
                    return i;
                }
            }
            throw new ArgumentOutOfRangeException ();
        }