Rate this Page

Template Struct IteratorImpl#

Inheritance Relationships#

Derived Types#

Struct Documentation#

template<typename Batch>
struct IteratorImpl#

Base class for the ValidIterator and SentinelIterator

Subclassed by torch::data::detail::SentinelIterator< Batch >, torch::data::detail::ValidIterator< Batch >

Public Functions

virtual ~IteratorImpl() = default#
virtual void next() = 0#
virtual Batch &get() = 0#
virtual bool operator==(const IteratorImpl &other) const = 0#
virtual bool operator==(const ValidIterator<Batch> &other) const = 0#
virtual bool operator==(const SentinelIterator<Batch> &other) const = 0#