Class DelegateSelection
- Namespace
- PureHDF.Selections
- Assembly
- PureHDF.dll
A selection which uses a delegate to get the information about how to walk through the data.
public class DelegateSelection : Selection
- Inheritance
-
DelegateSelection
Constructors
DelegateSelection(ulong, Func<ulong[], IEnumerable<Step>>)
Initializes a new instance of the DelegateSelection class.
public DelegateSelection(ulong totalElementCount, Func<ulong[], IEnumerable<Step>> walker)
Parameters
totalElementCountulongThe total number of elements which is used to preallocate the returned buffer.
walkerFunc<ulong[], IEnumerable<Step>>The user-defined walker delegate.
Properties
TotalElementCount
Gets the total number of elements which is used to preallocate the returned buffer.
public override ulong TotalElementCount { get; }
Property Value
Methods
Walk(ulong[])
The walk function is used to walk through the dataset and select the requested data.
public override IEnumerable<Step> Walk(ulong[] limits)
Parameters
limitsulong[]The dataset dimensions.
Returns
- IEnumerable<Step>
An enumerable which provides a sequence of steps to select the requested data.