Generated on Sat Feb 7 2015 02:01:45 for Gecode by doxygen 1.8.9.1
Gecode::Int::ViewDiffRanges< View > Class Template Reference

Range iterator for cached integer views More...

#include <view.hpp>

Protected Attributes

Iter::Ranges::RangeList cr
 Cached domain iterator. More...
 
ViewRanges< View > dr
 Current domain iterator. More...
 
- Protected Attributes inherited from Gecode::Iter::Ranges::Diff< Iter::Ranges::RangeList, ViewRanges< View > >
Iter::Ranges::RangeList i
 Iterator from which to subtract. More...
 
ViewRanges< View > j
 Iterator to be subtracted. More...
 
- Protected Attributes inherited from Gecode::Iter::Ranges::MinMax
int mi
 Minimum of current range. More...
 
int ma
 Maximum of current range. More...
 

Constructors and initialization

 ViewDiffRanges (void)
 Default constructor. More...
 
 ViewDiffRanges (const CachedView< View > &x)
 Initialize with ranges for view x. More...
 
void init (const CachedView< View > &x)
 Initialize with ranges for view x. More...
 

Additional Inherited Members

- Public Member Functions inherited from Gecode::Iter::Ranges::Diff< Iter::Ranges::RangeList, ViewRanges< View > >
 Diff (void)
 Default constructor. More...
 
 Diff (Iter::Ranges::RangeList &i, ViewRanges< View > &j)
 Initialize with iterator i and j. More...
 
void init (Iter::Ranges::RangeList &i, ViewRanges< View > &j)
 Initialize with iterator i and j. 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...
 

Detailed Description

template<class View>
class Gecode::Int::ViewDiffRanges< View >

Range iterator for cached integer views

This iterator iterates the difference between the cached domain and the current domain of an integer view.

Definition at line 1094 of file view.hpp.

Constructor & Destructor Documentation

template<class View >
Gecode::Int::ViewDiffRanges< View >::ViewDiffRanges ( void  )
inline

Default constructor.

Definition at line 366 of file cached.hpp.

template<class View >
Gecode::Int::ViewDiffRanges< View >::ViewDiffRanges ( const CachedView< View > &  x)
inline

Initialize with ranges for view x.

Definition at line 370 of file cached.hpp.

Member Function Documentation

template<class View >
void Gecode::Int::ViewDiffRanges< View >::init ( const CachedView< View > &  x)
inline

Initialize with ranges for view x.

Definition at line 377 of file cached.hpp.

Member Data Documentation

template<class View>
Iter::Ranges::RangeList Gecode::Int::ViewDiffRanges< View >::cr
protected

Cached domain iterator.

Definition at line 1294 of file view.hpp.

template<class View>
ViewRanges<View> Gecode::Int::ViewDiffRanges< View >::dr
protected

Current domain iterator.

Definition at line 1296 of file view.hpp.


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