Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
util_intops::StrongIntRange< IntType > Class Template Reference

#include <strong_int.h>

Classes

class  StrongIntRangeIterator
 Iterator over the indices. More...
 

Public Member Functions

 StrongIntRange (IntType end)
 Loops from IntType(0) up to (but not including) end.
 
 StrongIntRange (IntType begin, IntType end)
 Loops from begin up to (but not including) end.
 
StrongIntRangeIterator begin () const
 
StrongIntRangeIterator end () const
 

Detailed Description

template<typename IntType>
class util_intops::StrongIntRange< IntType >

Support for-range loops. Enables easier looping over ranges of StrongInts, especially looping over sub-ranges of StrongVectors.

Definition at line 391 of file strong_int.h.

Constructor & Destructor Documentation

◆ StrongIntRange() [1/2]

template<typename IntType >
util_intops::StrongIntRange< IntType >::StrongIntRange ( IntType end)
inlineexplicit

Loops from IntType(0) up to (but not including) end.

Definition at line 426 of file strong_int.h.

◆ StrongIntRange() [2/2]

template<typename IntType >
util_intops::StrongIntRange< IntType >::StrongIntRange ( IntType begin,
IntType end )
inline

Loops from begin up to (but not including) end.

Definition at line 428 of file strong_int.h.

Member Function Documentation

◆ begin()

template<typename IntType >
StrongIntRangeIterator util_intops::StrongIntRange< IntType >::begin ( ) const
inline

Definition at line 429 of file strong_int.h.

◆ end()

template<typename IntType >
StrongIntRangeIterator util_intops::StrongIntRange< IntType >::end ( ) const
inline

Definition at line 430 of file strong_int.h.


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