Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1
Gecode::Iter::Ranges::ComplVal< I > Class Template Reference

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

#include <ranges-compl.hpp>

Protected Member Functions

void start (void)
 Initialize. More...
 
- Protected Member Functions inherited from Gecode::Iter::Ranges::MinMax
void finish (void)
 Set range such that iteration stops More...
 

Protected Attributes

int UMIN
 Values describing the universe set. More...
 
int UMAX
 
i
 Iterator to compute complement for. More...
 
- Protected Attributes inherited from Gecode::Iter::Ranges::MinMax
int mi
 Minimum of current range. More...
 
int ma
 Maximum of current range. More...
 

Constructors and initialization

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

Iteration control

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

Additional Inherited Members

- Public Member Functions inherited from Gecode::Iter::Ranges::MinMax
 MinMax (void)
 Default constructor. More...
 
 MinMax (int min, int max)
 Initialize with range min to max. More...
 
bool operator() (void) const
 Test whether iterator is still at a range or done. More...
 
int min (void) const
 Return smallest value of range. More...
 
int max (void) const
 Return largest value of range. More...
 
unsigned int width (void) const
 Return width of range (distance between minimum and maximum) More...
 

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!

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

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 189 of file ranges-compl.hpp.

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

Initialize with iterator i.

Definition at line 193 of file ranges-compl.hpp.

Member Function Documentation

template<class I >
void Gecode::Iter::Ranges::ComplVal< I >::start ( void  )
inlineprotected

Initialize.

Definition at line 168 of file ranges-compl.hpp.

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

Initialize with iterator i.

Definition at line 200 of file ranges-compl.hpp.

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

Move iterator to next range (if possible)

Definition at line 206 of file ranges-compl.hpp.

Member Data Documentation

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

Values describing the universe set.

Definition at line 92 of file ranges-compl.hpp.

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

Definition at line 92 of file ranges-compl.hpp.

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

Iterator to compute complement for.

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


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