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&)");
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Istream & readEnd(const char *funcName)
Istream & readBegin(const char *funcName)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
labelRange join(const labelRange &) const
Return a joined range, squashing any gaps in between.
bool intersects(const labelRange &, const bool touches=false) const
Return true if the ranges intersect.
label first() const
The (inclusive) lower value of the range.
label last() const
The (inclusive) upper value of the range.
labelRange()
Construct an empty range.
labelRange & operator+=(const labelRange &)
Join ranges, squashing any gaps in between.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelList first(const UList< labelPair > &p)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
Istream & operator>>(Istream &, pistonPointEdgeData &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)