Show / Hide Table of Contents

Class DelegateSelection

A selection which uses a delegate to get the information about how to walk through the data.

Inheritance
System.Object
Selection
DelegateSelection
Namespace: HDF5.NET
Assembly: HDF5.NET.dll
Syntax
public class DelegateSelection : Selection

Constructors

| Improve this Doc View Source

DelegateSelection(UInt64, Func<UInt64[], IEnumerable<Step>>)

Initializes a new instance of the DelegateSelection instance.

Declaration
public DelegateSelection(ulong totalElementCount, Func<ulong[], IEnumerable<Step>> walker)
Parameters
Type Name Description
System.UInt64 totalElementCount

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

System.Func<System.UInt64[], System.Collections.Generic.IEnumerable<Step>> walker

The user-defined walker delegate.

Properties

| Improve this Doc View Source

TotalElementCount

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

Declaration
public override ulong TotalElementCount { get; }
Property Value
Type Description
System.UInt64
Overrides
Selection.TotalElementCount

Methods

| Improve this Doc View Source

Walk(UInt64[])

The walk function is used to walk through the dataset and select the requested data.

Declaration
public override IEnumerable<Step> Walk(ulong[] limits)
Parameters
Type Name Description
System.UInt64[] limits

The dataset dimensions.

Returns
Type Description
System.Collections.Generic.IEnumerable<Step>

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

Overrides
Selection.Walk(UInt64[])
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2023 Vincent Wilms