Gecode::Iter::Values::Minus Class Reference
Common functionality » Range and value iterators » Value iterators

Value iterator for pointwise minus of a value iterator. More...

`#include <values-minus.hpp>`

## Constructors and initialization

| Minus (void)
| Default constructor.
| Minus (const Minus &m)
| Copy constructor.
template<class I>
| Minus (Region &r, I &i)
| Initialize with values from i.
template<class I>
void | init (Region &r, I &i)
| Initialize with values from i.
Minus & | operator= (const Minus &m)
| Assignment operator (both iterators must be allocated from the same region).

## Additional Inherited Members

| ValueListIter (void)
| Default constructor.
| ValueListIter (const ValueListIter &i)
| Copy constructor.
| ValueListIter (Region &r)
| Initialize.
void | init (Region &r)
| Initialize.
ValueListIter & | operator= (const ValueListIter &i)
| Assignment operator (both iterators must be allocated from the same region).
bool | operator() (void) const
| Test whether iterator is still at a value or done.
void | operator++ (void)
| Move iterator to next value (if possible).
void | reset (void)
| Reset iterator to start.
int | val (void) const
| Return value.
| ~ValueListIter (void)
| Destructor.
Protected Member Functions inherited from Gecode::Iter::Values::ValueListIter
void | set (ValueList *l)
| Set value lists.
Protected Attributes inherited from Gecode::Iter::Values::ValueListIter
VLIO * | vlio
| Reference to shared object.
ValueList * | h
| Head of value list.
ValueList * | c
| Current list element.

## Detailed Description

Value iterator for pointwise minus of a value iterator.

This iterator in effect changes the order of how values are iterated: the first values of the input iterator defines the last value of the Minus iterator. Upon initialization all values of the input iterator are stored in an array which later allows iteration in inverse direction.

Definition at line 47 of file values-minus.hpp.

## Constructor & Destructor Documentation

## Minus() [1/3]

Gecode::Iter::Values::Minus::Minus | ( | void |  | ) |

inline

Default constructor.

Definition at line 68 of file values-minus.hpp.

## Minus() [2/3]

Gecode::Iter::Values::Minus::Minus | ( | const Minus & | m | ) |

inline

Copy constructor.

Definition at line 71 of file values-minus.hpp.

## Minus() [3/3]

template<class I>

Gecode::Iter::Values::Minus::Minus | ( | Region & | r,
|  | I & | i )

inline

Initialize with values from i.

Definition at line 90 of file values-minus.hpp.

## Member Function Documentation

## init()

template<class I>

void Gecode::Iter::Values::Minus::init | ( | Region & | r,
|  | I & | i )

Initialize with values from i.

Definition at line 76 of file values-minus.hpp.

## operator=()

Minus & Gecode::Iter::Values::Minus::operator= | ( | const Minus & | m | ) |

inline

Assignment operator (both iterators must be allocated from the same region).

Definition at line 95 of file values-minus.hpp.

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

- gecode/iter/values-minus.hpp