16 #ifndef ROOT7_TIndexIter 17 #define ROOT7_TIndexIter 22 namespace Experimental {
33 template <
class REFERENCE,
35 class TIndexIter:
public std::iterator<std::random_access_iterator_tag, REFERENCE, POINTER> {
59 if (fIndex != fgEndIndex)
114 template <
class REFERENCE,
class POINTER>
117 return lhs.
GetIndex() < rhs.GetIndex();
120 template <
class REFERENCE,
class POINTER>
123 return lhs.GetIndex() > rhs.GetIndex();
126 template <
class REFERENCE,
class POINTER>
129 return lhs.
GetIndex() <= rhs.GetIndex();
132 template <
class REFERENCE,
class POINTER>
135 return lhs.GetIndex() >= rhs.GetIndex();
138 template <
class REFERENCE,
class POINTER>
141 return lhs.GetIndex() == rhs.GetIndex();
144 template <
class REFERENCE,
class POINTER>
147 return lhs.GetIndex() != rhs.GetIndex();
155 #endif // ROOT7_TIndexIter Iterates over an index; the REFERENCE is defined by the REFERENCE template parameter.
TIndexIter operator--(int) noexcept
Namespace for new ROOT classes and functions.
TIndexIter & operator-=(int d) noexcept
TIndexIter operator+(int d) noexcept
bool operator==(TIndexIter< REFERENCE, POINTER > lhs, TIndexIter< REFERENCE, POINTER > rhs) noexcept
bool operator>(TIndexIter< REFERENCE, POINTER > lhs, TIndexIter< REFERENCE, POINTER > rhs) noexcept
TIndexIter & operator--() noexcept
–i
TIndexIter & operator++() noexcept
TIndexIter & operator+=(int d) noexcept
bool operator!=(TIndexIter< REFERENCE, POINTER > lhs, TIndexIter< REFERENCE, POINTER > rhs) noexcept
bool operator>=(TIndexIter< REFERENCE, POINTER > lhs, TIndexIter< REFERENCE, POINTER > rhs) noexcept
TIndexIter operator-(int d) noexcept
static constexpr size_t fgEndIndex
TIndexIter operator++(int) noexcept
i++
size_t GetIndex() const noexcept
Get the current index value.