DataSource::BatchIteratorImpl
BatchIteratorImpl
Section titled “BatchIteratorImpl”#include <sbio/core/datasource.hh>template<typename DS>class BatchIteratorImplDefined in src/lib/sbio/core/datasource.hh:539
An iterator generating batches of steps from the DataSource.
Template Parameters
Section titled “Template Parameters”DSThe DataSource to iterate over (const/non-const…)
Friends
Section titled “Friends”| Name | Description |
|---|---|
operator== inline |
|
operator!= inline |
operator==
Section titled “operator==”inline
friend inline SBIO_HD friend bool operator==(const BatchIteratorImpl & a, const BatchIteratorImpl & b)Defined in src/lib/sbio/core/datasource.hh:562
operator!=
Section titled “operator!=”inline
friend inline SBIO_HD friend bool operator!=(const BatchIteratorImpl & a, const BatchIteratorImpl & b)Defined in src/lib/sbio/core/datasource.hh:568
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
SBIO_HD |
BatchIteratorImpl inline |
|
SBIO_HDreference |
operator* const inline |
|
SBIO_HDBatchIteratorImpl & |
operator++ inline |
BatchIteratorImpl
Section titled “BatchIteratorImpl”inline
inline SBIO_HD BatchIteratorImpl(DS & ds, value_type batch, std::size_t batch_size)Defined in src/lib/sbio/core/datasource.hh:549
operator*
Section titled “operator*”const inline
inline SBIO_HDreference operator*() constDefined in src/lib/sbio/core/datasource.hh:555
operator++
Section titled “operator++”inline
inline SBIO_HDBatchIteratorImpl & operator++()Defined in src/lib/sbio/core/datasource.hh:557
Public Types
Section titled “Public Types”| Name | Description |
|---|---|
iterator_category |
|
difference_type |
|
value_type |
|
pointer |
|
reference |
iterator_category
Section titled “iterator_category”using iterator_category = std::input_iterator_tagDefined in src/lib/sbio/core/datasource.hh:542
difference_type
Section titled “difference_type”using difference_type = std::ptrdiff_tDefined in src/lib/sbio/core/datasource.hh:543
value_type
Section titled “value_type”using value_type = StepBatch< typename FTraits::StepIdxType >Type: StepBatch< typename FTraits::StepIdxType >
Defined in src/lib/sbio/core/datasource.hh:544
pointer
Section titled “pointer”using pointer = voidDefined in src/lib/sbio/core/datasource.hh:546
reference
Section titled “reference”using reference = value_typeType: value_type
Defined in src/lib/sbio/core/datasource.hh:547
Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
DS & |
m_ds |
|
value_type |
m_batch |
|
std::size_t |
m_batch_size |
DS & m_dsDefined in src/lib/sbio/core/datasource.hh:573
m_batch
Section titled “m_batch”value_type m_batchType: value_type
Defined in src/lib/sbio/core/datasource.hh:574
m_batch_size
Section titled “m_batch_size”std::size_t m_batch_sizeDefined in src/lib/sbio/core/datasource.hh:575