Generated on Sat Feb 7 2015 02:01:40 for Gecode by doxygen 1.8.9.1

Range iterator for integer sets. More...

#include <int.hh>

Constructors and initialization

 IntSetRanges (void)
 Default constructor. More...
 
 IntSetRanges (const IntSet &s)
 Initialize with ranges for set s. More...
 
void init (const IntSet &s)
 Initialize with ranges for set s. More...
 

Iteration control

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

Range access

int min (void) const
 Return smallest value of range. More...
 
int max (void) const
 Return largest value of range. More...
 
unsigned int width (void) const
 Return width of range (distance between minimum and maximum) More...
 

Detailed Description

Range iterator for integer sets.

Definition at line 271 of file int.hh.

Constructor & Destructor Documentation

Gecode::IntSetRanges::IntSetRanges ( void  )
inline

Default constructor.

Definition at line 178 of file int-set-1.hpp.

Gecode::IntSetRanges::IntSetRanges ( const IntSet s)
inline

Initialize with ranges for set s.

Definition at line 190 of file int-set-1.hpp.

Member Function Documentation

void Gecode::IntSetRanges::init ( const IntSet s)
inline

Initialize with ranges for set s.

Definition at line 181 of file int-set-1.hpp.

bool Gecode::IntSetRanges::operator() ( void  ) const
inline

Test whether iterator is still at a range or done.

Definition at line 198 of file int-set-1.hpp.

void Gecode::IntSetRanges::operator++ ( void  )
inline

Move iterator to next range (if possible)

Definition at line 194 of file int-set-1.hpp.

int Gecode::IntSetRanges::min ( void  ) const
inline

Return smallest value of range.

Definition at line 203 of file int-set-1.hpp.

int Gecode::IntSetRanges::max ( void  ) const
inline

Return largest value of range.

Definition at line 207 of file int-set-1.hpp.

unsigned int Gecode::IntSetRanges::width ( void  ) const
inline

Return width of range (distance between minimum and maximum)

Definition at line 211 of file int-set-1.hpp.


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