Go to the documentation of this file.
79 std::iota(result.begin(), result.end(), start_);
104 const label extra = touches ? 1 : 0;
108 this->size() &&
range.size()
112 range.first() >= this->first()
113 &&
range.first() <= this->last() + extra
117 this->first() >=
range.first()
118 && this->first() <=
range.last() + extra
132 else if (!
range.size())
212 if (size < 0) size = 0;
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.
Istream & operator>>(Istream &, directionInfo &)
static const labelRange null
An empty range with start=0, size=0.
string lower(const std::string &str)
Return string transformed with std::tolower on each character.
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
bool overlaps(const labelRange &range, bool touches=false) const
Return true if the ranges overlap.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
string upper(const std::string &str)
Return string transformed with std::toupper on each character.
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 the range as a list of labels.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
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
An empty range with zero for start/size.
label ListType::const_reference const label start
labelRange subset0(const label size) const
Calculate the intersection with the given 0/size range.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Begin list [isseparator].
A min/max value pair with additional methods. In addition to conveniently storing values,...
Ostream & operator<<(Ostream &, const boundaryPatch &)