Go to the documentation of this file.
52 template<
class T>
class List;
53 template<
class T>
class MinMax;
107 const
bool adjustStart
134 inline
void setStart(const label i) noexcept;
137 inline
void resize(const label
n) noexcept;
140 inline
void setSize(const label
n) noexcept;
143 inline
void clear() noexcept;
146 inline
bool empty() const noexcept;
149 inline
bool valid() const noexcept;
152 inline label
start() const noexcept;
155 inline label
size() const noexcept;
158 inline label
before() const noexcept;
161 inline label
first() const noexcept;
164 inline label
min() const noexcept;
167 inline label
last() const noexcept;
170 inline label
max() const noexcept;
174 inline label
after() const noexcept;
193 const
bool adjustStart
197 inline
bool found(const label value) const noexcept;
229 inline label operator[](const label i) const noexcept;
233 inline
bool operator()(const label value) const noexcept;
236 inline label operator++() noexcept;
237 inline label operator++(
int) noexcept;
240 inline label operator+=(const label
n) noexcept;
243 inline label operator--() noexcept;
244 inline label operator--(
int) noexcept;
247 inline label operator-=(const label
n) noexcept;
257 std::input_iterator_tag,
355 return (a.first() ==
b.first() && a.size() ==
b.size());
370 a.first() <
b.first()
373 !(
b.first() < a.first())
374 && a.size() <
b.size()
void setSize(const label n) noexcept
Change the size - alias for resize()
bool reset(const label start, const label size) noexcept
Reset start and size, enforcing non-negative size.
bool operator<=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or older than B.
const_iterator cbegin() const
A const_iterator set to the beginning of the range.
label before() const noexcept
The value before the start of the range.
labelRange join(const labelRange &range) const
Return a joined range, squashing any gaps in between.
const const_iterator end() const
A const_iterator set to 1 beyond the end of the range.
label operator++() noexcept
Increase the size by 1.
const const_iterator cend() const
A const_iterator set to 1 beyond the end of the range.
void adjust() noexcept
Adjust the start to avoid negative indices.
Istream & operator>>(Istream &, directionInfo &)
label size() const noexcept
The effective size of the range.
void clear() noexcept
Reset to zero start and zero size.
bool overlaps(const labelRange &range, bool touches=false) const
Return true if the ranges overlap.
label after() const noexcept
The value after the last element in the range.
label value_type
Type of values the range contains.
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool found(const label value) const noexcept
Return true if the (global) value is located within the range.
label max() const noexcept
The (inclusive) upper value of the range - same as last()
A range or interval of labels defined by a start and a size.
const_iterator at(const label i) const
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.
void resize(const label n) noexcept
Change the size, enforcing non-negative size.
Conversion/extraction to labelRange operation (functor).
label first() const noexcept
The (inclusive) lower value of the range - same as start()
bool operator>=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or newer than B.
Forward iterator with const access.
static int debug
Debugging.
label last() const noexcept
The (inclusive) upper value of the range - same as max()
bool empty() const noexcept
Is the range empty?
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.
tmp< faMatrix< Type > > operator*(const areaScalarField &, const faMatrix< Type > &)
label operator+=(const label n) noexcept
Increase the size by n.
label start() const noexcept
The (inclusive) lower value of the range.
labelRange subset0(const label size) const
Calculate the intersection with the given 0/size range.
static labelRange identity(const label len, const label start=0) noexcept
void setStart(const label i) noexcept
Change the start position.
const_iterator begin() const
A const_iterator set to the beginning of the range.
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.
label min() const noexcept
The (inclusive) lower value of the range - same as start(), first()
label size_type
The type that can represent the size of the range.
label operator-=(const label n) noexcept
Decrease the size by n, but never below 0.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool valid() const noexcept
Is the range non-empty?
A min/max value pair with additional methods. In addition to conveniently storing values,...
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.