Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property > Class Template Reference

Detailed Description

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
class util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >

Definition at line 331 of file graph.h.

#include <graph.h>

Inheritance diagram for util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >:

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
ArcPropertyIteratoroperator++ ()
ArcPropertyIterator operator++ (int)

Friends

bool operator== (const ArcPropertyIterator &l, const ArcPropertyIterator &r)
bool operator!= (const ArcPropertyIterator &l, const ArcPropertyIterator &r)

Member Typedef Documentation

◆ difference_type

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
using util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >::difference_type = std::ptrdiff_t

Definition at line 340 of file graph.h.

◆ value_type

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
using util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >::value_type = PropertyT

Definition at line 337 of file graph.h.

Constructor & Destructor Documentation

◆ ArcPropertyIterator() [1/2]

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >::ArcPropertyIterator ( )
default

◆ ArcPropertyIterator() [2/2]

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >::ArcPropertyIterator ( const Graph & graph,
ArcIterator arc_it )
inline

Definition at line 349 of file graph.h.

Member Function Documentation

◆ operator*()

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
value_type util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >::operator* ( ) const
inline

Definition at line 352 of file graph.h.

◆ operator++() [1/2]

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
ArcPropertyIterator & util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >::operator++ ( )
inline

Definition at line 354 of file graph.h.

◆ operator++() [2/2]

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
ArcPropertyIterator util::ArcPropertyIterator< Graph, ArcIterator, PropertyT, property >::operator++ ( int )
inline

Definition at line 358 of file graph.h.

◆ operator!=

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
bool operator!= ( const ArcPropertyIterator< Graph, ArcIterator, PropertyT, property > & l,
const ArcPropertyIterator< Graph, ArcIterator, PropertyT, property > & r )
friend

Definition at line 369 of file graph.h.

◆ operator==

template<typename Graph, typename ArcIterator, typename PropertyT, PropertyT(Graph::*)(typename Graph::ArcIndex) const property>
bool operator== ( const ArcPropertyIterator< Graph, ArcIterator, PropertyT, property > & l,
const ArcPropertyIterator< Graph, ArcIterator, PropertyT, property > & r )
friend

Definition at line 364 of file graph.h.


The documentation for this class was generated from the following file: