Generated on Thu Mar 22 10:39:55 2012 for Gecode by doxygen 1.6.3

Gecode::Int::ValSet::Ranges Class Reference

Iterator over ranges. More...

#include <val-set.hh>

List of all members.

Constructors and initialization



 Ranges (const ValSet &vs)
 Initialize.

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

Detailed Description

Iterator over ranges.

Definition at line 82 of file val-set.hh.


Constructor & Destructor Documentation

Gecode::Int::ValSet::Ranges::Ranges ( const ValSet vs  )  [inline]

Initialize.

Definition at line 137 of file val-set.hpp.


Member Function Documentation

bool Gecode::Int::ValSet::Ranges::operator() ( void   )  const [inline]

Test whether iterator is still at a range or done.

Definition at line 141 of file val-set.hpp.

void Gecode::Int::ValSet::Ranges::operator++ ( void   )  [inline]

Move iterator to next range (if possible).

Definition at line 146 of file val-set.hpp.

int Gecode::Int::ValSet::Ranges::min ( void   )  const [inline]

Return smallest value of range.

Definition at line 151 of file val-set.hpp.

int Gecode::Int::ValSet::Ranges::max ( void   )  const [inline]

Return largest value of range.

Definition at line 155 of file val-set.hpp.

unsigned int Gecode::Int::ValSet::Ranges::width ( void   )  const [inline]

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

Definition at line 160 of file val-set.hpp.


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