Generated on Thu Jul 6 07:07:05 2006 for Gecode by doxygen 1.4.7

Gecode::Iter::Ranges::Diff< I, J > Class Template Reference
[Range iterators]

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

Inherited by Gecode::Set::UnknownRanges< T >, and Gecode::Set::UnknownRanges< Gecode::Set::SetVarImp * >.

List of all members.


Detailed Description

template<class I, class J>
class Gecode::Iter::Ranges::Diff< I, J >

Range iterator for computing set difference.

Requires

 #include "gecode/iter.hh" 

Definition at line 32 of file ranges-diff.icc.

Constructors and initialization

 Diff (void)
 Default constructor.
 Diff (I &i, J &j)
 Initialize with iterator i and j.
void init (I &i, J &j)
 Initialize with iterator i and j.

Iteration control

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

Protected Attributes

i
 Iterator from which to subtract.
j
 Iterator to be subtracted.


Constructor & Destructor Documentation

template<class I, class J>
Gecode::Iter::Ranges::Diff< I, J >::Diff ( void   )  [inline]

Default constructor.

Definition at line 98 of file ranges-diff.icc.

template<class I, class J>
Gecode::Iter::Ranges::Diff< I, J >::Diff ( I &  i,
J &  j 
) [inline]

Initialize with iterator i and j.

Definition at line 102 of file ranges-diff.icc.


Member Function Documentation

template<class I, class J>
void Gecode::Iter::Ranges::Diff< I, J >::init ( I &  i,
J &  j 
) [inline]

Initialize with iterator i and j.

Definition at line 114 of file ranges-diff.icc.

template<class I, class J>
void Gecode::Iter::Ranges::Diff< I, J >::operator++ ( void   )  [inline]

Move iterator to next range (if possible).

Definition at line 60 of file ranges-diff.icc.


Member Data Documentation

template<class I, class J>
I Gecode::Iter::Ranges::Diff< I, J >::i [protected]

Iterator from which to subtract.

Definition at line 35 of file ranges-diff.icc.

template<class I, class J>
J Gecode::Iter::Ranges::Diff< I, J >::j [protected]

Iterator to be subtracted.

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


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