Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::IndexRangeIterator< Index > Class Template Reference

The iterator for an IndexRange. More...

#include <base_types.h>

Public Member Functions

 IndexRangeIterator (const IndexRange< Index > &range)
 IndexRangeIterator (const IndexRange< Index > &range, bool at_end)
bool at_end () const
Index operator* ()
bool operator== (const IndexRangeIterator &other) const
bool operator!= (const IndexRangeIterator &other) const
IndexRangeIteratoroperator++ ()

Detailed Description

template<typename Index>
class operations_research::IndexRangeIterator< Index >

The iterator for an IndexRange.

Definition at line 310 of file base_types.h.

Constructor & Destructor Documentation

◆ IndexRangeIterator() [1/2]

template<typename Index>
operations_research::IndexRangeIterator< Index >::IndexRangeIterator ( const IndexRange< Index > & range)
inlineexplicit

Definition at line 312 of file base_types.h.

◆ IndexRangeIterator() [2/2]

template<typename Index>
operations_research::IndexRangeIterator< Index >::IndexRangeIterator ( const IndexRange< Index > & range,
bool at_end )
inline

Definition at line 315 of file base_types.h.

Member Function Documentation

◆ at_end()

template<typename Index>
bool operations_research::IndexRangeIterator< Index >::at_end ( ) const
inline

Definition at line 318 of file base_types.h.

◆ operator!=()

template<typename Index>
bool operations_research::IndexRangeIterator< Index >::operator!= ( const IndexRangeIterator< Index > & other) const
inline

Definition at line 328 of file base_types.h.

◆ operator*()

template<typename Index>
Index operations_research::IndexRangeIterator< Index >::operator* ( )
inline

Definition at line 320 of file base_types.h.

◆ operator++()

template<typename Index>
IndexRangeIterator & operations_research::IndexRangeIterator< Index >::operator++ ( )
inline

Definition at line 332 of file base_types.h.

◆ operator==()

template<typename Index>
bool operations_research::IndexRangeIterator< Index >::operator== ( const IndexRangeIterator< Index > & other) const
inline

Definition at line 322 of file base_types.h.


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