Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1
Gecode::Iter::Ranges::SubRange< I > Class Template Reference

Range iterator for subtracting a single range from a range iterator. More...

#include <ranges-add.hpp>

Constructors and initialization

 SubRange (void)
 Default constructor. More...
 
 SubRange (I &i, int min, int max)
 Initialize with ranges i and range min to max. More...
 
void init (I &i, int min, int max)
 Initialize with ranges i and range min to max. More...
 

Additional Inherited Members

- Public Member Functions inherited from Gecode::Iter::Ranges::AddRange< I >
 AddRange (void)
 Default constructor. More...
 
 AddRange (I &i, int min, int max)
 Initialize with ranges i and range min to max. More...
 
void init (I &i, int min, int max)
 Initialize with ranges i and range min to max. More...
 
void operator++ (void)
 Move iterator to next range (if possible) More...
 
- Public Member Functions inherited from Gecode::Iter::Ranges::MinMax
 MinMax (void)
 Default constructor. More...
 
 MinMax (int min, int max)
 Initialize with range min to max. More...
 
bool operator() (void) const
 Test whether iterator is still at a range or done. More...
 
int min (void) const
 Return smallest value of range. More...
 
int max (void) const
 Return largest value of range. More...
 
unsigned int width (void) const
 Return width of range (distance between minimum and maximum) More...
 
- Protected Member Functions inherited from Gecode::Iter::Ranges::MinMax
void finish (void)
 Set range such that iteration stops More...
 
- Protected Attributes inherited from Gecode::Iter::Ranges::AddRange< I >
i
 Iterator to which the range is to be added. More...
 
int r_min
 Minimum of range to be added. More...
 
int r_max
 Maximum of range to be added. More...
 
- Protected Attributes inherited from Gecode::Iter::Ranges::MinMax
int mi
 Minimum of current range. More...
 
int ma
 Maximum of current range. More...
 

Detailed Description

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

Range iterator for subtracting a single range from a range iterator.

Definition at line 79 of file ranges-add.hpp.

Constructor & Destructor Documentation

template<class I >
Gecode::Iter::Ranges::SubRange< I >::SubRange ( void  )
inline

Default constructor.

Definition at line 128 of file ranges-add.hpp.

template<class I >
Gecode::Iter::Ranges::SubRange< I >::SubRange ( I &  i,
int  min,
int  max 
)
inline

Initialize with ranges i and range min to max.

Definition at line 132 of file ranges-add.hpp.

Member Function Documentation

template<class I >
void Gecode::Iter::Ranges::SubRange< I >::init ( I &  i,
int  min,
int  max 
)
inline

Initialize with ranges i and range min to max.

Definition at line 137 of file ranges-add.hpp.


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