OR-Tools  8.2
IntegerRangeIterator< IntegerType >

Detailed Description

template<typename IntegerType>
class util::IntegerRangeIterator< IntegerType >

Definition at line 104 of file iterators.h.

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type = IntegerType
 
using difference_type = std::ptrdiff_t
 
using pointer = IntegerType *
 
using reference = IntegerType &
 

Public Member Functions

 IntegerRangeIterator (IntegerType value)
 
 IntegerRangeIterator (const IntegerRangeIterator &other)
 
IntegerRangeIteratoroperator= (const IntegerRangeIterator &other)
 
bool operator!= (const IntegerRangeIterator &other) const
 
bool operator== (const IntegerRangeIterator &other) const
 
IntegerType operator* () const
 
IntegerRangeIteratoroperator++ ()
 
IntegerRangeIterator operator++ (int)
 

Member Typedef Documentation

◆ difference_type

using difference_type = std::ptrdiff_t

Definition at line 109 of file iterators.h.

◆ iterator_category

using iterator_category = std::input_iterator_tag

Definition at line 107 of file iterators.h.

◆ pointer

using pointer = IntegerType*

Definition at line 110 of file iterators.h.

◆ reference

using reference = IntegerType&

Definition at line 111 of file iterators.h.

◆ value_type

using value_type = IntegerType

Definition at line 108 of file iterators.h.

Constructor & Destructor Documentation

◆ IntegerRangeIterator() [1/2]

IntegerRangeIterator ( IntegerType  value)
inlineexplicit

Definition at line 112 of file iterators.h.

◆ IntegerRangeIterator() [2/2]

IntegerRangeIterator ( const IntegerRangeIterator< IntegerType > &  other)
inline

Definition at line 113 of file iterators.h.

Member Function Documentation

◆ operator!=()

bool operator!= ( const IntegerRangeIterator< IntegerType > &  other) const
inline

Definition at line 118 of file iterators.h.

◆ operator*()

IntegerType operator* ( ) const
inline

Definition at line 126 of file iterators.h.

◆ operator++() [1/2]

IntegerRangeIterator & operator++ ( )
inline

Definition at line 127 of file iterators.h.

◆ operator++() [2/2]

IntegerRangeIterator operator++ ( int  )
inline

Definition at line 131 of file iterators.h.

◆ operator=()

IntegerRangeIterator & operator= ( const IntegerRangeIterator< IntegerType > &  other)
inline

Definition at line 115 of file iterators.h.

◆ operator==()

bool operator== ( const IntegerRangeIterator< IntegerType > &  other) const
inline

Definition at line 123 of file iterators.h.


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