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

Range iterator for minus integer views More...

#include <minus.hpp>

Constructors and initialization

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

Range access

int min (void) const
 Return smallest value of range.
 
int max (void) const
 Return largest value of range.
 

Additional Inherited Members

- Public Member Functions inherited from Gecode::Int::IntVarImpBwd
 IntVarImpBwd (void)
 Default constructor.
 
 IntVarImpBwd (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 previous 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 minus integer views

Definition at line 254 of file minus.hpp.

Constructor & Destructor Documentation

◆ ViewRanges() [1/2]

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

Default constructor.

Definition at line 276 of file minus.hpp.

◆ ViewRanges() [2/2]

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

Initialize with ranges for view x.

Definition at line 279 of file minus.hpp.

Member Function Documentation

◆ init()

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

Initialize with ranges for view x.

Definition at line 283 of file minus.hpp.

◆ min()

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

Return smallest value of range.

Definition at line 288 of file minus.hpp.

◆ max()

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

Return largest value of range.

Definition at line 292 of file minus.hpp.


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