75 const label old(value_);
83 inline constexpr Foam::label
163 inline constexpr Foam::label
167 return (
stride() ? (value() - iter.value()) /
stride() : label{0});
171 inline constexpr
bool 175 return (value() == iter.value());
179 inline constexpr
bool 183 return (value() < iter.value());
189 inline constexpr Foam::label
269 inline constexpr Foam::label
273 return (
stride() ? (iter.value() - value()) /
stride() : label{0});
277 inline constexpr
bool 281 return (value() == iter.value());
285 inline constexpr
bool 289 return (iter.value() < value());
298 return indexer(start_, stride_);
308 start_ + ((i < 0 || i > size_) ? size_ : i) * stride_,
366 return const_reverse_iterator(start_ - stride_, stride_);
const_iterator end() const noexcept
A const_iterator set to 1 beyond the end of the range.
constexpr label operator[](const label n) const noexcept
Offset dereference operator.
const_iterator at(const label i) const
Return const_iterator to a position within the range, with bounds checking.
constexpr indexer() noexcept
Default construct with zero value and stride = 1.
label stride() const noexcept
The stride for the range.
constexpr const_reverse_iterator operator+(const label n) const noexcept
Return iterator with offset.
constexpr const_iterator operator-(const label n) const noexcept
Return iterator with offset.
const_iterator cbegin() const noexcept
A const_iterator set to the beginning of the range.
constexpr bool operator==(const const_reverse_iterator &iter) const noexcept
Test for equality of values (ignore stride)
constexpr const_reverse_iterator operator-(const label n) const noexcept
Return iterator with offset.
A value indexer, for iteration or generation.
constexpr bool operator==(const const_iterator &iter) const noexcept
Test for equality of values (ignore stride)
const_reverse_iterator crend() const noexcept
A const_reverse_iterator set to 1 before the begin of range.
Bidirectional input iterator with const access.
constexpr label operator[](const label n) const noexcept
Offset dereference operator.
void next() noexcept
Increment value.
Bidirectional reverse input iterator with const access.
const_iterator & operator--() noexcept
Prefix decrement.
constexpr bool operator<(const const_reverse_iterator &iter) const noexcept
Reverse compare less-than values (ignore stride)
const_iterator begin() const noexcept
A const_iterator set to the beginning of the range.
const_iterator & operator++() noexcept
Prefix increment.
constexpr sliceRange() noexcept
Default construct an empty slice (0,0,0)
const_reverse_iterator & operator++() noexcept
Prefix increment.
const_reverse_iterator & operator+=(const label n) noexcept
Arbitrary increment.
const_reverse_iterator & operator-=(const label n) noexcept
Arbitrary decrement.
constexpr bool operator<(const const_iterator &iter) const noexcept
Compare less-than values (ignore stride)
constexpr const_iterator operator+(const label n) const noexcept
Return iterator with offset.
const_reverse_iterator rbegin() const noexcept
A const_reverse_iterator set to 1 before the end of range.
const_reverse_iterator & operator--() noexcept
Prefix decrement.
const_iterator & operator+=(const label n) noexcept
Arbitrary increment.
const_iterator & operator-=(const label n) noexcept
Arbitrary decrement.
const_reverse_iterator rend() const noexcept
A const_reverse_iterator set to 1 before the begin of range.
label operator()() noexcept
Apply a postfix increment and return the current value.
const_reverse_iterator crbegin() const noexcept
A const_reverse_iterator set to 1 before the end of range.
const_iterator cend() const noexcept
A const_iterator set to 1 beyond the end of the range.
indexer generator() const
Return a forward values generator.