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())
133 const label total = upper+1 - lower;
148 const label total = upper+1 - lower;
167 const label lower =
Foam::max(this->start(), start);
169 const label total = upper+1 - lower;
184 const label lower =
Foam::max(this->start(), 0);
186 const label total = upper+1 - lower;
void clampSize() noexcept
Enforce non-negative size.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A min/max value pair with additional methods. In addition to conveniently storing values,...
int overlaps
Flag to control which overlap calculations are performed.
iterator begin() noexcept
Return an iterator to begin traversing the UList.
iterator end() noexcept
Return an iterator to end traversing the UList.
A range or interval of labels defined by a start and a size.
constexpr labelRange() noexcept
Default construct an empty range (0,0)
void adjust() noexcept
Adjust the start to avoid negative indices.
List< label > labels() const
Return list of labels corresponding to the range.
labelRange subset(const labelRange &range) const
Calculate the intersection of the range with another.
labelRange subset0(const label size) const
Calculate the intersection with the given 0/size range.
static int debug
Debugging.
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.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.