Class RandomAccessLazyMoveGapBuffer<T>
- Namespace
- AlgorithmsSW.GapBuffer
- Assembly
- AlgorithmsSW.dll
A LazyMoveGapBuffer<T> that also provides random access.
public sealed class RandomAccessLazyMoveGapBuffer<T> : LazyMoveGapBuffer<T>, IGapBuffer<T>, IRandomAccessList<T>, IReadonlyRandomAccessList<T>, IEnumerable<T>, IEnumerable
Type Parameters
T
- Inheritance
-
RandomAccessLazyMoveGapBuffer<T>
- Implements
-
IGapBuffer<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Properties
this[int]
sets the element at the specified index in the list.
public T this[int index] { get; set; }
Parameters
index
intThe zero-based index of the element to get or set.
Property Value
- T
The element at the specified index.
Methods
Create<TBuffer>(Func<TBuffer>)
public static RandomAccessLazyMoveGapBuffer<T> Create<TBuffer>(Func<TBuffer> eagerBufferFactory) where TBuffer : IGapBuffer<T>, IRandomAccessList<T>
Parameters
eagerBufferFactory
Func<TBuffer>
Returns
Type Parameters
TBuffer
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An enumerator that can be used to iterate through the collection.