ZippedBatchRange
ZippedBatchRange
Section titled “ZippedBatchRange”#include <sbio/core/iteration.hh>template<class DS, class... Groups>class ZippedBatchRangeDefined in src/lib/sbio/core/iteration.hh:589
Iterate contiguous step batches of a DataSource with fetches over a set of BrokerGroups.
Equivalent to the [ZippedGroupRange](api-sbio-ZippedGroupRange.md#zippedgrouprange) but for the batched API calls.
Each parallel executing unit (e.g. a thread or rank, etc.) iterating will setup its own range-based for loop (for (auto batch : zip_batches(ds, bg1, bg2)) {}).
Template Parameters
Section titled “Template Parameters”-
DSThe DataSource type (const or non-const). -
GroupsThe BrokerGroup types, all created from the DataSource.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
SBIO_HD |
ZippedBatchRange inline |
|
ZippedBatchRange |
Deleted constructor. | |
ZippedBatchRange & |
operator= |
Deleted assignment operator. |
SBIO_HDConstIterator |
begin const inline |
Return an iterator at the first batch for this unit, with its data fetched. |
SBIO_HDConstIterator |
end const inline |
|
SBIO_HDConstIterator |
cbegin const inline |
|
SBIO_HDConstIterator |
cend const inline |
|
SBIO_HD hd_std::size_t |
num_fetches const inline |
The number of distinct fetches performed per batch. |
ZippedBatchRange
Section titled “ZippedBatchRange”inline
inline SBIO_HD ZippedBatchRange(DS & ds, const Groups &... groups)Defined in src/lib/sbio/core/iteration.hh:598
ZippedBatchRange
Section titled “ZippedBatchRange”ZippedBatchRange(const ZippedBatchRange &) = deleteDefined in src/lib/sbio/core/iteration.hh:603
Deleted constructor.
operator=
Section titled “operator=”ZippedBatchRange & operator=(const ZippedBatchRange &) = deleteDefined in src/lib/sbio/core/iteration.hh:604
Deleted assignment operator.
const inline
inline SBIO_HDConstIterator begin() constDefined in src/lib/sbio/core/iteration.hh:661
Return an iterator at the first batch for this unit, with its data fetched.
const inline
inline SBIO_HDConstIterator end() constDefined in src/lib/sbio/core/iteration.hh:664
cbegin
Section titled “cbegin”const inline
inline SBIO_HDConstIterator cbegin() constDefined in src/lib/sbio/core/iteration.hh:668
const inline
inline SBIO_HDConstIterator cend() constDefined in src/lib/sbio/core/iteration.hh:669
num_fetches
Section titled “num_fetches”const inline
inline SBIO_HD hd_std::size_t num_fetches() constDefined in src/lib/sbio/core/iteration.hh:674
The number of distinct fetches performed per batch.
Public Types
Section titled “Public Types”| Name | Description |
|---|---|
StepIdxType |
|
FTraits |
|
ExecutionPolicy |
|
BatchRange |
|
BatchIt |
|
FetchPlan |
|
Iterator |
|
ConstIterator |
StepIdxType
Section titled “StepIdxType”using StepIdxType = typename hd_std::remove_const_t< DS >::StepIdxTypeDefined in src/lib/sbio/core/iteration.hh:591
FTraits
Section titled “FTraits”using FTraits = typename hd_std::remove_const_t< DS >::DataFormatDefined in src/lib/sbio/core/iteration.hh:592
ExecutionPolicy
Section titled “ExecutionPolicy”using ExecutionPolicy = typename hd_std::remove_const_t< DS >::ExecutionPolicyDefined in src/lib/sbio/core/iteration.hh:593
BatchRange
Section titled “BatchRange”using BatchRange = decltype(hd_std::declval< DS & >().batches())Defined in src/lib/sbio/core/iteration.hh:594
BatchIt
Section titled “BatchIt”using BatchIt = decltype(hd_std::declval< const BatchRange & >().begin())Type: decltype(hd_std::declval< const BatchRange & >().begin())
Defined in src/lib/sbio/core/iteration.hh:595
FetchPlan
Section titled “FetchPlan”using FetchPlan = impl::ZipFetchPlan< ExecutionPolicy, FTraits, Groups... >Type: impl::ZipFetchPlan< ExecutionPolicy, FTraits, Groups… >
Defined in src/lib/sbio/core/iteration.hh:596
Iterator
Section titled “Iterator”using Iterator = IteratorImpl< FetchPlan >Type: IteratorImpl< FetchPlan >
Defined in src/lib/sbio/core/iteration.hh:653
ConstIterator
Section titled “ConstIterator”using ConstIterator = IteratorImpl< const FetchPlan >Type: IteratorImpl< const FetchPlan >
Defined in src/lib/sbio/core/iteration.hh:654
Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
BatchRange |
m_batches |
|
FetchPlan |
m_plan |
m_batches
Section titled “m_batches”BatchRange m_batchesType: BatchRange
Defined in src/lib/sbio/core/iteration.hh:677
m_plan
Section titled “m_plan”FetchPlan m_planType: FetchPlan
Defined in src/lib/sbio/core/iteration.hh:678