Go to the documentation of this file.
61 stride_(
range->stride()),
65 + ((i < 0 || i >
range->size()) ?
range->size() : i) * stride_
78 value_ += (
n * stride_);
87 return (value_ == other.value_);
99 const label old(value_);
147 inline bool Foam::sliceRange::const_iterator::operator==
156 inline bool Foam::sliceRange::const_iterator::operator!=
161 return !equals(iter);
206 return start_ + stride_ * i;
const_iterator cbegin() const
A const_iterator set to the beginning of the range.
indexer(const sliceRange *range, const label i=0)
Construct from range at given local index.
label operator*() const noexcept
Return the value.
Forward iterator with const access.
const const_iterator end() const
A const_iterator set to 1 beyond the end of the range.
const_iterator(const sliceRange *range, const label i=0)
Construct from range at given local index.
const_iterator at(const label i) const
A value indexer, for iteration or generation.
indexer generator() const
Return a forward values generator.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const const_iterator cend() const
A const_iterator set to 1 beyond the end of the range.
label operator[](const label i) const noexcept
Return element in the range, without bounds checking.
const_iterator & operator-=(const label n) noexcept
Arbitrary decrement, no checking.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const_iterator begin() const
A const_iterator set to the beginning of the range.
void next() noexcept
Forward increment, no checking.
label operator()()
Apply a postfix increment and return the current value.
A set of labels defined by a start, a length and a stride.
constexpr sliceRange() noexcept
An empty slice (0,0,0)
label ListType::const_reference const label start
bool equals(const indexer &other) const noexcept
Test for equality of values, not stride.
const_iterator & operator++() noexcept
Prefix increment, no checking.
const_iterator & operator--() noexcept
Prefix decrement, no checking.
const_iterator & operator+=(const label n) noexcept
Arbitrary increment, no checking.