Generated on Wed Nov 1 15:05:20 2006 for Gecode by doxygen 1.4.5

Gecode::Iter::Ranges::ComplVal< I > Class Template Reference
[Range iterators]

Inherits Gecode::Iter::Ranges::MinMax.

List of all members.


Detailed Description

template<class I>
class Gecode::Iter::Ranges::ComplVal< I >

Range iterator for computing the complement (described by values).

The complement is computed with respect to a given universe set provided as arguments upon initialization. The universe must always be a superset!

Requires

 #include "gecode/iter.hh" 

Definition at line 75 of file ranges-compl.icc.

Constructors and initialization

 ComplVal (void)
 Default constructor.
 ComplVal (int umin, int umax, I &i)
 Initialize with iterator i.
void init (int umin, int umax, I &i)
 Initialize with iterator i.

Iteration control

void operator++ (void)
 Move iterator to next range (if possible).

Protected Member Functions

void start (void)
 Initialize.

Protected Attributes

int UMIN
 Values describing the universe set.
int UMAX
i
 Iterator to compute complement for.


Constructor & Destructor Documentation

template<class I>
Gecode::Iter::Ranges::ComplVal< I >::ComplVal void   )  [inline]
 

Default constructor.

Definition at line 175 of file ranges-compl.icc.

template<class I>
Gecode::Iter::Ranges::ComplVal< I >::ComplVal int  umin,
int  umax,
I &  i
[inline]
 

Initialize with iterator i.

Definition at line 179 of file ranges-compl.icc.


Member Function Documentation

template<class I>
void Gecode::Iter::Ranges::ComplVal< I >::start void   )  [inline, protected]
 

Initialize.

Definition at line 154 of file ranges-compl.icc.

template<class I>
void Gecode::Iter::Ranges::ComplVal< I >::init int  umin,
int  umax,
I &  i
[inline]
 

Initialize with iterator i.

Definition at line 186 of file ranges-compl.icc.

template<class I>
void Gecode::Iter::Ranges::ComplVal< I >::operator++ void   )  [inline]
 

Move iterator to next range (if possible).

Definition at line 192 of file ranges-compl.icc.


Member Data Documentation

template<class I>
int Gecode::Iter::Ranges::ComplVal< I >::UMIN [protected]
 

Values describing the universe set.

Definition at line 78 of file ranges-compl.icc.

template<class I>
int Gecode::Iter::Ranges::ComplVal< I >::UMAX [protected]
 

Definition at line 78 of file ranges-compl.icc.

template<class I>
I Gecode::Iter::Ranges::ComplVal< I >::i [protected]
 

Iterator to compute complement for.

Definition at line 80 of file ranges-compl.icc.


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