16 #ifndef ROOT7_THistBinIter
17 #define ROOT7_THistBinIter
25 int , int , const int* , const int& > {
31 THistBinIterBase(const THistBinIterBase &) = default;
32 THistBinIterBase(THistBinIterBase &&) = default;
33 THistBinIterBase &operator=(const THistBinIterBase &) = default;
34 THistBinIterBase &operator=(THistBinIterBase &&) = default;
58 return lhs.fCursor < rhs.fCursor;
62 return lhs.fCursor > rhs.fCursor;
66 return lhs.fCursor <= rhs.fCursor;
70 return lhs.fCursor >= rhs.fCursor;
74 return lhs.fCursor == rhs.fCursor;
78 return lhs.fCursor != rhs.fCursor;
88 template <
class OUTOFRANGE>
97 explicit THistBinIter(
int idx,
const OUTOFRANGE& oor = OUTOFRANGE()):
const int * operator*() const noexcept
const OutOfRange_t & GetOutOfRange() const
bool operator<(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
THistBinIter & operator+=(int d) noexcept
Namespace for new ROOT classes and functions.
bool operator>(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
friend bool operator==(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
friend bool operator!=(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
bool operator()(int) const
int operator->() const noexcept
friend bool operator>(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
friend bool operator<=(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
bool operator!=(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
THistBinIter(int idx, const OUTOFRANGE &oor=OUTOFRANGE())
THistBinIter operator+(int d) noexcept
bool operator==(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
friend bool operator>=(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
THistBinIterBase(int idx)
THistBinIter operator-(int d) noexcept
A predicate for THistBinIterBase to accept all bins.
THistBinIterBase()=default
THistBinIter & operator--() noexcept
–i
bool operator<=(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
THistBinIter & operator++() noexcept
++i
friend bool operator<(THistBinIterBase lhs, THistBinIterBase rhs) noexcept
THistBinIter operator--(int) noexcept
A bin iterator taking a predicate whether it should skip a bin.
THistBinIter operator++(int) noexcept
i++
THistBinIter & operator-=(int d) noexcept
bool operator>=(THistBinIterBase lhs, THistBinIterBase rhs) noexcept