RollingWindowT Class

Represents a rolling window of data with FIFO semantics that will automatically truncate the data when the window size is exceeded.

Definition

Namespace: Gemstone.IO.Collections
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.110 -- Release Build+5f28d91246fb64a1bf6c938596f3050396eb7eba
public class RollingWindow<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable
Inheritance
Object    RollingWindowT
Implements
ICollectionT, IEnumerableT, IListT, IEnumerable

Type Parameters

T
The type of objects to be stored in the rolling window.

Constructors

RollingWindowT Creates a new instance of the RollingWindowT class.

Properties

Count Gets the number of elements contained in the RollingWindowT.
IsReadOnly Gets a value indicating whether the RollingWindowT is read-only.
Item Gets or sets the element at the specified index.
WindowSize Gets the size of the window maintained by the RollingWindowT.

Methods

Add Adds an item to the RollingWindowT.
Clear Removes all items from the RollingWindowT.
Contains Determines whether the RollingWindowT contains a specific value.
CopyTo Copies the elements of the RollingWindowT to an Array, starting at a particular Array index.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumerator Returns an enumerator that iterates through the collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOf Determines the index of a specific item in the RollingWindowT.
Insert Inserts an item to the RollingWindowT at the specified index.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Remove Removes the first occurrence of a specific object from the RollingWindowT.
RemoveAt Removes the RollingWindowT item at the specified index.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also