A value indexer, for iteration or generation.
More...
|
constexpr | indexer () noexcept |
| Default construct with zero value and stride = 1. More...
|
|
constexpr | indexer (const label val, const label stride) noexcept |
| Construct with specified value and stride. More...
|
|
constexpr label | value () const noexcept |
| The current value. More...
|
|
constexpr label | stride () const noexcept |
| The stride. More...
|
|
constexpr label | value (const label n) const noexcept |
| Value with offset. More...
|
|
void | prev () noexcept |
| Decrement value. More...
|
|
void | prev (const label n) noexcept |
| Decrease value. More...
|
|
void | next () noexcept |
| Increment value. More...
|
|
void | next (const label n) noexcept |
| Increase value. More...
|
|
constexpr label | operator* () const noexcept |
| Return the value. More...
|
|
label | operator() () noexcept |
| Apply a postfix increment and return the current value. More...
|
|
A value indexer, for iteration or generation.
Definition at line 208 of file sliceRange.H.
◆ value_type
◆ difference_type
◆ reference
◆ indexer() [1/2]
Default construct with zero value and stride = 1.
Definition at line 55 of file sliceRangeI.H.
◆ indexer() [2/2]
constexpr indexer |
( |
const label |
val, |
|
|
const label |
stride |
|
) |
| |
|
inlineconstexprnoexcept |
Construct with specified value and stride.
Definition at line 63 of file sliceRangeI.H.
◆ value() [1/2]
constexpr label value |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ stride()
constexpr label stride |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ value() [2/2]
constexpr label value |
( |
const label |
n | ) |
const |
|
inlineconstexprnoexcept |
◆ prev() [1/2]
◆ prev() [2/2]
void prev |
( |
const label |
n | ) |
|
|
inlinenoexcept |
◆ next() [1/2]
◆ next() [2/2]
void next |
( |
const label |
n | ) |
|
|
inlinenoexcept |
◆ operator*()
constexpr label operator* |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator()()
Foam::label operator() |
( |
| ) |
|
|
inlinenoexcept |
Apply a postfix increment and return the current value.
This operator definition is required for a generator - see std::generate()
Definition at line 75 of file sliceRangeI.H.
◆ pointer
const typedef label* pointer |
The documentation for this class was generated from the following files: