Generated on Wed Nov 1 15:05:22 2006 for Gecode by doxygen 1.4.5

Gecode::Set::BndSetRanges Class Reference

Inherited by Gecode::Set::GlbRanges< SetVarImp * >, and Gecode::Set::LubRanges< SetVarImp * >.

List of all members.


Detailed Description

Range iterator for integer sets.

Definition at line 202 of file var.icc.

Constructors and initialization

 BndSetRanges (void)
 Default constructor.
 BndSetRanges (const BndSet &s)
 Initialize with BndSet s.
void init (const BndSet &s)
 Initialize with BndSet s.

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).


Constructor & Destructor Documentation

Gecode::Set::BndSetRanges::BndSetRanges void   )  [inline]
 

Default constructor.

Definition at line 340 of file integerset.icc.

Gecode::Set::BndSetRanges::BndSetRanges const BndSet s  )  [inline]
 

Initialize with BndSet s.

Definition at line 343 of file integerset.icc.


Member Function Documentation

void Gecode::Set::BndSetRanges::init const BndSet s  )  [inline]
 

Initialize with BndSet s.

Definition at line 347 of file integerset.icc.

bool Gecode::Set::BndSetRanges::operator() void   )  const [inline]
 

Test whether iterator is still at a range or done.

Definition at line 353 of file integerset.icc.

void Gecode::Set::BndSetRanges::operator++ void   )  [inline]
 

Move iterator to next range (if possible).

Definition at line 357 of file integerset.icc.

int Gecode::Set::BndSetRanges::min void   )  const [inline]
 

Return smallest value of range.

Definition at line 362 of file integerset.icc.

int Gecode::Set::BndSetRanges::max void   )  const [inline]
 

Return largest value of range.

Definition at line 366 of file integerset.icc.

unsigned int Gecode::Set::BndSetRanges::width void   )  const [inline]
 

Return width of range (distance between minimum and maximum).

Definition at line 370 of file integerset.icc.


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