Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0

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

#include <scale.hpp>

Constructors and initialization

 ViewRanges (void)
 Default constructor.
 ViewRanges (const LLongScaleView &x)
 Initialize with ranges for view x.
void init (const LLongScaleView &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)
long long int min (void) const
 Return smallest value of range.
long long int max (void) const
 Return largest value of range.
unsigned long long int width (void) const
 Return width of range (distance between minimum and maximum)
Protected Attributes inherited from Gecode::Iter::Ranges::ScaleUp< long long int, unsigned long long int, ViewRanges< IntView > >
ViewRanges< IntViewi
 Iterator to be scaled.
int a
 Scale-factor.
long long int cur
 Current value of range.
long long int end
 Last value of scaled range of i.

Detailed Description

Range iterator for long long int-precision scale integer views

Definition at line 288 of file scale.hpp.

Constructor & Destructor Documentation

◆ ViewRanges() [1/2]

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

Default constructor.

Definition at line 304 of file scale.hpp.

◆ ViewRanges() [2/2]

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

Initialize with ranges for view x.

Definition at line 306 of file scale.hpp.

Member Function Documentation

◆ init()

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

Initialize with ranges for view x.

Definition at line 312 of file scale.hpp.

◆ operator()()

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

Test whether iterator is still at a range or done.

◆ operator++()

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

Move iterator to next range (if possible)

◆ min()

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

Return smallest value of range.

◆ max()

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

Return largest value of range.

◆ width()

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

Return width of range (distance between minimum and maximum)


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