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

Range iterator for least upper bound of singleton set view More...

`#include <singleton.hpp>`

## Constructors and initialization

| LubRanges (void)
| Default constructor.
| LubRanges (const SingletonView &x)
| Initialize with ranges for view x.
void | init (const SingletonView &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

| IntVarImpFwd (void)
| Default constructor.
| IntVarImpFwd (const IntVarImp *x)
| Initialize with ranges from variable implementation x.
void | init (const IntVarImp *x)
| Initialize with ranges from 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).

## Detailed Description

Range iterator for least upper bound of singleton set view

Definition at line 315 of file singleton.hpp.

## Constructor & Destructor Documentation

## LubRanges() [1/2]

Gecode::Set::LubRanges< SingletonView >::LubRanges | ( | void |  | ) |

inline

Default constructor.

Definition at line 329 of file singleton.hpp.

## LubRanges() [2/2]

Gecode::Set::LubRanges< SingletonView >::LubRanges | ( | const SingletonView & | x | ) |

inline

Initialize with ranges for view x.

Definition at line 332 of file singleton.hpp.

## Member Function Documentation

## init()

void Gecode::Set::LubRanges< SingletonView >::init | ( | const SingletonView & | x | ) |

inline

Initialize with ranges for view x.

Definition at line 336 of file singleton.hpp.

## operator()()

bool Gecode::Set::LubRanges< SingletonView >::operator() | ( | void |  | ) | const

Test whether iterator is still at a range or done.

## operator++()

void Gecode::Set::LubRanges< SingletonView >::operator++ | ( | void |  | ) |

Move iterator to next range (if possible).

## min()

int Gecode::Set::LubRanges< SingletonView >::min | ( | void |  | ) | const

Return smallest value of range.

## max()

int Gecode::Set::LubRanges< SingletonView >::max | ( | void |  | ) | const

Return largest value of range.

## width()

unsigned int Gecode::Set::LubRanges< SingletonView >::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/singleton.hpp