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.128 -- Release Build+2960d3f3619fdc53cad514a51817286dcfb19027
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