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 (int index) | |
| Construct a bin index for a normal bin. | |
| RBinIndex (long index) | |
| Construct a bin index for a normal bin. | |
| RBinIndex (long long index) | |
| Construct a bin index for a normal bin. | |
| RBinIndex (unsigned int index) | |
| Construct a bin index for a normal bin. | |
| RBinIndex (unsigned long index) | |
| Construct a bin index for a normal bin. | |
| RBinIndex (unsigned long long 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 = kInvalidIndex |
Static Private Attributes | |
| static constexpr auto | kInvalidIndex = static_cast<std::uint64_t>(-1) |
| static constexpr auto | kOverflowIndex = static_cast<std::uint64_t>(-2) |
| static constexpr auto | kUnderflowIndex = static_cast<std::uint64_t>(-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 42 of file RBinIndex.hxx.
|
inline |
Construct a bin index for a normal bin.
Definition at line 45 of file RBinIndex.hxx.
|
inline |
Construct a bin index for a normal bin.
Definition at line 48 of file RBinIndex.hxx.
|
inline |
Construct a bin index for a normal bin.
| [in] | index | signed integer that must not be negative |
Definition at line 53 of file RBinIndex.hxx.
|
inline |
Construct a bin index for a normal bin.
| [in] | index | signed integer that must not be negative |
Definition at line 58 of file RBinIndex.hxx.
|
inline |
Construct a bin index for a normal bin.
| [in] | index | signed integer that must not be negative |
Definition at line 63 of file RBinIndex.hxx.
|
inline |
Return the index for a normal bin.
Definition at line 71 of file RBinIndex.hxx.
|
inline |
Definition at line 83 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 80 of file RBinIndex.hxx.
|
inline |
Definition at line 82 of file RBinIndex.hxx.
|
inline |
Definition at line 81 of file RBinIndex.hxx.
|
inline |
Definition at line 101 of file RBinIndex.hxx.
|
inline |
Definition at line 108 of file RBinIndex.hxx.
Definition at line 114 of file RBinIndex.hxx.
|
inline |
Definition at line 85 of file RBinIndex.hxx.
|
inline |
Definition at line 135 of file RBinIndex.hxx.
|
inline |
Definition at line 142 of file RBinIndex.hxx.
Definition at line 148 of file RBinIndex.hxx.
|
inline |
Definition at line 121 of file RBinIndex.hxx.
Definition at line 183 of file RBinIndex.hxx.
Definition at line 176 of file RBinIndex.hxx.
Definition at line 156 of file RBinIndex.hxx.
Definition at line 158 of file RBinIndex.hxx.
Definition at line 165 of file RBinIndex.hxx.
Definition at line 155 of file RBinIndex.hxx.
Definition at line 167 of file RBinIndex.hxx.
Definition at line 174 of file RBinIndex.hxx.
|
private |
Definition at line 35 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.