Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::StarGraphBase< NodeIndexType, ArcIndexType, DerivedGraph >::NodeIterator Class Reference

Iterator class for traversing all the nodes in the graph. More...

#include <ebert_graph.h>

Public Member Functions

 NodeIterator (const DerivedGraph &graph)
 
bool Ok () const
 Returns true unless all the nodes have been traversed.
 
void Next ()
 Advances the current node index.
 
NodeIndexType Index () const
 Returns the index of the node currently pointed to by the iterator.
 

Detailed Description

template<typename NodeIndexType, typename ArcIndexType, typename DerivedGraph>
class operations_research::StarGraphBase< NodeIndexType, ArcIndexType, DerivedGraph >::NodeIterator

Iterator class for traversing all the nodes in the graph.

Definition at line 319 of file ebert_graph.h.

Constructor & Destructor Documentation

◆ NodeIterator()

template<typename NodeIndexType , typename ArcIndexType , typename DerivedGraph >
operations_research::StarGraphBase< NodeIndexType, ArcIndexType, DerivedGraph >::NodeIterator::NodeIterator ( const DerivedGraph & graph)
inlineexplicit

Definition at line 321 of file ebert_graph.h.

Member Function Documentation

◆ Index()

template<typename NodeIndexType , typename ArcIndexType , typename DerivedGraph >
NodeIndexType operations_research::StarGraphBase< NodeIndexType, ArcIndexType, DerivedGraph >::NodeIterator::Index ( ) const
inline

Returns the index of the node currently pointed to by the iterator.

Definition at line 331 of file ebert_graph.h.

◆ Next()

template<typename NodeIndexType , typename ArcIndexType , typename DerivedGraph >
void operations_research::StarGraphBase< NodeIndexType, ArcIndexType, DerivedGraph >::NodeIterator::Next ( )
inline

Advances the current node index.

Definition at line 328 of file ebert_graph.h.

◆ Ok()

template<typename NodeIndexType , typename ArcIndexType , typename DerivedGraph >
bool operations_research::StarGraphBase< NodeIndexType, ArcIndexType, DerivedGraph >::NodeIterator::Ok ( ) const
inline

Returns true unless all the nodes have been traversed.

Definition at line 325 of file ebert_graph.h.


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