BatchHandle
BatchHandle
Section titled “BatchHandle”#include <sbio/core/iteration.hh>template<typename StepIdxType>class BatchHandleDefined in src/lib/sbio/core/iteration.hh:136
A batch of steps handed out by a zipped iteration, whose data has already been fetched.
The handle converts to the [StepBatch](api-sbio-StepBatch.md#stepbatch). Data for any of the zipped BrokerGroups is resolved from the already filled buffers with get, without further IO.
As with [BrokerGroup::get_multi_data](api-sbio-BrokerGroup.md#get_multi_data), results are valid until the buffers are refetched, i.e. until the zipped iteration advances.
Template Parameters
Section titled “Template Parameters”StepIdxTypeThe step index type of the data format.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
SBIO_HD |
BatchHandle inline |
|
SBIO_HD |
operator StepBatch< StepIdxType > const inline |
|
SBIO_HDStepBatch< StepIdxType > |
batch const inline |
The batch of steps [first, last). |
SBIO_HD StepIdxType |
first const inline |
|
SBIO_HD StepIdxType |
last const inline |
|
SBIO_HD StepIdxType |
count const inline |
|
SBIO_HDIOStatus |
status const inline |
The IOStatus of fetching the batch for all zipped BrokerGroups. |
SBIO_HD auto |
get const inline |
Get data for the batch from one of the zipped BrokerGroups, without IO. |
BatchHandle
Section titled “BatchHandle”inline
inline SBIO_HD BatchHandle(StepBatch< StepIdxType > batch, IOStatus status)Defined in src/lib/sbio/core/iteration.hh:138
operator StepBatch< StepIdxType >
Section titled “operator StepBatch< StepIdxType >”const inline
inline SBIO_HD operator StepBatch< StepIdxType >() constDefined in src/lib/sbio/core/iteration.hh:143
const inline
inline SBIO_HDStepBatch< StepIdxType > batch() constDefined in src/lib/sbio/core/iteration.hh:148
The batch of steps [first, last).
const inline
inline SBIO_HD StepIdxType first() constDefined in src/lib/sbio/core/iteration.hh:149
const inline
inline SBIO_HD StepIdxType last() constDefined in src/lib/sbio/core/iteration.hh:150
const inline
inline SBIO_HD StepIdxType count() constDefined in src/lib/sbio/core/iteration.hh:151
status
Section titled “status”const inline
inline SBIO_HDIOStatus status() constDefined in src/lib/sbio/core/iteration.hh:156
The IOStatus of fetching the batch for all zipped BrokerGroups.
const inline
template<class Group, typename... Args> inline SBIO_HD auto get(const Group & group, Args &&... args) constDefined in src/lib/sbio/core/iteration.hh:166
Get data for the batch from one of the zipped BrokerGroups, without IO.
Returns
Section titled “Returns”The requested data (as from [BrokerGroup::get_multi_data](api-sbio-BrokerGroup.md#get_multi_data)).
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
group |
const Group & |
One of the BrokerGroups the iteration was zipped over. |
args |
Args &&... |
The arguments for the group’s DataRequest constructor. |
Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
StepBatch< StepIdxType > |
m_batch |
|
IOStatus |
m_status |
m_batch
Section titled “m_batch”StepBatch< StepIdxType > m_batchType: StepBatch< StepIdxType >
Defined in src/lib/sbio/core/iteration.hh:173
m_status
Section titled “m_status”IOStatus m_statusType: IOStatus
Defined in src/lib/sbio/core/iteration.hh:174