Generated on Sat Aug 25 2012 15:53:13 for Gecode by doxygen 1.7.5
Gecode::Iter::Values::Union Class Reference

Value iterator for the union of two value iterators. More...

#include <values-union.hpp>

List of all members.

Protected Attributes

i
 First iterator.
j
 Second iterator.
int v
 Current value.
bool done
 Whether iterator is done.

Constructors and initialization

 Union (void)
 Default constructor.
 Union (I &i, J &j)
 Initialize with values from i and j.
void init (I &i, J &j)
 Initialize with values from i and j.

Iteration control

bool operator() (void) const
 Test whether iterator is still at a value or done.
void operator++ (void)
 Move iterator to next value (if possible)

Value access

int val (void) const
 Return current value.

Detailed Description

Value iterator for the union of two value iterators.


Constructor & Destructor Documentation

Gecode::Iter::Values::Union::Union ( void  ) [inline]

Default constructor.

Definition at line 86 of file values-union.hpp.

Gecode::Iter::Values::Union::Union ( I &  i,
J &  j 
) [inline]

Initialize with values from i and j.

Definition at line 119 of file values-union.hpp.


Member Function Documentation

void Gecode::Iter::Values::Union::init ( I &  i,
J &  j 
) [inline]

Initialize with values from i and j.

Definition at line 112 of file values-union.hpp.

bool Gecode::Iter::Values::Union::operator() ( void  ) const [inline]

Test whether iterator is still at a value or done.

Definition at line 125 of file values-union.hpp.

void Gecode::Iter::Values::Union::operator++ ( void  ) [inline]

Move iterator to next value (if possible)

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

int Gecode::Iter::Values::Union::val ( void  ) const [inline]

Return current value.

Definition at line 131 of file values-union.hpp.


Member Data Documentation

First iterator.

Definition at line 50 of file values-union.hpp.

Second iterator.

Definition at line 52 of file values-union.hpp.

Current value.

Definition at line 54 of file values-union.hpp.

Whether iterator is done.

Definition at line 56 of file values-union.hpp.


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