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

Gecode::SetExprRanges Class Reference

List of all members.

Detailed Description

Range iterator for set expressions.

Definition at line 82 of file set-expr.icc.

Constructors and destructor

 SetExprRanges (const SetExprRanges &)
 Copy constructor.
 SetExprRanges (const ViewArray< Set::SetView > &x, SetExpr &s, bool monotone)
 SetExprRanges (const ViewArray< Set::SetView > &x, const SetExprCode &s, bool monotone)
 ~SetExprRanges (void)
 Destructor.

Iteration control

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

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

Classes

class  Iter
 Reference-counted range iterators with virtual member functions. More...


Constructor & Destructor Documentation

Gecode::SetExprRanges::SetExprRanges const SetExprRanges  )  [inline]
 

Copy constructor.

Definition at line 165 of file set-expr.icc.

Gecode::SetExprRanges::SetExprRanges const ViewArray< Set::SetView > &  x,
SetExpr s,
bool  monotone
 

Initialize with the views x, a set expression s, and a flag whether s is to be interpreted in a monotone or anti-monotone way

Definition at line 292 of file set-expr.cc.

Gecode::SetExprRanges::SetExprRanges const ViewArray< Set::SetView > &  x,
const SetExprCode s,
bool  monotone
 

Initialize with the views x, a set expression code c, and a flag whether c is to be interpreted in a monotone or anti-monotone way

Definition at line 298 of file set-expr.cc.

Gecode::SetExprRanges::~SetExprRanges void   )  [inline]
 

Destructor.

Definition at line 170 of file set-expr.icc.


Member Function Documentation

bool Gecode::SetExprRanges::operator() void   )  [inline]
 

Move iterator to next range (if possible).

Definition at line 176 of file set-expr.icc.

void Gecode::SetExprRanges::operator++ void   )  [inline]
 

Test whether iterator is still at a range or done.

Definition at line 179 of file set-expr.icc.

int Gecode::SetExprRanges::min void   )  const [inline]
 

Return smallest value of range.

Definition at line 182 of file set-expr.icc.

int Gecode::SetExprRanges::max void   )  const [inline]
 

Return largest value of range.

Definition at line 185 of file set-expr.icc.

unsigned int Gecode::SetExprRanges::width void   )  const [inline]
 

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

Definition at line 188 of file set-expr.icc.


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