Template Struct IteratorImpl#
Defined in File iterator.h
Page Contents
Inheritance Relationships#
Derived Types#
public torch::data::detail::SentinelIterator< Batch >
(Template Struct SentinelIterator)public torch::data::detail::ValidIterator< Batch >
(Template Struct ValidIterator)
Struct Documentation#
-
template<typename Batch>
struct IteratorImpl# Base class for the
ValidIterator
andSentinelIterator
Subclassed by torch::data::detail::SentinelIterator< Batch >, torch::data::detail::ValidIterator< Batch >
Public Functions
-
virtual ~IteratorImpl() = default#
-
virtual void next() = 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#
-
virtual ~IteratorImpl() = default#