A bin index with special values for underflow and overflow bins.
Objects of this type should be passed by value.
Definition at line 23 of file RBinIndex.hxx.
Public Member Functions | |
| RBinIndex ()=default | |
| Construct an invalid bin index. | |
| RBinIndex (std::uint64_t index) | |
| Construct a bin index for a normal bin. | |
| std::uint64_t | GetIndex () const |
| Return the index for a normal bin. | |
| bool | IsInvalid () const |
| bool | IsNormal () const |
| A bin index is normal iff it is not one of the special values. | |
| bool | IsOverflow () const |
| bool | IsUnderflow () const |
| RBinIndex | operator+ (std::uint64_t a) const |
| RBinIndex & | operator++ () |
| RBinIndex | operator++ (int) |
| RBinIndex & | operator+= (std::uint64_t a) |
| RBinIndex | operator- (std::uint64_t a) const |
| RBinIndex & | operator-- () |
| RBinIndex | operator-- (int) |
| RBinIndex & | operator-= (std::uint64_t a) |
Static Public Member Functions | |
| static RBinIndex | Overflow () |
| static RBinIndex | Underflow () |
Private Attributes | |
| std::uint64_t | fIndex = InvalidIndex |
Static Private Attributes | |
| static constexpr std::uint64_t | InvalidIndex = -1 |
| static constexpr std::uint64_t | OverflowIndex = -2 |
| static constexpr std::uint64_t | UnderflowIndex = -3 |
Friends | |
| bool | operator!= (RBinIndex lhs, RBinIndex rhs) |
| bool | operator< (RBinIndex lhs, RBinIndex rhs) |
| bool | operator<= (RBinIndex lhs, RBinIndex rhs) |
| bool | operator== (RBinIndex lhs, RBinIndex rhs) |
| bool | operator> (RBinIndex lhs, RBinIndex rhs) |
| bool | operator>= (RBinIndex lhs, RBinIndex rhs) |
#include <ROOT/RBinIndex.hxx>
|
default |
Construct an invalid bin index.
|
inline |
Construct a bin index for a normal bin.
Definition at line 39 of file RBinIndex.hxx.
|
inline |
Return the index for a normal bin.
Definition at line 42 of file RBinIndex.hxx.
|
inline |
Definition at line 54 of file RBinIndex.hxx.
|
inline |
A bin index is normal iff it is not one of the special values.
Note that a normal bin index may not actually be valid for a given axis if it is outside its range.
Definition at line 51 of file RBinIndex.hxx.
|
inline |
Definition at line 53 of file RBinIndex.hxx.
|
inline |
Definition at line 52 of file RBinIndex.hxx.
|
inline |
Definition at line 72 of file RBinIndex.hxx.
|
inline |
Definition at line 79 of file RBinIndex.hxx.
Definition at line 85 of file RBinIndex.hxx.
|
inline |
Definition at line 56 of file RBinIndex.hxx.
|
inline |
Definition at line 106 of file RBinIndex.hxx.
|
inline |
Definition at line 113 of file RBinIndex.hxx.
Definition at line 119 of file RBinIndex.hxx.
|
inline |
Definition at line 92 of file RBinIndex.hxx.
Definition at line 154 of file RBinIndex.hxx.
Definition at line 147 of file RBinIndex.hxx.
Definition at line 127 of file RBinIndex.hxx.
Definition at line 129 of file RBinIndex.hxx.
Definition at line 136 of file RBinIndex.hxx.
Definition at line 126 of file RBinIndex.hxx.
Definition at line 138 of file RBinIndex.hxx.
Definition at line 145 of file RBinIndex.hxx.
|
private |
Definition at line 32 of file RBinIndex.hxx.
|
staticconstexprprivate |
Definition at line 26 of file RBinIndex.hxx.
|
staticconstexprprivate |
Definition at line 25 of file RBinIndex.hxx.
|
staticconstexprprivate |
Definition at line 24 of file RBinIndex.hxx.