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

#include <sorted_interval_list.h>

Public Member Functions

 DomainIterator (const absl::InlinedVector< ClosedInterval, 1 > &intervals)
 
int64_t operator* () const
 
void operator++ ()
 
bool operator!= (absl::InlinedVector< ClosedInterval, 1 >::const_iterator end) const
 

Detailed Description

Allows to iterate over all values of a domain in order with for (const int64_t v : domain.Values()) { ... }

Note that this shouldn't be used in another context !! We don't implement full fledged iterator APIs.

Definition at line 176 of file sorted_interval_list.h.

Constructor & Destructor Documentation

◆ DomainIterator()

operations_research::Domain::DomainIterator::DomainIterator ( const absl::InlinedVector< ClosedInterval, 1 > & intervals)
inlineexplicit

Definition at line 178 of file sorted_interval_list.h.

Member Function Documentation

◆ operator!=()

bool operations_research::Domain::DomainIterator::operator!= ( absl::InlinedVector< ClosedInterval, 1 >::const_iterator end) const
inline

Definition at line 195 of file sorted_interval_list.h.

◆ operator*()

int64_t operations_research::Domain::DomainIterator::operator* ( ) const
inline

Definition at line 184 of file sorted_interval_list.h.

◆ operator++()

void operations_research::Domain::DomainIterator::operator++ ( )
inline

Definition at line 186 of file sorted_interval_list.h.


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