Generated on Thu Jul 6 07:07:06 2006 for Gecode by doxygen 1.4.7

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 320 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 338 of file integerset.icc.

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

Initialize with BndSet s.

Definition at line 341 of file integerset.icc.


Member Function Documentation

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

Initialize with BndSet s.

Definition at line 345 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 351 of file integerset.icc.

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

Move iterator to next range (if possible).

Definition at line 355 of file integerset.icc.

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

Return smallest value of range.

Definition at line 360 of file integerset.icc.

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

Return largest value of range.

Definition at line 364 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 368 of file integerset.icc.


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