EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Class CircularBuffer<T>

    Circular buffer. When writing to a full buffer: PushBack -> removes this[0] / Front() PushFront -> removes this[Size-1] / Back() this implementation is inspired by http://www.boost.org/doc/libs/1_53_0/libs/circular_buffer/doc/circular_buffer.html because I liked their interface.

    Inheritance
    object
    CircularBuffer<T>
    Implements
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: PoeShared.Scaffolding
    Assembly: PoeShared.dll
    Syntax
    public class CircularBuffer<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    Constructors

    Name Description
    CircularBuffer(int)
    CircularBuffer(int, T[])

    Initializes a new instance of the CircularBuffer<T> class.

    CircularBuffer(T[])

    Properties

    Name Description
    Capacity

    Maximum capacity of the buffer. Elements pushed into the buffer after maximum capacity is reached (IsFull = true), will remove an element.

    Count
    IsEmpty
    IsFull
    this[int]
    Size

    Current buffer size (the number of elements that the buffer has).

    Methods

    Name Description
    Back()

    Element at the back of the buffer - this[Size - 1].

    ClearFill()

    Fills an array with

    CopyTo(T[])
    Front()

    Element at the front of the buffer - this[0].

    GetEnumerator()
    PopBack()

    Removes the element at the back of the buffer. Decreasing the Buffer size by 1.

    PopFront()

    Removes the element at the front of the buffer. Decreasing the Buffer size by 1.

    PushBack(T)

    Pushes a new element to the back of the buffer. Back()/this[Size-1] will now return this element. When the buffer is full, the element at Front()/this[0] will be popped to allow for this new element to fit.

    PushFront(T)

    Pushes a new element to the front of the buffer. Front()/this[0] will now return this element. When the buffer is full, the element at Back()/this[Size-1] will be popped to allow for this new element to fit.

    ToArray()

    Copies the buffer contents to an array, according to the logical contents of the buffer (i.e. independent of the internal order/contents)

    Extension Methods

    ReactiveObjectExtensions.Listen<TContext, TItem>(TContext, Expression<Func<TContext, IObservableList<TItem>>>)
    ReactiveObjectExtensions.Listen<TContext, TOut>(TContext, Expression<Func<TContext, TOut>>)
    ReactiveObjectExtensions.Listen<TContext, TOut1, TOut2>(TContext, Expression<Func<TContext, TOut1>>, Expression<Func<TContext, TOut2>>)
    ReactiveObjectExtensions.Listen<TContext, TOut1, TOut2, TOut3>(TContext, Expression<Func<TContext, TOut1>>, Expression<Func<TContext, TOut2>>, Expression<Func<TContext, TOut3>>)
    ReactiveObjectExtensions.Listen<TContext, TOut1, TOut2, TOut3, TOut4>(TContext, Expression<Func<TContext, TOut1>>, Expression<Func<TContext, TOut2>>, Expression<Func<TContext, TOut3>>, Expression<Func<TContext, TOut4>>)
    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ISourceList<TCollection>)
    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ICollection<TCollection>)
    ObjectExtensions.CloneJson<T>(T)
    ObjectExtensions.CopyPropertiesTo<TSource, TTarget>(TSource, TTarget)
    ObjectExtensions.DumpToTextRaw<T>(T)
    ObjectExtensions.DumpToText<T>(T)
    ObjectExtensions.Dump<T>(T)
    ObjectExtensions.EvalOrDefault<T, TValue>(T, Func<T, TValue>, TValue)
    ObjectExtensions.Eval<T, TValue>(T, Func<T, TValue>)
    ObjectExtensions.GetPropertyAccessor<TSource, TValue>(TSource, Expression<Func<TSource, TValue>>)
    ObjectExtensions.InsertTo<TItem, TCollection>(TItem, IList<TCollection>, int)
    ObjectExtensions.ToJson<T>(T)
    ObjectExtensions.ToStringSafe<T>(T)
    ObjectExtensions.TransferPropertiesTo<TSource, TTarget>(TSource, TTarget, params string[])
    XDocumentExtensions.AddTo<T>(T, XContainer)
    ChangeSetExtensions.AsSourceListEx<T>(IEnumerable<T>)
    ChangeSetExtensions.ToSourceList<T>(IEnumerable<T>)
    EnumerableExtensions.AggregateAsync<TSource, TAccumulate>(IEnumerable<TSource>, TAccumulate, Func<TAccumulate, TSource, Task<TAccumulate>>)
    EnumerableExtensions.EmptyIfNull<T>(IEnumerable<T>)
    EnumerableExtensions.ForEachAsync<T>(IEnumerable<T>, Func<T, Task>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.Intersperse<T>(IEnumerable<T>, Func<T, T>)
    EnumerableExtensions.Intersperse<T>(IEnumerable<T>, T)
    EnumerableExtensions.IsEmpty<T>(IEnumerable<T>)
    EnumerableExtensions.IsUnique<T>(IEnumerable<T>)
    EnumerableExtensions.PickRandom<T>(IEnumerable<T>)
    EnumerableExtensions.Randomize<T>(IEnumerable<T>)
    EnumerableExtensions.SelectSafe<T, TResult>(IEnumerable<T>, Func<T, TResult>)
    EnumerableExtensions.SelectSafe<T, TResult>(IEnumerable<T>, Func<T, TResult>, Action<T, Exception>)
    EnumerableExtensions.ToDictionaryWithReplacement<T, TKey, TValue>(IEnumerable<T>, Func<T, TKey>, Func<T, TValue>)
    EnumerableExtensions.ToDictionaryWithThrow<T, TKey, TValue>(IEnumerable<T>, Func<T, TKey>, Func<T, TValue>)
    EnumerableExtensions.ToDictionary<T, TKey, TValue>(IEnumerable<T>, Func<T, TKey>, Func<T, TValue>, Func<(TKey key, TValue existingValue, TValue newValue), TValue>)
    EnumerableExtensions.ToObservableCollection<T>(IEnumerable<T>)
    EnumerableExtensions.ToReadOnlyObservableCollection<T>(IEnumerable<T>)
    EnumerableExtensions.ToVariations<T>(IEnumerable<T>)
    ObjectExtensions.DumpToNamedTable<T>(IEnumerable<T>, string, int, string)
    ObjectExtensions.DumpToNamedTable<T>(IEnumerable<T>, string, string)
    ObjectExtensions.DumpToString<T>(IEnumerable<T>)
    ObjectExtensions.DumpToTable<T>(IEnumerable<T>, int)
    ObjectExtensions.DumpToTable<T>(IEnumerable<T>, string)
    ObjectExtensions.DumpToTable<T>(IEnumerable<T>, string, string, int?)
    ObjectExtensions.ToStringTable<T>(IEnumerable<T>, string)
    EnumerableExtensions.Subrange<T>(IReadOnlyList<T>, int, int)
    ObjectExtensions.GetPropertyAccessor<TValue>(object, string)
    ObjectReflectionExtensions.GetPropertyTypeOrDefault(object, string)
    ObjectReflectionExtensions.GetPropertyValue<T>(object, string)
    ObjectReflectionExtensions.SetPropertyValue<T>(object, string, T)
    © Xab3r. All rights reserved.