DataSource::BatchRangeImpl
BatchRangeImpl
Section titled “BatchRangeImpl”#include <sbio/core/datasource.hh>template<class DS>class BatchRangeImplDefined 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()) {}).
Template Parameters
Section titled “Template Parameters”DSThe DataSource to iterate over (const/non const…)
Public Methods
Section titled “Public Methods”| 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 |
BatchRangeImpl
Section titled “BatchRangeImpl”inline
inline SBIO_HD BatchRangeImpl(DS & ds, std::size_t batch_size)Defined in src/lib/sbio/core/datasource.hh:598
~BatchRangeImpl
Section titled “~BatchRangeImpl”inline
inline SBIO_HD ~BatchRangeImpl()Defined in src/lib/sbio/core/datasource.hh:603
BatchRangeImpl
Section titled “BatchRangeImpl”BatchRangeImpl(const BatchRangeImpl &) = deleteDefined in src/lib/sbio/core/datasource.hh:611
Deleted constructor.
operator=
Section titled “operator=”BatchRangeImpl & operator=(const BatchRangeImpl &) = deleteDefined in src/lib/sbio/core/datasource.hh:612
Deleted assignment operator.
const inline
inline SBIO_HDBatchIt begin() constDefined in src/lib/sbio/core/datasource.hh:614
const inline
inline SBIO_HDBatchIt end() constDefined in src/lib/sbio/core/datasource.hh:618
Public Types
Section titled “Public Types”| Name | Description |
|---|---|
BatchIt |
BatchIt
Section titled “BatchIt”using BatchIt = BatchIteratorImpl< DS >Type: BatchIteratorImpl< DS >
Defined in src/lib/sbio/core/datasource.hh:596
Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
DS & |
m_ds |
|
std::size_t |
m_batch_size |
DS & m_dsDefined in src/lib/sbio/core/datasource.hh:630
m_batch_size
Section titled “m_batch_size”std::size_t m_batch_sizeDefined in src/lib/sbio/core/datasource.hh:631