Generated on Tue Apr 18 10:24:01 2017 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 range list s.
void init (const Gecode::RangeList *s)
 Initialize with range list 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 84 of file ranges-rangelist.hpp.

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

Initialize with range list s.

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


Member Function Documentation

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

Initialize with range list s.

Definition at line 90 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 93 of file ranges-rangelist.hpp.

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

Move iterator to next range (if possible).

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

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

Return smallest value of range.

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

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

Return largest value of range.

Definition at line 105 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 109 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: