Go to the documentation of this file.
56 label final = touches ? 1 : 0;
65 range.first() >= this->first()
66 &&
range.first() <= this->last() +
final
70 this->first() >=
range.first()
71 && this->first() <=
range.last() +
final
85 else if (!
range.size_)
92 const label sz = upper - lower + 1;
113 size_ = upper - lower + 1;
128 is.
check(
"operator>>(Istream&, labelRange&)");
131 if (
range.size_ <= 0)
151 os.
check(
"operator<<(Ostream&, const labelRange&)");
Istream & readEnd(const char *funcName)
label last() const
The (inclusive) upper value of the range.
labelRange & operator+=(const labelRange &)
Join ranges, squashing any gaps in between.
labelRange join(const labelRange &) const
Return a joined range, squashing any gaps in between.
labelRange()
Construct an empty range.
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)....
static const const_iterator endIter_
const_iterator returned by end(), cend()
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool intersects(const labelRange &, const bool touches=false) const
Return true if the ranges intersect.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Istream & operator>>(Istream &, edgeMesh &)
label first() const
The (inclusive) lower value of the range.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Istream & readBegin(const char *funcName)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)