Go to the documentation of this file.
77 const label old(value_);
85 inline constexpr Foam::label
165 inline constexpr Foam::label
169 return (stride() ? (value() - iter.value()) / stride() : label{0});
173 inline constexpr
bool
177 return (value() == iter.value());
181 inline constexpr
bool
185 return (value() < iter.value());
191 inline constexpr Foam::label
271 inline constexpr Foam::label
275 return (stride() ? (iter.value() - value()) / stride() : label{0});
279 inline constexpr
bool
283 return (value() == iter.value());
287 inline constexpr
bool
291 return (iter.value() < value());
300 return indexer(start_, stride_);
310 start_ + ((i < 0 || i > size_) ? size_ : i) * stride_,
const_reverse_iterator & operator+=(const label n) noexcept
Arbitrary increment.
Bidirectional input iterator with const access.
constexpr label operator[](const label n) const noexcept
Offset dereference operator.
const_reverse_iterator rend() const noexcept
A const_reverse_iterator set to 1 before the begin of range.
const_reverse_iterator crbegin() const noexcept
A const_reverse_iterator set to 1 before the end of range.
constexpr bool operator==(const const_iterator &iter) const noexcept
Test for equality of values (ignore stride)
const_iterator at(const label i) const
A value indexer, for iteration or generation.
const_iterator cend() const noexcept
A const_iterator set to 1 beyond the end of the range.
Bidirectional reverse input iterator with const access.
constexpr const_iterator operator+(const label n) const noexcept
Return iterator with offset.
indexer generator() const
Return a forward values generator.
constexpr bool operator==(const const_reverse_iterator &iter) const noexcept
Test for equality of values (ignore stride)
constexpr const_iterator operator-(const label n) const noexcept
Return iterator with offset.
constexpr const_reverse_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 label operator[](const label n) const noexcept
Offset dereference operator.
label operator()() noexcept
Apply a postfix increment and return the current value.
const_reverse_iterator & operator--() noexcept
Prefix decrement.
const_iterator & operator-=(const label n) noexcept
Arbitrary decrement.
const_reverse_iterator rbegin() const noexcept
A const_reverse_iterator set to 1 before the end of range.
constexpr sliceRange() noexcept
Default construct an empty slice (0,0,0)
constexpr indexer() noexcept
Default construct with zero value and stride = 1.
constexpr const_reverse_iterator operator+(const label n) const noexcept
Return iterator with offset.
constexpr bool operator<(const const_reverse_iterator &iter) const noexcept
Reverse compare less-than values (ignore stride)
const_iterator end() const noexcept
A const_iterator set to 1 beyond the end of the range.
const_iterator & operator++() noexcept
Prefix increment.
constexpr bool operator<(const const_iterator &iter) const noexcept
Compare less-than values (ignore stride)
const_iterator & operator--() noexcept
Prefix decrement.
const_reverse_iterator & operator++() noexcept
Prefix increment.
const_reverse_iterator crend() const noexcept
A const_reverse_iterator set to 1 before the begin of range.
const_iterator begin() const noexcept
A const_iterator set to the beginning of the range.
const_reverse_iterator & operator-=(const label n) noexcept
Arbitrary decrement.
const_iterator & operator+=(const label n) noexcept
Arbitrary increment.