Skip to content

StepBatch

#include <sbio/core/types.hh>
template<typename StepIdxType>
struct StepBatch

Defined in src/lib/sbio/core/types.hh:79

A contiguous batch of steps: [first, last).

A batch is a pair of step indices indicating a contiguous range that has been handed out together. Exhaustion is indicated by both first and last equal to the format’s ExhaustedSentinel.

  • StepIdxType The step index type of the data format.
Return Name Description
StepIdxType first The first step of the batch.
StepIdxType last One past the last step of the batch.

StepIdxType first

Defined in src/lib/sbio/core/types.hh:80

The first step of the batch.


StepIdxType last

Defined in src/lib/sbio/core/types.hh:81

One past the last step of the batch.

Return Name Description
SBIO_HD constexpr StepIdxType count const inline constexpr The number of steps in the batch.

const inline constexpr

constexpr inline SBIO_HD constexpr StepIdxType count() const

Defined in src/lib/sbio/core/types.hh:88

The number of steps in the batch.

The number of steps in the batch.