#include <range.h>
Definition at line 23 of file range.h.
◆ After()
bool dart::compiler::ffi::Range::After |
( |
const Range & |
other | ) |
const |
|
inline |
Definition at line 56 of file range.h.
56 {
57 return other.end_exclusive_ <= start_;
58 }
◆ Contains() [1/2]
bool dart::compiler::ffi::Range::Contains |
( |
const Range & |
other | ) |
const |
|
inline |
Definition at line 51 of file range.h.
51 {
53 }
bool Contains(intptr_t number) const
◆ Contains() [2/2]
bool dart::compiler::ffi::Range::Contains |
( |
intptr_t |
number | ) |
const |
|
inline |
Definition at line 46 of file range.h.
46 {
47 return start_ <= number && number < end_exclusive_;
48 }
◆ end_exclusive()
intptr_t dart::compiler::ffi::Range::end_exclusive |
( |
| ) |
const |
|
inline |
Definition at line 40 of file range.h.
40{ return end_exclusive_; }
◆ end_inclusive()
intptr_t dart::compiler::ffi::Range::end_inclusive |
( |
| ) |
const |
|
inline |
Definition at line 41 of file range.h.
41{ return end_exclusive_ - 1; }
◆ Intersect()
const Range dart::compiler::ffi::Range::Intersect |
( |
const Range & |
other | ) |
const |
|
inline |
Definition at line 68 of file range.h.
68 {
72 }
static constexpr T Maximum(T x, T y)
static T Minimum(T x, T y)
bool Overlaps(const Range &other) const
◆ Length()
intptr_t dart::compiler::ffi::Range::Length |
( |
| ) |
const |
|
inline |
Definition at line 43 of file range.h.
43{ return end_exclusive_ - start_; }
◆ Overlaps()
bool dart::compiler::ffi::Range::Overlaps |
( |
const Range & |
other | ) |
const |
|
inline |
Definition at line 61 of file range.h.
61 {
62 return !this->
After(other) && !other.After(*
this);
63 }
bool After(const Range &other) const
◆ start()
intptr_t dart::compiler::ffi::Range::start |
( |
| ) |
const |
|
inline |
◆ StartAndEnd()
static Range dart::compiler::ffi::Range::StartAndEnd |
( |
intptr_t |
start_inclusive, |
|
|
intptr_t |
end_exclusive |
|
) |
| |
|
inlinestatic |
Definition at line 35 of file range.h.
35 {
37 }
intptr_t end_exclusive() const
◆ StartAndLength()
static Range dart::compiler::ffi::Range::StartAndLength |
( |
intptr_t |
start_inclusive, |
|
|
intptr_t |
length |
|
) |
| |
|
inlinestatic |
Definition at line 28 of file range.h.
28 {
29 return Range(start_inclusive, start_inclusive +
length);
30 }
◆ Translate()
const Range dart::compiler::ffi::Range::Translate |
( |
intptr_t |
delta | ) |
const |
|
inline |
Definition at line 77 of file range.h.
77 {
78 return Range(start_ +
delta, end_exclusive_ +
delta);
79 }
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/runtime/vm/compiler/ffi/range.h