Go to the documentation of this file.
50 template<
class T>
class MinMax;
86 inline explicit constexpr
labelRange(const label len) noexcept;
89 inline
labelRange(const label beg, const label len) noexcept;
98 const
bool adjustStart
115 inline label
min() const noexcept;
118 inline label
max() const noexcept;
121 inline label
before() const noexcept;
125 inline label
after() const noexcept;
145 const
bool adjustStart
label before() const noexcept
The value before the start of the range.
labelRange join(const labelRange &range) const
Return a joined range, squashing any gaps in between.
An interval of (signed) integers defined by a start and a size.
const_iterator end() const noexcept
A const_iterator set to 1 beyond the end of the range.
void adjust() noexcept
Adjust the start to avoid negative indices.
void reset(const label beg, const label end, const bool adjustStart) noexcept
Reset start and length, enforces non-negative size.
bool overlaps(const labelRange &range, bool touches=false) const
Return true if the ranges overlap.
label after() const noexcept
The value after the last element in the range.
label size() const noexcept
The size of the range.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
label max() const noexcept
The (inclusive) upper value of the range - same as last()
A range or interval of labels defined by a start and a size.
labelRange subset(const labelRange &range) const
Calculate the intersection of the range with another.
List< label > labels() const
Return list of labels corresponding to the range.
Conversion/extraction to labelRange operation (functor).
static int debug
Debugging.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
constexpr labelRange() noexcept
Default construct an empty range (0,0)
labelRange subset0(const label size) const
Calculate the intersection with the given 0/size range.
label min() const noexcept
The (inclusive) lower value of the range - same as first(), start()
bool valid() const noexcept
Deprecated(2020-09) True if range is non-empty.
label start() const noexcept
The (inclusive) lower value of the range.
A min/max value pair with additional methods. In addition to conveniently storing values,...