Gecode::Iter::Ranges::ScaleDown< I > Class Template Reference
[Range iterators]
Inherits Gecode::Iter::Ranges::MinMax.
Detailed Description
template<class I>
class Gecode::Iter::Ranges::ScaleDown< I >
Range iterator for pointwise division by a positive integer.
Requires
#include "gecode/iter.hh"
Definition at line 85 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 | i |
| Iterator to be scaled down. | |
| int | a |
| Divide by this factor. | |
Constructor & Destructor Documentation
|
||||||||||
|
Default constructor.
Definition at line 205 of file ranges-scale.icc. |
|
||||||||||||||||
|
Initialize with ranges from i and scale factor a.
Definition at line 216 of file ranges-scale.icc. |
Member Function Documentation
|
||||||||||||||||
|
Initialize with ranges from i and scale factor a.
Definition at line 209 of file ranges-scale.icc. |
|
||||||||||
|
Move iterator to next range (if possible).
Definition at line 184 of file ranges-scale.icc. |
Member Data Documentation
|
|||||
|
Iterator to be scaled down.
Definition at line 88 of file ranges-scale.icc. |
|
|||||
|
Divide by this factor.
Definition at line 90 of file ranges-scale.icc. |
The documentation for this class was generated from the following file:
- gecode/iter/ranges-scale.icc (Revision: 3515)
