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

Gecode::SetVarGlbRanges Class Reference
[Range and value iterators for set variables]

#include <set.hh>

List of all members.


Detailed Description

Iterator for the greatest lower bound ranges of a set variable.

Definition at line 321 of file set.hh.


Constructors and initialization

 SetVarGlbRanges (void)
 Default constructor.
 SetVarGlbRanges (const SetVar &x)
 Initialize to iterate ranges of variable x.

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::SetVarGlbRanges::SetVarGlbRanges ( void   )  [inline]

Default constructor.

Definition at line 156 of file set.icc.

Gecode::SetVarGlbRanges::SetVarGlbRanges ( const SetVar x  )  [inline]

Initialize to iterate ranges of variable x.

Definition at line 159 of file set.icc.


Member Function Documentation

bool Gecode::SetVarGlbRanges::operator() ( void   )  const [inline]

Test whether iterator is still at a range or done.

Definition at line 164 of file set.icc.

void Gecode::SetVarGlbRanges::operator++ ( void   )  [inline]

Move iterator to next range (if possible).

Definition at line 168 of file set.icc.

int Gecode::SetVarGlbRanges::min ( void   )  const [inline]

Return smallest value of range.

Definition at line 172 of file set.icc.

int Gecode::SetVarGlbRanges::max ( void   )  const [inline]

Return largest value of range.

Definition at line 176 of file set.icc.

unsigned int Gecode::SetVarGlbRanges::width ( void   )  const [inline]

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

Definition at line 180 of file set.icc.


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