DataReaderLazyTimeStepSingleDataLazyList Class

Lazy list of data item values, where data is stored as a list of doubles Data is stored in a dictionary, key'ed by the time step index

Definition

Namespace: DHI.Mike1D.ResultDataAccess
Assembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class TimeStepSingleDataLazyList : DataReaderLazyTimeStepDataLazyList<float>, 
	ITimeData, IReadOnlyList<float>, IEnumerable<float>, 
	IEnumerable, IReadOnlyCollection<float>, IReadOnlyList<double>, 
	IEnumerable<double>, IReadOnlyCollection<double>, INumericArray
Inheritance
Object    DataReaderLazyTimeStepDataLazyListSingle    DataReaderLazyTimeStepSingleDataLazyList
Implements
INumericArray, ITimeData, IEnumerableSingle, IEnumerableDouble, IReadOnlyCollectionSingle, IReadOnlyCollectionDouble, IReadOnlyListSingle, IReadOnlyListDouble, IEnumerable

Constructors

DataReaderLazyTimeStepSingleDataLazyListInitializes a new instance of the DataReaderLazyTimeStepSingleDataLazyList class

Properties

CountGets the number of elements in the collection.
ItemGets the element at the specified index in the read-only list.
NumberOfElements Number of elements.
NumberOfTimeSteps
(Inherited from DataReaderLazyTimeStepDataLazyListT)

Methods

Add
(Inherited from DataReaderLazyTimeStepDataLazyListT)
Add(Single)
(Inherited from DataReaderLazyTimeStepDataLazyListT)
Add(Single)
(Inherited from DataReaderLazyTimeStepDataLazyListT)
Clear Not supported for lazy reading
(Inherited from DataReaderLazyTimeStepDataLazyListT)
CreateDefault
(Overrides DataReaderLazyTimeStepDataLazyListTCreateDefault)
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)
GetEnumeratorReturns 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)
GetValue(Int32) Get value for the speficied time step and element
GetValue(Int32, Int32) Get value for the speficied time step and element
GetValues 
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RemoveAt Not supported for lazy reading
(Inherited from DataReaderLazyTimeStepDataLazyListT)
SetValue(Int32, Double) 
SetValue(Int32, Int32, Single) Set value at the speficied time step and element

For single valued items, when NumberOfElements equals 1, set elementIndex to zero.

SetValues Set values for all elements at the speficied time step

calling this method is only valid if NumberOfElements is greater than 1.

ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

Extension Methods

BinarySearchROSingle, TKey Searches the entire sorted IReadOnlyListT for an element and returns the zero-based index of the element.

If the key is not found, a negative number is returned, which can be intepreted as the bitwise complement of the interval of indices that the key is in between, i.e. list[interval-1] < key < list[interval]

This differs from the "ordinary" binary search in allowing a keySelectorcomparer that knows how to compare a class with its key. Example, if the list contains classes of type T having an id number and the class is sorted on that id, then the keySelector returns the id number for that class.


(Defined by GenericExtensions)
BinarySearchRODouble, TKey
(Defined by GenericExtensions)
BinarySearchROSingle, TKey Searches the entire sorted IReadOnlyListT for an element using the provided comparer and returns the zero-based index of the element.

If the key is not found, a negative number is returned, which can be intepreted as the bitwise complement of the interval of indices that the key is in between, i.e. list[interval-1] < key < list[interval]

This differs from the "ordinary" binary search in allowing a keySelectorcomparer that knows how to compare a class with its key. Example, if the list contains classes of type T having an id number and the class is sorted on that id, then the keySelector returns the id number for that class.


(Defined by GenericExtensions)
BinarySearchRODouble, TKey
(Defined by GenericExtensions)
Expand Expand timeData from timestepIndex and assure room for length new time steps. If those time steps are already available, this does nothing.

The timestepIndex must be within or just after the end of the current set of time steps in timeData


(Defined by ResultDataExtensions)
GetValue Interplate a value in interval, with fraction, for the specified elementIndex
(Defined by ResultDataExtensions)

See Also