コード例 #1
0
        public void Get(KeyType key, out ValueType value, out int rank)
        {
            long rankLong;

            inner.Get(key, out value, out rankLong);
            rank = IntLong.ToInt(rankLong);
        }
コード例 #2
0
        public void Get(int start, out int xLength, out ValueType value)
        {
            long xLengthLong;

            inner.Get(IntLong.ToLong(start), out xLengthLong, out value);
            xLength = IntLong.ToInt(xLengthLong);
        }
コード例 #3
0
        public void Get(KeyType key, out KeyType keyOut, out int rank)
        {
            long rankLong;

            inner.Get(key, out keyOut, out rankLong);
            rank = IntLong.ToInt(rankLong);
        }
コード例 #4
0
        public bool NearestGreater(KeyType key, out KeyType nearestKey, out int rank)
        {
            long rankLong;
            bool f = inner.NearestGreater(key, out nearestKey, out rankLong);

            rank = IntLong.ToInt(rankLong);
            return(f);
        }
コード例 #5
0
        public bool TryGet(KeyType key, out ValueType value, out int rank)
        {
            long rankLong;
            bool f = inner.TryGet(key, out value, out rankLong);

            rank = IntLong.ToInt(rankLong);
            return(f);
        }
コード例 #6
0
        public bool NearestGreaterOrEqual(int position, Side side, out int nearestStart)
        {
            long nearestStartLong;
            bool f = inner.NearestGreaterOrEqual(IntLong.ToLong(position), side, out nearestStartLong);

            nearestStart = IntLong.ToInt(nearestStartLong);
            return(f);
        }
コード例 #7
0
        public bool NearestGreaterOrEqual(KeyType key, out KeyType nearestKey, out ValueType value, out int rank)
        {
            long rankLong;
            bool f = inner.NearestGreaterOrEqual(key, out nearestKey, out value, out rankLong);

            rank = IntLong.ToInt(rankLong);
            return(f);
        }
コード例 #8
0
        public bool TryGet(KeyType key, out KeyType keyOut, out int rank)
        {
            long rankLong;
            bool f = inner.TryGet(key, out keyOut, out rankLong);

            rank = IntLong.ToInt(rankLong);
            return(f);
        }
コード例 #9
0
        public bool NearestGreaterByRank(int position, out int nearestStart)
        {
            long nearestStartLong;
            bool f = inner.NearestGreaterByRank(IntLong.ToLong(position), out nearestStartLong);

            nearestStart = IntLong.ToInt(nearestStartLong);
            return(f);
        }
コード例 #10
0
 public void InsertRange(int index, IHugeList <T> items, int offset, int count)
 {
     inner.InsertRange(
         IntLong.ToLong(index),
         items != null ? new AdaptHugeListLongToHugeList <T>(items) : null,
         IntLong.ToLong(offset),
         IntLong.ToLong(count));
 }
コード例 #11
0
        public bool NearestLessOrEqual(int position, out int nearestStart)
        {
            long nearestStartLong;
            bool f = inner.NearestLessOrEqual(IntLong.ToLong(position), out nearestStartLong);

            nearestStart = IntLong.ToInt(nearestStartLong);
            return(f);
        }
コード例 #12
0
        public bool TryGetLength(int start, Side side, out int length)
        {
            long lengthLong;
            bool f = inner.TryGetLength(IntLong.ToLong(start), side, out lengthLong);

            length = IntLong.ToInt(lengthLong);
            return(f);
        }
コード例 #13
0
        public bool TryGet(int start, out int xLength, out ValueType value)
        {
            long xLengthLong;
            bool f = inner.TryGet(IntLong.ToLong(start), out xLengthLong, out value);

            xLength = IntLong.ToInt(xLengthLong);
            return(f);
        }
コード例 #14
0
        //
        // IEnumerable
        //

        private EntryRankMap <KeyType, ValueType> Convert(EntryRankMapLong <KeyType, ValueType> entry)
        {
            return(new EntryRankMap <KeyType, ValueType>(
                       entry.Key,
                       entry.Value,
                       new SetValueWrapper <ValueType>(entry),
                       ((IGetEnumeratorSetValueInfo <ValueType>)entry).Version,
                       IntLong.ToInt(entry.Rank)));
        }
コード例 #15
0
        public bool NearestGreaterOrEqual(int position, out int nearestStart, out int length, out ValueType value)
        {
            long nearestStartLong, lengthLong;
            bool f = inner.NearestGreaterOrEqual(IntLong.ToLong(position), out nearestStartLong, out lengthLong, out value);

            nearestStart = IntLong.ToInt(nearestStartLong);
            length       = IntLong.ToInt(lengthLong);
            return(f);
        }
コード例 #16
0
 private static EntryRangeMapLong <T[]> Convert(EntryRangeMap <T[]> entry)
 {
     return(new EntryRangeMapLong <T[]>(
                entry.Value,
                ((IGetEnumeratorSetValueInfo <T[]>)entry).SetValueCallack,
                ((IGetEnumeratorSetValueInfo <T[]>)entry).Version,
                IntLong.ToLong(entry.Start),
                IntLong.ToLong(entry.Length)));
 }
コード例 #17
0
        //
        // IEnumerable
        //

        private EntryRangeMap <ValueType> Convert(EntryRangeMapLong <ValueType> entry)
        {
            return(new EntryRangeMap <ValueType>(
                       entry.Value,
                       new SetValueWrapper <ValueType>(entry),
                       ((IGetEnumeratorSetValueInfo <ValueType>)entry).Version,
                       IntLong.ToInt(entry.Start),
                       IntLong.ToInt(entry.Length)));
        }
コード例 #18
0
        public bool NearestLess(KeyType key, out KeyType nearestKey, out int rank, out int count)
        {
            long rankLong, countLong;
            bool f = inner.NearestLess(key, out nearestKey, out rankLong, out countLong);

            rank  = IntLong.ToInt(rankLong);
            count = IntLong.ToInt(countLong);
            return(f);
        }
コード例 #19
0
        public bool NearestGreater(int position, out int nearestStart, out int length)
        {
            long nearestStartLong, lengthLong;
            bool f = inner.NearestGreater(IntLong.ToLong(position), out nearestStartLong, out lengthLong);

            nearestStart = IntLong.ToInt(nearestStartLong);
            length       = IntLong.ToInt(lengthLong);
            return(f);
        }
コード例 #20
0
        public bool NearestGreaterByRank(int position, out KeyType nearestKey, out int nearestStart, out int count, out ValueType value)
        {
            long nearestStartLong, countLong;
            bool f = inner.NearestGreaterByRank(IntLong.ToLong(position), out nearestKey, out nearestStartLong, out countLong, out value);

            nearestStart = IntLong.ToInt(nearestStartLong);
            count        = IntLong.ToInt(countLong);
            return(f);
        }
コード例 #21
0
        public bool NearestLessOrEqualByRank(int position, out KeyType nearestKey, out int nearestStart, out int count)
        {
            long nearestStartLong, countLong;
            bool f = inner.NearestLessOrEqualByRank(IntLong.ToLong(position), out nearestKey, out nearestStartLong, out countLong);

            nearestStart = IntLong.ToInt(nearestStartLong);
            count        = IntLong.ToInt(countLong);
            return(f);
        }
コード例 #22
0
        public bool NearestGreater(KeyType key, out KeyType nearestKey, out ValueType value, out int rank, out int count)
        {
            long rankLong, countLong;
            bool f = inner.NearestGreater(key, out nearestKey, out value, out rankLong, out countLong);

            rank  = IntLong.ToInt(rankLong);
            count = IntLong.ToInt(countLong);
            return(f);
        }
コード例 #23
0
        public void Get(KeyType key, out ValueType value, out int rank, out int count)
        {
            long rankLong;
            long countLong;

            inner.Get(key, out value, out rankLong, out countLong);
            rank  = IntLong.ToInt(rankLong);
            count = IntLong.ToInt(countLong);
        }
コード例 #24
0
        public bool NearestLessOrEqual(int position, Side side, out int nearestStart, out int otherStart, out int xLength, out int yLength, out ValueType value)
        {
            long nearestStartLong, otherStartLong, xLengthLong, yLengthLong;
            bool f = inner.NearestLessOrEqual(IntLong.ToLong(position), side, out nearestStartLong, out otherStartLong, out xLengthLong, out yLengthLong, out value);

            nearestStart = IntLong.ToInt(nearestStartLong);
            otherStart   = IntLong.ToInt(otherStartLong);
            xLength      = IntLong.ToInt(xLengthLong);
            yLength      = IntLong.ToInt(yLengthLong);
            return(f);
        }
コード例 #25
0
        public void Get(int start, Side side, out int otherStart, out int xLength, out int yLength)
        {
            long otherStartLong;
            long xLengthLong;
            long yLengthLong;

            inner.Get(IntLong.ToLong(start), side, out otherStartLong, out xLengthLong, out yLengthLong);
            otherStart = IntLong.ToInt(otherStartLong);
            xLength    = IntLong.ToInt(xLengthLong);
            yLength    = IntLong.ToInt(yLengthLong);
        }
コード例 #26
0
        public bool NearestGreater(int position, Side side, out int nearestStart, out int otherStart, out int xLength, out int yLength)
        {
            long nearestStartLong, otherStartLong, xLengthLong, yLengthLong;
            bool f = inner.NearestGreater(IntLong.ToLong(position), side, out nearestStartLong, out otherStartLong, out xLengthLong, out yLengthLong);

            nearestStart = IntLong.ToInt(nearestStartLong);
            otherStart   = IntLong.ToInt(otherStartLong);
            xLength      = IntLong.ToInt(xLengthLong);
            yLength      = IntLong.ToInt(yLengthLong);
            return(f);
        }
コード例 #27
0
 public void IterateRangeBatch(int index, T[] external, int externalOffset, int count, IterateOperatorBatch <T> op)
 {
     inner.IterateRangeBatch(
         IntLong.ToLong(index),
         external,
         IntLong.ToLong(externalOffset),
         IntLong.ToLong(count),
         delegate(T[] v, long vOffset, T[] x, long xOffset, long count2)
     {
         op(v, IntLong.ToInt(vOffset), x, IntLong.ToInt(xOffset), IntLong.ToInt(count2));
     });
 }
コード例 #28
0
        public T this[int index]
        {
            get
            {
                return(inner[IntLong.ToLong(index)]);
            }

            set
            {
                inner[IntLong.ToLong(index)] = value;
            }
        }
コード例 #29
0
        public T this[long index]
        {
            get
            {
                return(inner[IntLong.ToInt(index)]);
            }

            set
            {
                inner[IntLong.ToInt(index)] = value;
            }
        }
コード例 #30
0
        public bool TryGet(int start, Side side, out int otherStart, out int xLength, out int yLength)
        {
            long otherStartLong;
            long xLengthLong;
            long yLengthLong;
            bool f = inner.TryGet(IntLong.ToLong(start), side, out otherStartLong, out xLengthLong, out yLengthLong);

            otherStart = IntLong.ToInt(otherStartLong);
            xLength    = IntLong.ToInt(xLengthLong);
            yLength    = IntLong.ToInt(yLengthLong);
            return(f);
        }