Generated on Mon Aug 25 11:35:52 2008 for Gecode by doxygen 1.5.6

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

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

List of all members.


Detailed Description

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

Range iterator for pointwise division by a positive integer.

Definition at line 99 of file ranges-scale.icc.


Constructors and initialization

 ScaleDown (void)
 Default constructor.
 ScaleDown (I &i, int a)
 Initialize with ranges from i and scale factor a.
void init (I &i, int a)
 Initialize with ranges from i and scale factor a.

Iteration control

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

Protected Attributes

i
 Iterator to be scaled down.
int a
 Divide by this factor.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 219 of file ranges-scale.icc.

template<class I>
Gecode::Iter::Ranges::ScaleDown< I >::ScaleDown ( I &  i,
int  a 
) [inline]

Initialize with ranges from i and scale factor a.

Definition at line 230 of file ranges-scale.icc.


Member Function Documentation

template<class I>
void Gecode::Iter::Ranges::ScaleDown< I >::init ( I &  i,
int  a 
) [inline]

Initialize with ranges from i and scale factor a.

Definition at line 223 of file ranges-scale.icc.

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

Move iterator to next range (if possible).

Definition at line 198 of file ranges-scale.icc.


Member Data Documentation

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

Iterator to be scaled down.

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

template<class I>
int Gecode::Iter::Ranges::ScaleDown< I >::a [protected]

Divide by this factor.

Definition at line 104 of file ranges-scale.icc.


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