This class generates a IntRange [a,b) which can be used in a for loop, e.g. for(auto i : IntRange(3) { ... i = 0, 1, 2 } or for(auto i : IntRange(5, 8) { ... i = 5, 6, 7 } see: https://en.wikipedia.org/wiki/Generator_(computer_programming)
More...
#include <dumux/common/intrange.hh>
This class generates a IntRange [a,b) which can be used in a for loop, e.g. for(auto i : IntRange(3) { ... i = 0, 1, 2 } or for(auto i : IntRange(5, 8) { ... i = 5, 6, 7 } see: https://en.wikipedia.org/wiki/Generator_(computer_programming)
◆ IntRange() [1/3]
Dumux::IntRange::IntRange |
( |
int |
end | ) |
|
|
inline |
◆ IntRange() [2/3]
Dumux::IntRange::IntRange |
( |
int |
begin, |
|
|
int |
end |
|
) |
| |
|
inline |
◆ IntRange() [3/3]
Dumux::IntRange::IntRange |
( |
| ) |
|
|
delete |
◆ begin()
const IntRange & Dumux::IntRange::begin |
( |
| ) |
const |
|
inline |
◆ end()
const IntRange & Dumux::IntRange::end |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool Dumux::IntRange::operator!= |
( |
const IntRange & |
| ) |
const |
|
inline |
◆ operator*()
int Dumux::IntRange::operator* |
( |
| ) |
const |
|
inline |
◆ operator++()
void Dumux::IntRange::operator++ |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: