![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
#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) |
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 245 of file iterators.h.
using util::ChasingIterator< IndexT, sentinel, Tag >::difference_type = ptrdiff_t |
Definition at line 251 of file iterators.h.
using util::ChasingIterator< IndexT, sentinel, Tag >::value_type = IndexT |
Definition at line 252 of file iterators.h.
|
inline |
Definition at line 254 of file iterators.h.
|
inline |
Definition at line 256 of file iterators.h.
|
inline |
Definition at line 259 of file iterators.h.
|
inline |
Definition at line 261 of file iterators.h.
|
inline |
Definition at line 265 of file iterators.h.
|
friend |
Definition at line 274 of file iterators.h.
|
friend |
Definition at line 271 of file iterators.h.