#include <range.h>
Definition at line 33 of file range.h.
◆ Range() [1/3]
| constexpr gfx::Range::Range |
( |
| ) |
|
|
inlineconstexpr |
◆ Range() [2/3]
| constexpr gfx::Range::Range |
( |
uint32_t |
start, |
|
|
uint32_t |
end |
|
) |
| |
|
inlineconstexpr |
Definition at line 39 of file range.h.
constexpr uint32_t end() const
constexpr uint32_t start() const
References start.
◆ Range() [3/3]
| constexpr gfx::Range::Range |
( |
uint32_t |
position | ) |
|
|
inlineexplicitconstexpr |
Definition at line 42 of file range.h.
42:
Range(position, position) {}
◆ Contains()
| constexpr bool gfx::Range::Contains |
( |
const Range & |
range | ) |
const |
|
inlineconstexpr |
◆ end()
| constexpr uint32_t gfx::Range::end |
( |
| ) |
const |
|
inlineconstexpr |
◆ EqualsIgnoringDirection()
| constexpr bool gfx::Range::EqualsIgnoringDirection |
( |
const Range & |
other | ) |
const |
|
inlineconstexpr |
Definition at line 76 of file range.h.
76 {
77 return GetMin() == other.GetMin() &&
GetMax() == other.GetMax();
78 }
constexpr uint32_t GetMin() const
References GetMax(), and GetMin().
◆ GetMax()
| constexpr uint32_t gfx::Range::GetMax |
( |
| ) |
const |
|
inlineconstexpr |
◆ GetMin()
| constexpr uint32_t gfx::Range::GetMin |
( |
| ) |
const |
|
inlineconstexpr |
◆ Intersect()
| constexpr Range gfx::Range::Intersect |
( |
const Range & |
range | ) |
const |
|
inlineconstexpr |
Definition at line 99 of file range.h.
99 {
100 const uint32_t min = std::max(
GetMin(), range.GetMin());
101 const uint32_t max = std::min(
GetMax(), range.GetMax());
102 return (min < max ||
Contains(range) || range.Contains(*
this)) ?
Range(min, max)
104 }
constexpr bool Contains(const Range &range) const
static constexpr Range InvalidRange()
References Contains(), GetMax(), and GetMin().
◆ Intersects()
| constexpr bool gfx::Range::Intersects |
( |
const Range & |
range | ) |
const |
|
inlineconstexpr |
Definition at line 81 of file range.h.
constexpr Range Intersect(const Range &range) const
constexpr bool IsValid() const
Referenced by TEST(), and TEST().
◆ InvalidRange()
| static constexpr Range gfx::Range::InvalidRange |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ is_empty()
| constexpr bool gfx::Range::is_empty |
( |
| ) |
const |
|
inlineconstexpr |
◆ is_reversed()
| constexpr bool gfx::Range::is_reversed |
( |
| ) |
const |
|
inlineconstexpr |
◆ IsBoundedBy()
| constexpr bool gfx::Range::IsBoundedBy |
( |
const Range & |
range | ) |
const |
|
inlineconstexpr |
◆ IsValid()
| constexpr bool gfx::Range::IsValid |
( |
| ) |
const |
|
inlineconstexpr |
◆ length()
| constexpr uint32_t gfx::Range::length |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator!=()
| constexpr bool gfx::Range::operator!= |
( |
const Range & |
other | ) |
const |
|
inlineconstexpr |
Definition at line 75 of file range.h.
75{ return !(*this == other); }
◆ operator==()
| constexpr bool gfx::Range::operator== |
( |
const Range & |
other | ) |
const |
|
inlineconstexpr |
◆ set_end()
| void gfx::Range::set_end |
( |
uint32_t |
end | ) |
|
|
inline |
◆ set_start()
| void gfx::Range::set_start |
( |
uint32_t |
start | ) |
|
|
inline |
◆ start()
| constexpr uint32_t gfx::Range::start |
( |
| ) |
const |
|
inlineconstexpr |
◆ ToString()
| std::string gfx::Range::ToString |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- third_party/accessibility/gfx/range/range.h
- third_party/accessibility/gfx/range/range.cc