Skip to content

SourceSet::IteratorImpl

#include <sbio/core/iteration.hh>
template<class Set, bool Batched>
class IteratorImpl

Defined in src/lib/sbio/core/iteration.hh:829

An iterator implementation to allow generating step indices from the set.

  • Set The SourceSet to iterate over (const/non-const etc.)

  • Batched Whether the iterator generates batches of steps.

Name Description
operator== inline
operator!= inline

inline

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

Defined in src/lib/sbio/core/iteration.hh:856


inline

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

Defined in src/lib/sbio/core/iteration.hh:864

Return Name Description
SBIO_HD IteratorImpl inline
SBIO_HDreference operator* const inline
SBIO_HDIteratorImpl & operator++ inline
SBIO_HD void operator++ inline

inline

inline SBIO_HD IteratorImpl(Set & set, value_type value, hd_std::size_t batch_size = 0)

Defined in src/lib/sbio/core/iteration.hh:837


const inline

inline SBIO_HDreference operator*() const

Defined in src/lib/sbio/core/iteration.hh:843


inline

inline SBIO_HDIteratorImpl & operator++()

Defined in src/lib/sbio/core/iteration.hh:845


inline

inline SBIO_HD void operator++(int)

Defined in src/lib/sbio/core/iteration.hh:854

Name Description
iterator_category
difference_type
value_type
pointer
reference

using iterator_category = hd_std::input_iterator_tag

Defined in src/lib/sbio/core/iteration.hh:831


using difference_type = hd_std::ptrdiff_t

Defined in src/lib/sbio/core/iteration.hh:832


using value_type = hd_std::conditional_t< Batched, StepBatch< StepIdxType >, StepIdxType >

Type: hd_std::conditional_t< Batched, StepBatch< StepIdxType >, StepIdxType >

Defined in src/lib/sbio/core/iteration.hh:833


using pointer = void

Defined in src/lib/sbio/core/iteration.hh:834


using reference = value_type

Type: value_type

Defined in src/lib/sbio/core/iteration.hh:835

Return Name Description
Set & m_set
value_type m_value
hd_std::size_t m_batch_size

Set & m_set

Defined in src/lib/sbio/core/iteration.hh:869


value_type m_value

Type: value_type

Defined in src/lib/sbio/core/iteration.hh:870


hd_std::size_t m_batch_size

Defined in src/lib/sbio/core/iteration.hh:871