operations_research::InitAndGetValues Class Reference

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 3878 of file constraint_solver.h.

Classes

struct  Iterator
 

Public Member Functions

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

Constructor & Destructor Documentation

◆ InitAndGetValues()

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

Definition at line 3880 of file constraint_solver.h.

Member Function Documentation

◆ begin()

Iterator operations_research::InitAndGetValues::begin ( )
inline

Definition at line 3885 of file constraint_solver.h.

◆ end()

Iterator operations_research::InitAndGetValues::end ( )
inline

Definition at line 3892 of file constraint_solver.h.


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