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

Gecode::Iter::Ranges::RangeList Class Reference
[Range iterators]

Range iterator for range lists More...

#include <ranges-rangelist.hpp>

List of all members.

Protected Attributes

const Gecode::RangeListc
 Current range.

Constructors and initialization



 RangeList (void)
 Default constructor.
 RangeList (const Gecode::RangeList *s)
 Initialize with BndSet s.
void init (const Gecode::RangeList *s)
 Initialize with BndSet s.

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

Range iterator for range lists

Allows to iterate the ranges of a RangeList where the ranges must be increasing and non-overlapping.

Definition at line 48 of file ranges-rangelist.hpp.


Constructor & Destructor Documentation

Gecode::Iter::Ranges::RangeList::RangeList ( void   )  [inline]

Default constructor.

Definition at line 83 of file ranges-rangelist.hpp.

Gecode::Iter::Ranges::RangeList::RangeList ( const Gecode::RangeList s  )  [inline]

Initialize with BndSet s.

Definition at line 86 of file ranges-rangelist.hpp.


Member Function Documentation

void Gecode::Iter::Ranges::RangeList::init ( const Gecode::RangeList s  )  [inline]

Initialize with BndSet s.

Definition at line 89 of file ranges-rangelist.hpp.

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

Test whether iterator is still at a range or done.

Definition at line 92 of file ranges-rangelist.hpp.

void Gecode::Iter::Ranges::RangeList::operator++ ( void   )  [inline]

Move iterator to next range (if possible).

Definition at line 95 of file ranges-rangelist.hpp.

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

Return smallest value of range.

Definition at line 100 of file ranges-rangelist.hpp.

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

Return largest value of range.

Definition at line 104 of file ranges-rangelist.hpp.

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

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

Definition at line 108 of file ranges-rangelist.hpp.


Member Data Documentation

Current range.

Definition at line 51 of file ranges-rangelist.hpp.


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