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

Range iterator for integer variable views More...

#include <int.hpp>

Constructors and initialization

 ViewRanges (void)
 Default constructor.
 ViewRanges (const IntView &x)
 Initialize with ranges for view x.
void init (const IntView &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

 IntVarImpFwd (void)
 Default constructor.
 IntVarImpFwd (const IntVarImp *x)
 Initialize with ranges from variable implementation x.
void init (const IntVarImp *x)
 Initialize with ranges from variable implementation x.
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)

Detailed Description

Range iterator for integer variable views

Definition at line 246 of file int.hpp.

Constructor & Destructor Documentation

◆ ViewRanges() [1/2]

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

Default constructor.

Definition at line 260 of file int.hpp.

◆ ViewRanges() [2/2]

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

Initialize with ranges for view x.

Definition at line 263 of file int.hpp.

Member Function Documentation

◆ init()

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

Initialize with ranges for view x.

Definition at line 267 of file int.hpp.

◆ operator()()

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

Test whether iterator is still at a range or done.

◆ operator++()

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

Move iterator to next range (if possible)

◆ min()

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

Return smallest value of range.

◆ max()

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

Return largest value of range.

◆ width()

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

Return width of range (distance between minimum and maximum)


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