![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
#include <graph.h>
Public Types | |
using | value_type = PropertyT |
using | difference_type = std::ptrdiff_t |
Public Member Functions | |
ArcPropertyIterator ()=default | |
ArcPropertyIterator (const Graph &graph, ArcIterator arc_it) | |
value_type | operator* () const |
ArcPropertyIterator & | operator++ () |
ArcPropertyIterator | operator++ (int) |
Friends | |
bool | operator== (const ArcPropertyIterator &l, const ArcPropertyIterator &r) |
bool | operator!= (const ArcPropertyIterator &l, const ArcPropertyIterator &r) |
An iterator that wraps an arc iterator and retrieves a property of the arc. The property to retrieve is specified by a Graph member function taking an ArcIndex parameter. For example, ArcHeadIterator retrieves the head of an arc with &Graph::Head.
using util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >::difference_type = std::ptrdiff_t |
using util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >::value_type = PropertyT |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |