Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.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.

Iteration control

bool operator() (void) const
 Test whether iterator is still at a range or done.
void operator++ (void)
 Move iterator to next range (if possible)

Range access

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)

Additional Inherited Members

 ScaleUp (void)
 Default constructor.
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.

◆ operator()()

bool Gecode::Int::ViewRanges< IntScaleView >::operator() ( void ) const

Test whether iterator is still at a range or done.

◆ operator++()

void Gecode::Int::ViewRanges< IntScaleView >::operator++ ( void )

Move iterator to next range (if possible)

◆ min()

int Gecode::Int::ViewRanges< IntScaleView >::min ( void ) const

Return smallest value of range.

◆ max()

int Gecode::Int::ViewRanges< IntScaleView >::max ( void ) const

Return largest value of range.

◆ width()

unsigned int Gecode::Int::ViewRanges< IntScaleView >::width ( void ) const

Return width of range (distance between minimum and maximum)


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