![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
A helper class for implementing list graph iterators: This does pointer chasing on next until sentinel is found. Tag allows distinguishing different iterators with the same index type and sentinel.
Definition at line 250 of file iterators.h.
#include <iterators.h>
Public Types | |
using | difference_type = ptrdiff_t |
using | value_type = IndexT |
Public Member Functions | |
ChasingIterator () | |
ChasingIterator (IndexT index, const IndexT *next) | |
IndexT | operator* () const |
ChasingIterator & | operator++ () |
ChasingIterator | operator++ (int) |
Friends | |
bool | operator== (const ChasingIterator &l, const ChasingIterator &r) |
bool | operator!= (const ChasingIterator &l, const ChasingIterator &r) |
using util::ChasingIterator< IndexT, sentinel, Tag >::difference_type = ptrdiff_t |
Definition at line 256 of file iterators.h.
using util::ChasingIterator< IndexT, sentinel, Tag >::value_type = IndexT |
Definition at line 257 of file iterators.h.
|
inline |
Definition at line 264 of file iterators.h.
|
inline |
Definition at line 266 of file iterators.h.
|
inline |
Definition at line 269 of file iterators.h.
|
inline |
Definition at line 271 of file iterators.h.
|
inline |
Definition at line 275 of file iterators.h.
|
friend |
Definition at line 284 of file iterators.h.
|
friend |
Definition at line 281 of file iterators.h.