Go to the documentation of this file.
50 start() =
range.min();
75 std::iota(result.begin(), result.end(), this->start());
83 if (this->start() < 0)
88 this->size() += this->start();
98 const label extra = touches ? 1 : 0;
102 this->size() &&
range.size()
106 range.first() >= this->first()
107 &&
range.first() <= this->last() + extra
111 this->first() >=
range.first()
112 && this->first() <=
range.last() + extra
126 else if (!
range.size())
labelRange join(const labelRange &range) const
Return a joined range, squashing any gaps in between.
int debugSwitch(const char *name, const int deflt=0)
Lookup debug switch or add default value.
void adjust() noexcept
Adjust the start to avoid negative indices.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
bool overlaps(const labelRange &range, bool touches=false) const
Return true if the ranges overlap.
string lower(const std::string &s)
Return string copy transformed with std::tolower on each character.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
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.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
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.
string upper(const std::string &s)
Return string copy transformed with std::toupper on each character.
void clampSize() noexcept
Enforce non-negative size.
A min/max value pair with additional methods. In addition to conveniently storing values,...