Gecode::Set::GlbRanges< SetView > Class Reference
Functionality by programming task » Programming actors » Programming set actors » Set views

Range iterator for greatest lower bound of set variable views More...

`#include <set.hpp>`

## Constructors and initialization

| GlbRanges (void)
| Default constructor.
| GlbRanges (const SetView &x)
| Initialize with ranges for view x.
void | init (const SetView &x)
| Initialize with ranges for view x.

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

## Additional Inherited Members

| GlbRanges (void)
| Default constructor.
| GlbRanges (const SetVarImp *x)
| Initialize with ranges for variable implementation x.
void | init (const SetVarImp *)
| Initialize with ranges for variable implementation x.
bool | operator() (void) const
| Test whether iterator is still at a range or done.
void | operator++ (void)
| Move iterator to next range (if possible).
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).
| BndSetRanges (void)
| Default constructor.
| BndSetRanges (const BndSet &s)
| Initialize with BndSet s.
void | init (const BndSet &s)
| Initialize with BndSet s.
| 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.
bool | operator() (void) const
| Test whether iterator is still at a range or done.
void | operator++ (void)
| Move iterator to next range (if possible).
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).
Protected Attributes inherited from Gecode::Iter::Ranges::RangeList
const Gecode::RangeList * | c
| Current range.

## Detailed Description

Range iterator for greatest lower bound of set variable views

Definition at line 242 of file set.hpp.

## Constructor & Destructor Documentation

## GlbRanges() [1/2]

Gecode::Set::GlbRanges< SetView >::GlbRanges | ( | void |  | ) |

inline

Default constructor.

Definition at line 255 of file set.hpp.

## GlbRanges() [2/2]

Gecode::Set::GlbRanges< SetView >::GlbRanges | ( | const SetView & | x | ) |

inline

Initialize with ranges for view x.

Definition at line 258 of file set.hpp.

## Member Function Documentation

## init()

void Gecode::Set::GlbRanges< SetView >::init | ( | const SetView & | x | ) |

inline

Initialize with ranges for view x.

Definition at line 262 of file set.hpp.

## operator()()

bool Gecode::Set::GlbRanges< SetView >::operator() | ( | void |  | ) | const

Test whether iterator is still at a range or done.

## operator++()

void Gecode::Set::GlbRanges< SetView >::operator++ | ( | void |  | ) |

Move iterator to next range (if possible).

## min()

int Gecode::Set::GlbRanges< SetView >::min | ( | void |  | ) | const

Return smallest value of range.

## max()

int Gecode::Set::GlbRanges< SetView >::max | ( | void |  | ) | const

Return largest value of range.

## width()

unsigned int Gecode::Set::GlbRanges< SetView >::width | ( | void |  | ) | const

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

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

- gecode/set/view/set.hpp