StepBatch
StepBatch
Section titled “StepBatch”#include <sbio/core/types.hh>template<typename StepIdxType>struct StepBatchDefined 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.
Template Parameters
Section titled “Template Parameters”StepIdxTypeThe step index type of the data format.
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
StepIdxType |
first |
The first step of the batch. |
StepIdxType |
last |
One past the last step of the batch. |
StepIdxType firstDefined in src/lib/sbio/core/types.hh:80
The first step of the batch.
StepIdxType lastDefined in src/lib/sbio/core/types.hh:81
One past the last step of the batch.
Public Methods
Section titled “Public Methods”| 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() constDefined in src/lib/sbio/core/types.hh:88
The number of steps in the batch.
Returns
Section titled “Returns”The number of steps in the batch.