Gecode::Iter::Ranges::AddRange< I > Class Template Reference
[Range iterators]
Inherits Gecode::Iter::Ranges::MinMax.
Inherited by Gecode::Iter::Ranges::SubRange< I >.
Detailed Description
template<class I>
class Gecode::Iter::Ranges::AddRange< I >
Range iterator for adding a single range to a range iterator.
Definition at line 46 of file ranges-add.icc.
Constructors and initialization | |
AddRange (void) | |
Default constructor. | |
AddRange (I &i, int min, int max) | |
Initialize with ranges i and range min to max. | |
void | init (I &i, int min, int max) |
Initialize with ranges i and range min to max. | |
Iteration control | |
void | operator++ (void) |
Move iterator to next range (if possible). | |
Protected Attributes | |
I | i |
Iterator to which the range is to be added. | |
int | r_min |
Minimum of range to be added. | |
int | r_max |
Maximum of range to be added. |
Constructor & Destructor Documentation
template<class I>
Gecode::Iter::Ranges::AddRange< I >::AddRange | ( | void | ) | [inline] |
template<class I>
Gecode::Iter::Ranges::AddRange< I >::AddRange | ( | I & | i, | |
int | min, | |||
int | max | |||
) | [inline] |
Member Function Documentation
template<class I>
void Gecode::Iter::Ranges::AddRange< I >::init | ( | I & | i, | |
int | min, | |||
int | max | |||
) | [inline] |
Initialize with ranges i and range min to max.
Reimplemented in Gecode::Iter::Ranges::SubRange< I >.
Definition at line 120 of file ranges-add.icc.
template<class I>
void Gecode::Iter::Ranges::AddRange< I >::operator++ | ( | void | ) | [inline] |
Member Data Documentation
template<class I>
I Gecode::Iter::Ranges::AddRange< I >::i [protected] |
template<class I>
int Gecode::Iter::Ranges::AddRange< I >::r_min [protected] |
template<class I>
int Gecode::Iter::Ranges::AddRange< I >::r_max [protected] |
The documentation for this class was generated from the following file:
- gecode/iter/ranges-add.icc (Revision: 4973)