Table of Contents

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

totalElementCount ulong

The total number of elements which is used to preallocate the returned buffer.

walker Func<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

ulong

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

limits ulong[]

The dataset dimensions.

Returns

IEnumerable<Step>

An enumerable which provides a sequence of steps to select the requested data.