A range of addresses.
More...
#include <Addr.hpp>
◆ AddrRange() [1/2]
constexpr gtirb::AddrRange::AddrRange |
( |
Addr |
Lower, |
|
|
Addr |
Upper |
|
) |
| |
|
inlineexplicitconstexprnoexcept |
Construct a range starting at Lower
, extending up to, but not including, Upper
.
Ranges cannot have negative size, so AddrRange(Addr(20), Addr(10))
creates a range starting at Addr(20)
with size 0.
- Parameters
-
Lower | first address in the range. |
Upper | address after the last address contained in the range. |
◆ AddrRange() [2/2]
constexpr gtirb::AddrRange::AddrRange |
( |
Addr |
Lower, |
|
|
uint64_t |
Count |
|
) |
| |
|
inlineexplicitconstexprnoexcept |
Construct a range starting at Lower
and containing a total of Count
addresses.
- Parameters
-
Lower | first address in the range. |
Count | number of addresses in the range. |
◆ lower()
constexpr Addr gtirb::AddrRange::lower |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Inclusive lower bound of the address range.
◆ operator!=()
constexpr bool gtirb::AddrRange::operator!= |
( |
const AddrRange & |
RHS | ) |
const |
|
inlineconstexprnoexcept |
◆ operator==()
constexpr bool gtirb::AddrRange::operator== |
( |
const AddrRange & |
RHS | ) |
const |
|
inlineconstexprnoexcept |
◆ size()
constexpr uint64_t gtirb::AddrRange::size |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Number of addresses in the range.
◆ upper()
constexpr Addr gtirb::AddrRange::upper |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Exclusive upper bound of the address range.
The documentation for this class was generated from the following file: