Skip to content

DataSource::BatchRangeImpl

#include <sbio/core/datasource.hh>
template<class DS>
class BatchRangeImpl

Defined in src/lib/sbio/core/datasource.hh:594

A range over contiguous batches of steps, for use in a range-based for loop.

Each parallel executing unit (e.g. a thread or rank, etc.) iterating will setup its own range-based loop (for (auto step : ds.batches()) {}).

  • DS The DataSource to iterate over (const/non const…)
Return Name Description
SBIO_HD BatchRangeImpl inline
SBIO_HD ~BatchRangeImpl inline
BatchRangeImpl Deleted constructor.
BatchRangeImpl & operator= Deleted assignment operator.
SBIO_HDBatchIt begin const inline
SBIO_HDBatchIt end const inline

inline

inline SBIO_HD BatchRangeImpl(DS & ds, std::size_t batch_size)

Defined in src/lib/sbio/core/datasource.hh:598


inline

inline SBIO_HD ~BatchRangeImpl()

Defined in src/lib/sbio/core/datasource.hh:603


BatchRangeImpl(const BatchRangeImpl &) = delete

Defined in src/lib/sbio/core/datasource.hh:611

Deleted constructor.


BatchRangeImpl & operator=(const BatchRangeImpl &) = delete

Defined in src/lib/sbio/core/datasource.hh:612

Deleted assignment operator.


const inline

inline SBIO_HDBatchIt begin() const

Defined in src/lib/sbio/core/datasource.hh:614


const inline

inline SBIO_HDBatchIt end() const

Defined in src/lib/sbio/core/datasource.hh:618

Name Description
BatchIt

using BatchIt = BatchIteratorImpl< DS >

Type: BatchIteratorImpl< DS >

Defined in src/lib/sbio/core/datasource.hh:596

Return Name Description
DS & m_ds
std::size_t m_batch_size

DS & m_ds

Defined in src/lib/sbio/core/datasource.hh:630


std::size_t m_batch_size

Defined in src/lib/sbio/core/datasource.hh:631