Generated on Wed Jan 4 17:49:22 2006 for Gecode by doxygen 1.4.6

Gecode::Iter::Ranges::Compl< UMIN, UMAX, I > Class Template Reference
[Range iterators]

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

List of all members.


Detailed Description

template<int UMIN, int UMAX, class I>
class Gecode::Iter::Ranges::Compl< UMIN, UMAX, I >

Range iterator for computing the complement.

The complement is computed with respect to a given set provided as template arguments (UMIN ... UMAX).

Requires

 #include "iter.hh" 

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

Constructors and initialization

 Compl (void)
 Default constructor.
 Compl (I &i)
 Initialize with iterator i.
void init (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

i
 Iterator to compute complement for.


Constructor & Destructor Documentation

template<int UMIN, int UMAX, class I>
Gecode::Iter::Ranges::Compl< UMIN, UMAX, I >::Compl void   )  [inline]
 

Default constructor.

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

template<int UMIN, int UMAX, class I>
Gecode::Iter::Ranges::Compl< UMIN, UMAX, I >::Compl I &  i  )  [inline]
 

Initialize with iterator i.

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


Member Function Documentation

template<int UMIN, int UMAX, class I>
void Gecode::Iter::Ranges::Compl< UMIN, UMAX, I >::start void   )  [inline, protected]
 

Initialize.

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

template<int UMIN, int UMAX, class I>
void Gecode::Iter::Ranges::Compl< UMIN, UMAX, I >::init I &  i  )  [inline]
 

Initialize with iterator i.

Reimplemented in Gecode::Set::RangesCompl< I >, Gecode::Set::RangesCompl< LubRanges< View > >, and Gecode::Set::RangesCompl< GlbRanges< View > >.

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

template<int UMIN, int UMAX, class I>
void Gecode::Iter::Ranges::Compl< UMIN, UMAX, I >::operator++ void   )  [inline]
 

Move iterator to next range (if possible).

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


Member Data Documentation

template<int UMIN, int UMAX, class I>
I Gecode::Iter::Ranges::Compl< UMIN, UMAX, I >::i [protected]
 

Iterator to compute complement for.

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


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