public static Series <TKey, Stat2 <TKey>, Stat2Cursor <TKey, TValue, Cursor <TKey, TValue> > > Stat2 <TKey, TValue>(
            this ISeries <TKey, TValue> series, TKey width, Lookup lookup = Lookup.GE)
        {
            var cursor = new Stat2Cursor <TKey, TValue, Cursor <TKey, TValue> >(series.GetSpecializedCursor(), width, lookup);

            return(cursor.Source);
        }
        public static Series <TKey, Stat2 <TKey>, Stat2Cursor <TKey, TValue, Cursor <TKey, TValue> > > Stat2 <TKey, TValue>(
            this ISeries <TKey, TValue> series, int count, bool allowIncomplete = false)
        {
            var cursor = new Stat2Cursor <TKey, TValue, Cursor <TKey, TValue> >(series.GetSpecializedCursor(), count, allowIncomplete);

            return(cursor.Source);
        }
        public static Series <TKey, Stat2 <TKey>, Stat2Cursor <TKey, TValue, TCursor> > Stat2 <TKey, TValue, TCursor>(
            this ContainerSeries <TKey, TValue, TCursor> series, TKey width, Lookup lookup = Lookup.GE)
            where TCursor : ICursor <TKey, TValue, TCursor>
        {
            var cursor = new Stat2Cursor <TKey, TValue, TCursor>(series.GetContainerCursor(), width, lookup);

            return(cursor.Source);
        }
        public static Series <TKey, Stat2 <TKey>, Stat2Cursor <TKey, TValue, TCursor> > Stat2 <TKey, TValue, TCursor>(
            this ContainerSeries <TKey, TValue, TCursor> series, int count, bool allowIncomplete = false)
            where TCursor : ICursor <TKey, TValue, TCursor>
        {
            var cursor = new Stat2Cursor <TKey, TValue, TCursor>(series.GetContainerCursor(), count, allowIncomplete);

            return(cursor.Source);
        }
示例#5
0
        public static Series <TKey, Stat2 <TKey>, Stat2Cursor <TKey, TValue, TCursor> > Stat2 <TKey, TValue, TCursor>(
            this Series <TKey, TValue, TCursor> series, TKey width, Lookup lookup = Lookup.GE)
            where TCursor : ISpecializedCursor <TKey, TValue, TCursor>
        {
            var cursor = new Stat2Cursor <TKey, TValue, TCursor>(series.GetEnumerator(), width, lookup);

            return(cursor.Source);
        }
示例#6
0
        public static Series <TKey, Stat2 <TKey>, Stat2Cursor <TKey, TValue, TCursor> > Stat2 <TKey, TValue, TCursor>(
            this Series <TKey, TValue, TCursor> series, int count, bool allowIncomplete = false)
            where TCursor : ISpecializedCursor <TKey, TValue, TCursor>
        {
            var cursor = new Stat2Cursor <TKey, TValue, TCursor>(series.GetEnumerator(), count, allowIncomplete);

            return(cursor.Source);
        }
示例#7
0
        /// <inheritdoc />
        //[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public Stat2Cursor <TKey, TValue, TCursor> Clone()
        {
            var instance = new Stat2Cursor <TKey, TValue, TCursor>
            {
                _cursor = _cursor.Clone(),
            };

            return(instance);
        }
示例#8
0
        /// <inheritdoc />
        //[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public Stat2Cursor <TKey, TValue, TCursor> Initialize() // This causes SO when deeply nested
        {
            var instance = new Stat2Cursor <TKey, TValue, TCursor>
            {
                _cursor = _cursor.Initialize(),
            };

            return(instance);
        }