Generated on Mon Aug 25 11:35:53 2008 for Gecode by doxygen 1.5.6

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 242 of file var-imp.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 287 of file integerset.icc.

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

Initialize with BndSet s.

Definition at line 290 of file integerset.icc.


Member Function Documentation

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

Initialize with BndSet s.

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

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

Move iterator to next range (if possible).

Definition at line 299 of file integerset.icc.

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

Return smallest value of range.

Definition at line 304 of file integerset.icc.

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

Return largest value of range.

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


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