Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

Range iterator for integer-precision scale integer views More...

#include <scale.hpp>

Constructors and initialization

 ViewRanges (void)
 Default constructor.
 
 ViewRanges (const IntScaleView &x)
 Initialize with ranges for view x.
 
void init (const IntScaleView &x)
 Initialize with ranges for view x.
 

Additional Inherited Members

- Public Member Functions inherited from Gecode::Iter::Ranges::ScaleUp< int, unsigned int, ViewRanges< IntView > >
 ScaleUp (void)
 Default constructor.
 
 ScaleUp (ViewRanges< IntView > &i, int a)
 Initialize with ranges from i and scale factor a.
 
void init (ViewRanges< IntView > &i, int a)
 Initialize with ranges from i and scale factor a.
 
bool operator() (void) const
 Test whether iterator is still at a range or done.
 
void operator++ (void)
 Move iterator to next range (if possible)
 
int min (void) const
 Return smallest value of range.
 
int max (void) const
 Return largest value of range.
 
unsigned int width (void) const
 Return width of range (distance between minimum and maximum)
 
- Protected Attributes inherited from Gecode::Iter::Ranges::ScaleUp< int, unsigned int, ViewRanges< IntView > >
ViewRanges< IntViewi
 Iterator to be scaled.
 
int a
 Scale-factor.
 
int cur
 Current value of range.
 
int end
 Last value of scaled range of i.
 

Detailed Description

Range iterator for integer-precision scale integer views

Definition at line 253 of file scale.hpp.

Constructor & Destructor Documentation

◆ ViewRanges() [1/2]

Gecode::Int::ViewRanges< IntScaleView >::ViewRanges ( void )
inline

Default constructor.

Definition at line 268 of file scale.hpp.

◆ ViewRanges() [2/2]

Gecode::Int::ViewRanges< IntScaleView >::ViewRanges ( const IntScaleView & x)
inline

Initialize with ranges for view x.

Definition at line 270 of file scale.hpp.

Member Function Documentation

◆ init()

void Gecode::Int::ViewRanges< IntScaleView >::init ( const IntScaleView & x)
inline

Initialize with ranges for view x.

Definition at line 276 of file scale.hpp.


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