Template Struct SentinelIterator
Defined in File iterator.h
Page Contents
Inheritance Relationships
Base Type
public torch::data::detail::IteratorImpl< Batch >
(Template Struct IteratorImpl)
Struct Documentation
-
template<typename Batch>
struct SentinelIterator : public torch::data::detail::IteratorImpl<Batch> Public Functions
-
inline virtual Batch &get() override
-
inline virtual bool operator==(const IteratorImpl<Batch> &other) const override
Does double dispatch.
-
inline virtual bool operator==(const ValidIterator<Batch> &other) const override
Calls the comparison operator between
ValidIterator
andSentinelIterator
.
-
inline virtual bool operator==(const SentinelIterator<Batch> &other) const override
Sentinel iterators always compare equal.
-
inline virtual Batch &get() override