Generated on Sun Feb 17 15:24:58 2019 for Gecode by doxygen 1.6.3

Gecode::TupleSet::Ranges Class Reference

Iterator over ranges. More...

#include <int.hh>

List of all members.

Protected Attributes

const Rangec
 Current range.
const Rangel
 Last range.

Constructors and initialization



 Ranges (const TupleSet &ts, int i)
 Initialize for column i.

Iteration control



bool operator() (void) const
 Test whether iterator is still at a range.
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 2359 of file int.hh.


Constructor & Destructor Documentation

Gecode::TupleSet::Ranges::Ranges ( const TupleSet ts,
int  i 
) [inline]

Initialize for column i.

Definition at line 260 of file tuple-set.hpp.


Member Function Documentation

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

Test whether iterator is still at a range.

Definition at line 266 of file tuple-set.hpp.

void Gecode::TupleSet::Ranges::operator++ ( void   )  [inline]

Move iterator to next range (if possible).

Definition at line 270 of file tuple-set.hpp.

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

Return smallest value of range.

Definition at line 275 of file tuple-set.hpp.

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

Return largest value of range.

Definition at line 279 of file tuple-set.hpp.

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

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

Definition at line 283 of file tuple-set.hpp.


Member Data Documentation

const Range* Gecode::TupleSet::Ranges::c [protected]

Current range.

Definition at line 2362 of file int.hh.

const Range* Gecode::TupleSet::Ranges::l [protected]

Last range.

Definition at line 2364 of file int.hh.


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