Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::InitAndGetValues Class Reference

#include <constraint_solver.h>

Classes

struct  Iterator
 

Public Member Functions

 InitAndGetValues (IntVarIterator *it)
 
Iterator begin ()
 
Iterator end ()
 

Detailed Description

Utility class to encapsulate an IntVarIterator and use it in a range-based loop. See the code snippet above IntVarIterator. It contains DEBUG_MODE-enabled code that DCHECKs that the same iterator instance isn't being iterated on in multiple places simultaneously.

Definition at line 4221 of file constraint_solver.h.

Constructor & Destructor Documentation

◆ InitAndGetValues()

operations_research::InitAndGetValues::InitAndGetValues ( IntVarIterator * it)
inlineexplicit

Definition at line 4223 of file constraint_solver.h.

Member Function Documentation

◆ begin()

Iterator operations_research::InitAndGetValues::begin ( )
inline

Definition at line 4229 of file constraint_solver.h.

◆ end()

Iterator operations_research::InitAndGetValues::end ( )
inline

Definition at line 4236 of file constraint_solver.h.


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