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

Gecode::SetExprRanges Class Reference

List of all members.


Detailed Description

Range iterator for set expressions.

Definition at line 127 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 s  )  [inline]

Copy constructor.

Definition at line 210 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 308 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 314 of file set-expr.cc.

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

Destructor.

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


Member Function Documentation

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

Move iterator to next range (if possible).

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

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

Test whether iterator is still at a range or done.

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

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

Return smallest value of range.

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

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

Return largest value of range.

Definition at line 230 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 233 of file set-expr.icc.


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