Click or drag to resize

IDataQueueT Interface

Represents a generic automatic dynamic circle queue interface.

Namespace:  FinAnalysis.Base
Assembly:  FinAnalysis.Base (in FinAnalysis.Base.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public interface IDataQueue<T> : IEnumerable<T>, 
	IEnumerable

Type Parameters

T
Queue data type. Note: T must has default public constructor.

The IDataQueueT type exposes the following members.

Properties
  NameDescription
Public propertyCount
Get the number of elements stored in container.
Public propertyFirst
Get first(oldest) data element store in container.
Public propertyItemDateTime
Return historically latest element with smaller or equal DateTime. Note: do not try to use this method if you didn't specify DateTime to data elements.
Public propertyItemInt32
Get data which was store "index" steps ago.
Public propertyLast
Get last data element stored in container.
Public propertyPrevious
Get previous data element stored in container.
Public propertyReady
Ready flag is set if and only if queue contain something.
Top
Methods
  NameDescription
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerableT.)
Public methodPut(T)
Store new data element in queue without DateTime.
Public methodPut(T, DateTime)
Store new data element in queue with DateTime.
Public methodSetQueueListener
Set listener to queue capacity. Queue will call OnPop method every time, when queue drop some element. And OnPush method, when queue store element.
Top
See Also