Skip to content

DataSource::BatchIteratorImpl

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

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

An iterator generating batches of steps from the DataSource.

  • DS The DataSource to iterate over (const/non-const…)
Name Description
operator== inline
operator!= inline

inline

friend inline SBIO_HD friend bool operator==(const BatchIteratorImpl & a, const BatchIteratorImpl & b)

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


inline

friend inline SBIO_HD friend bool operator!=(const BatchIteratorImpl & a, const BatchIteratorImpl & b)

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

Return Name Description
SBIO_HD BatchIteratorImpl inline
SBIO_HDreference operator* const inline
SBIO_HDBatchIteratorImpl & operator++ inline

inline

inline SBIO_HD BatchIteratorImpl(DS & ds, value_type batch, std::size_t batch_size)

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


const inline

inline SBIO_HDreference operator*() const

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


inline

inline SBIO_HDBatchIteratorImpl & operator++()

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

Name Description
iterator_category
difference_type
value_type
pointer
reference

using iterator_category = std::input_iterator_tag

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


using difference_type = std::ptrdiff_t

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


using value_type = StepBatch< typename FTraits::StepIdxType >

Type: StepBatch< typename FTraits::StepIdxType >

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


using pointer = void

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


using reference = value_type

Type: value_type

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

Return Name Description
DS & m_ds
value_type m_batch
std::size_t m_batch_size

DS & m_ds

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


value_type m_batch

Type: value_type

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


std::size_t m_batch_size

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