Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Simple iterator on an integer range, see IntegerRange below. More...
#include <iterators.h>
Public Member Functions | |
IntegerRangeIterator (IntegerType value) | |
IntegerRangeIterator (const IntegerRangeIterator &other) | |
IntegerRangeIterator & | operator= (const IntegerRangeIterator &other) |
bool | operator!= (const IntegerRangeIterator &other) const |
bool | operator== (const IntegerRangeIterator &other) const |
IntegerType | operator* () const |
IntegerRangeIterator & | operator++ () |
IntegerRangeIterator | operator++ (int) |
Simple iterator on an integer range, see IntegerRange below.
Definition at line 105 of file iterators.h.
|
inlineexplicit |
Definition at line 108 of file iterators.h.
|
inline |
Definition at line 109 of file iterators.h.
|
inline |
This may seems weird, but using < instead of != avoid almost-infinite loop if one use IntegerRange<int>(1, 0) below for instance.
Definition at line 114 of file iterators.h.
|
inline |
Definition at line 122 of file iterators.h.
|
inline |
Definition at line 123 of file iterators.h.
|
inline |
Definition at line 127 of file iterators.h.
|
inline |
Definition at line 111 of file iterators.h.
|
inline |
Definition at line 119 of file iterators.h.