Gecode::Iter::Ranges::Empty Class Reference
Common functionality » Range and value iterators » Range iterators

Range iterator for empty range. More...

`#include <ranges-empty.hpp>`

## Constructors and initialization

| Empty (void)
| Default constructor.
void | init (void)
| Initialize.

## 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 empty range.

Definition at line 42 of file ranges-empty.hpp.

## Constructor & Destructor Documentation

## Empty()

Gecode::Iter::Ranges::Empty::Empty | ( | void |  | ) |

inline

Default constructor.

Definition at line 73 of file ranges-empty.hpp.

## Member Function Documentation

## init()

void Gecode::Iter::Ranges::Empty::init | ( | void |  | ) |

inline

Initialize.

Definition at line 76 of file ranges-empty.hpp.

## operator()()

bool Gecode::Iter::Ranges::Empty::operator() | ( | void |  | ) | const

inline

Test whether iterator is still at a range or done.

Definition at line 84 of file ranges-empty.hpp.

## operator++()

void Gecode::Iter::Ranges::Empty::operator++ | ( | void |  | ) |

inline

Move iterator to next range (if possible).

Definition at line 79 of file ranges-empty.hpp.

## min()

int Gecode::Iter::Ranges::Empty::min | ( | void |  | ) | const

inline

Return smallest value of range.

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

## max()

int Gecode::Iter::Ranges::Empty::max | ( | void |  | ) | const

inline

Return largest value of range.

Definition at line 94 of file ranges-empty.hpp.

## width()

unsigned int Gecode::Iter::Ranges::Empty::width | ( | void |  | ) | const

inline

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

Definition at line 99 of file ranges-empty.hpp.

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

- gecode/iter/ranges-empty.hpp