OR-Tools  9.6
Domain::DomainIterator

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 171 of file 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
 

Constructor & Destructor Documentation

◆ DomainIterator()

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

Definition at line 173 of file sorted_interval_list.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 190 of file sorted_interval_list.h.

◆ operator*()

int64_t operator* ( ) const
inline

Definition at line 179 of file sorted_interval_list.h.

◆ operator++()

void operator++ ( )
inline

Definition at line 181 of file sorted_interval_list.h.


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