15 #ifndef ROOT7_TIndexIter 16 #define ROOT7_TIndexIter 21 namespace Experimental {
32 template <
class REFERENCE,
35 public std::iterator<std::random_access_iterator_tag, REFERENCE, POINTER> {
56 if (fIndex != fgEndIndex)
105 template <
class REFERENCE,
class POINTER>
106 bool operator<(TIndexIter<REFERENCE, POINTER> lhs,
108 return lhs.
GetIndex() < rhs.GetIndex();
111 template <
class REFERENCE,
class POINTER>
114 return lhs.GetIndex() > rhs.GetIndex();
117 template <
class REFERENCE,
class POINTER>
118 bool operator<=(TIndexIter<REFERENCE, POINTER> lhs,
120 return lhs.
GetIndex() <= rhs.GetIndex();
123 template <
class REFERENCE,
class POINTER>
126 return lhs.GetIndex() >= rhs.GetIndex();
129 template <
class REFERENCE,
class POINTER>
132 return lhs.GetIndex() == rhs.GetIndex();
135 template <
class REFERENCE,
class POINTER>
138 return lhs.GetIndex() != rhs.GetIndex();
146 #endif // ROOT7_TIndexIter Iterates over an index; the REFERENCE is defined by the REFERENCE template parameter.
TIndexIter operator--(int) noexcept
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
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.